Skip to content

Commit

Permalink
refactor: switch to esm first
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jan 13, 2025
1 parent d0b1515 commit 354ee14
Showing 1 changed file with 15 additions and 38 deletions.
53 changes: 15 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.7.1",
"packageManager": "[email protected]",
"description": "Converts JSX to HTML strings at compile time.",
"type": "module",
"keywords": [
"unplugin",
"jsx",
Expand All @@ -26,56 +27,32 @@
"dist"
],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": {
"require": "./dist/index.d.ts",
"import": "./dist/index.d.mts"
},
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"./vite": {
"types": {
"require": "./dist/vite.d.ts",
"import": "./dist/vite.d.mts"
},
"require": "./dist/vite.js",
"import": "./dist/vite.mjs"
"require": "./dist/vite.cjs",
"import": "./dist/vite.js"
},
"./webpack": {
"types": {
"require": "./dist/webpack.d.ts",
"import": "./dist/webpack.d.mts"
},
"require": "./dist/webpack.js",
"import": "./dist/webpack.mjs"
"require": "./dist/webpack.cjs",
"import": "./dist/webpack.js"
},
"./rollup": {
"types": {
"require": "./dist/rollup.d.ts",
"import": "./dist/rollup.d.mts"
},
"require": "./dist/rollup.js",
"import": "./dist/rollup.mjs"
"require": "./dist/rollup.cjs",
"import": "./dist/rollup.js"
},
"./esbuild": {
"types": {
"require": "./dist/esbuild.d.ts",
"import": "./dist/esbuild.d.mts"
},
"require": "./dist/esbuild.js",
"import": "./dist/esbuild.mjs"
"require": "./dist/esbuild.cjs",
"import": "./dist/esbuild.js"
},
"./api": {
"types": {
"require": "./dist/api.d.ts",
"import": "./dist/api.d.mts"
},
"require": "./dist/api.js",
"import": "./dist/api.mjs"
"require": "./dist/api.cjs",
"import": "./dist/api.js"
},
"./*": "./*"
},
Expand All @@ -97,7 +74,7 @@
"dev": "pnpm run -C playground dev",
"test": "vitest",
"release": "bumpp && pnpm publish",
"benchmark": "node benchmark/index.mjs",
"benchmark": "node benchmark/index.js",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
Expand Down

0 comments on commit 354ee14

Please sign in to comment.