diff --git a/packages/babel-plugin-jsx/package.json b/packages/babel-plugin-jsx/package.json index 023cb4c..246f634 100644 --- a/packages/babel-plugin-jsx/package.json +++ b/packages/babel-plugin-jsx/package.json @@ -10,9 +10,18 @@ "module": "./dist/index.mjs", "types": "./dist/index.d.mts", "exports": { - ".": "./dist/index.mjs", + ".": { + "dev": "./src/index.ts", + "default": "./dist/index.mjs" + }, "./package.json": "./package.json" }, + "publishConfig": { + "exports": { + ".": "./dist/index.mjs", + "./package.json": "./package.json" + } + }, "repository": { "type": "git", "url": "git+https://github.com/vuejs/babel-plugin-jsx.git", diff --git a/packages/babel-plugin-resolve-type/package.json b/packages/babel-plugin-resolve-type/package.json index 6639acb..7d15c63 100644 --- a/packages/babel-plugin-resolve-type/package.json +++ b/packages/babel-plugin-resolve-type/package.json @@ -11,9 +11,18 @@ "module": "./dist/index.mjs", "types": "./dist/index.d.mts", "exports": { - ".": "./dist/index.mjs", + ".": { + "dev": "./src/index.ts", + "default": "./dist/index.mjs" + }, "./package.json": "./package.json" }, + "publishConfig": { + "exports": { + ".": "./dist/index.mjs", + "./package.json": "./package.json" + } + }, "repository": { "type": "git", "url": "git+https://github.com/vuejs/babel-plugin-jsx.git", diff --git a/tsdown.config.ts b/tsdown.config.ts index b615474..0be3573 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -10,6 +10,8 @@ export default defineConfig({ target: 'node20.19', platform: 'neutral', inlineOnly: [], - exports: true, + exports: { + devExports: 'dev', + }, fixedExtension: true, });