chore: fix dev exports

This commit is contained in:
Kevin Deng
2025-10-07 00:35:38 +08:00
parent cbebe51d71
commit fcaca3d3f9
3 changed files with 23 additions and 3 deletions

View File

@@ -10,9 +10,18 @@
"module": "./dist/index.mjs", "module": "./dist/index.mjs",
"types": "./dist/index.d.mts", "types": "./dist/index.d.mts",
"exports": { "exports": {
".": "./dist/index.mjs", ".": {
"dev": "./src/index.ts",
"default": "./dist/index.mjs"
},
"./package.json": "./package.json" "./package.json": "./package.json"
}, },
"publishConfig": {
"exports": {
".": "./dist/index.mjs",
"./package.json": "./package.json"
}
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git", "url": "git+https://github.com/vuejs/babel-plugin-jsx.git",

View File

@@ -11,9 +11,18 @@
"module": "./dist/index.mjs", "module": "./dist/index.mjs",
"types": "./dist/index.d.mts", "types": "./dist/index.d.mts",
"exports": { "exports": {
".": "./dist/index.mjs", ".": {
"dev": "./src/index.ts",
"default": "./dist/index.mjs"
},
"./package.json": "./package.json" "./package.json": "./package.json"
}, },
"publishConfig": {
"exports": {
".": "./dist/index.mjs",
"./package.json": "./package.json"
}
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git", "url": "git+https://github.com/vuejs/babel-plugin-jsx.git",

View File

@@ -10,6 +10,8 @@ export default defineConfig({
target: 'node20.19', target: 'node20.19',
platform: 'neutral', platform: 'neutral',
inlineOnly: [], inlineOnly: [],
exports: true, exports: {
devExports: 'dev',
},
fixedExtension: true, fixedExtension: true,
}); });