vite-plugin-millennium-skin 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -182,6 +182,7 @@ function de() {
182
182
  Object.entries(p).forEach(([, r]) => {
183
183
  const { type: g } = r, h = r.fileName;
184
184
  if (g === "chunk") {
185
+ if (!r.facadeModuleId) return;
185
186
  const l = b.parse(
186
187
  r.facadeModuleId
187
188
  ), f = m(
@@ -253,7 +254,7 @@ function de() {
253
254
  if (!/.+\.(js|ts|tsx)$/g.test(p)) return;
254
255
  const a = A(i, {
255
256
  sourceType: "module",
256
- plugins: ["typescript"]
257
+ plugins: ["typescript", "jsx"]
257
258
  });
258
259
  return G(a, {
259
260
  Program(r) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-millennium-skin",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "main": "./dist/index.js",
5
5
  "type": "module",
6
6
  "directories": {
package/src/ts/index.ts CHANGED
@@ -224,6 +224,7 @@ export default function millenniumSkin(): Plugin {
224
224
 
225
225
  const compileLib = bundle.fileName;
226
226
  if (type === "chunk") {
227
+ if (!bundle.facadeModuleId) return;
227
228
  const compileParsed = path.parse(
228
229
  bundle.facadeModuleId as string,
229
230
  );
@@ -325,7 +326,7 @@ export default function millenniumSkin(): Plugin {
325
326
 
326
327
  const ast = parse(code, {
327
328
  sourceType: "module",
328
- plugins: ["typescript"],
329
+ plugins: ["typescript", "jsx"],
329
330
  });
330
331
  traver(ast, {
331
332
  Program(path) {