@klevn/jxc
Advanced tools
Comparing version
const path = require("path") | ||
const package = "@klevn/jxc" | ||
const packageName = "@klevn/jxc" | ||
@@ -12,3 +12,2 @@ //const imports = require("@babel/helper-module-imports") | ||
"./plugins/css", | ||
[ | ||
@@ -24,5 +23,5 @@ "@babel/plugin-transform-react-jsx", | ||
{ | ||
"prepend": `import _fac from "${package}"`, | ||
"accept": (filename) => { | ||
const fileExt = path.parse(filename).ext | ||
"prepend": `import _fac from "${packageName}"`, | ||
"accept": (fileName) => { | ||
const fileExt = path.parse(fileName).ext | ||
return fileExt === ".tsx" || fileExt === ".jsx" | ||
@@ -29,0 +28,0 @@ } |
@@ -33,3 +33,3 @@ { | ||
"name": "@klevn/jxc", | ||
"version": "37.0.9", | ||
"version": "37.1.1", | ||
"main": "./dist/compiler.js", | ||
@@ -36,0 +36,0 @@ "types": "./dist/compiler.d.ts", |
77012
0.01%