Skip to content

Commit

Permalink
fix: fix inspector package exports for ESModule
Browse files Browse the repository at this point in the history
  • Loading branch information
zthxxx committed Nov 21, 2023
1 parent 433970d commit 5e23442
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/inspector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
"main": "lib",
"module": "es",
"types": "es",
"exports": {
".": {
"import": "./es/index.js",
"require": "./lib/index.js"
},
"./plugins/babel": "./lib/plugins/babel.js",
"./plugins/vite": "./lib/plugins/vite.js",
"./plugins/webpack": "./lib/plugins/webpack.js",
"./plugins/umi": "./lib/plugins/umi.js",
"./plugins/umi/react-inspector": "./lib/plugins/umi.js",
"./plugins/ice": "./lib/plugins/ice.js"
},
"scripts": {
"test": "vitest run",
"test:watch": "vitest watch",
Expand Down

0 comments on commit 5e23442

Please sign in to comment.