diff --git a/packages/babel-helper-vue-transform-on/package.json b/packages/babel-helper-vue-transform-on/package.json index 06c2fe8..5de9469 100644 --- a/packages/babel-helper-vue-transform-on/package.json +++ b/packages/babel-helper-vue-transform-on/package.json @@ -1,6 +1,7 @@ { "name": "@vue/babel-helper-vue-transform-on", "version": "1.3.0", + "type": "commonjs", "description": "to help transform on", "author": "Amour1688 ", "license": "MIT", @@ -8,6 +9,6 @@ "types": "index.d.ts", "repository": { "type": "git", - "url": "git+https://github.com/vuejs/babel-plugin-jsx" + "url": "git+https://github.com/vuejs/babel-plugin-jsx.git" } } diff --git a/packages/babel-plugin-jsx/package.json b/packages/babel-plugin-jsx/package.json index 8c5042a..04a089a 100644 --- a/packages/babel-plugin-jsx/package.json +++ b/packages/babel-plugin-jsx/package.json @@ -5,12 +5,20 @@ "author": "Amour1688 ", "homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-jsx#readme", "license": "MIT", + "type": "commonjs", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", + "exports": { + ".": { + "import": "./dist/index.mjs", + "require": "./dist/index.js" + }, + "./*": "./*" + }, "repository": { "type": "git", - "url": "git+https://github.com/vuejs/babel-plugin-jsx" + "url": "git+https://github.com/vuejs/babel-plugin-jsx.git" }, "scripts": { "build": "tsup", diff --git a/packages/babel-plugin-resolve-type/package.json b/packages/babel-plugin-resolve-type/package.json index 396339f..af260a0 100644 --- a/packages/babel-plugin-resolve-type/package.json +++ b/packages/babel-plugin-resolve-type/package.json @@ -6,6 +6,7 @@ "funding": "https://github.com/sponsors/sxzz", "homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-resolve-type#readme", "license": "MIT", + "type": "commonjs", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", @@ -19,7 +20,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/vuejs/babel-plugin-jsx" + "url": "git+https://github.com/vuejs/babel-plugin-jsx.git" }, "publishConfig": { "exports": { diff --git a/packages/jsx-explorer/vite.config.ts b/packages/jsx-explorer/vite.config.ts index da4948a..3ffddb8 100644 --- a/packages/jsx-explorer/vite.config.ts +++ b/packages/jsx-explorer/vite.config.ts @@ -15,6 +15,8 @@ export default defineConfig({ VueJSX(), Replace({ values: { + 'process.env': '{}', + 'process.env.NODE_DEBUG': 'false', 'process.env.BABEL_TYPES_8_BREAKING': 'false', }, }),