Skip to content

Commit

Permalink
feat: change to default ESM package. For developer testing and node u…
Browse files Browse the repository at this point in the history
…sage in customization module scenario.
  • Loading branch information
100pah committed Jan 15, 2024
1 parent 58b9417 commit 23545a6
Showing 7 changed files with 58 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "commonjs"
}
3 changes: 3 additions & 0 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "commonjs"
}
3 changes: 3 additions & 0 deletions i18n/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "commonjs"
}
41 changes: 40 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -101,5 +101,44 @@
"terser": "^5.16.1",
"ts-jest": "^26.4.3",
"typescript": "4.4.3"
},
"type": "module",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./index.js",
"require": "./dist/echarts.js"
},
"./core": "./core.js",
"./core.js": "./core.js",
"./charts": "./charts.js",
"./charts.js": "./charts.js",
"./components": "./components.js",
"./components.js": "./components.js",
"./features": "./features.js",
"./features.js": "./features.js",
"./renderers": "./renderers.js",
"./renderers.js": "./renderers.js",
"./index.blank": "./index.blank.js",
"./index.blank.js": "./index.blank.js",
"./index.common": "./index.common.js",
"./index.common.js": "./index.common.js",
"./index.simple": "./index.simple.js",
"./index.simple.js": "./index.simple.js",
"./index": "./index.js",
"./index.js": "./index.js",
"./extension/dataTool": "./extension/dataTool/index.js",
"./extension/dataTool/index": "./extension/dataTool/index.js",
"./extension/dataTool/index.js": "./extension/dataTool/index.js",
"./extension/bmap/bmap": "./extension/bmap/bmap.js",
"./extension/bmap/bmap.js": "./extension/bmap/bmap.js",
"./lib/echarts": "./lib/echarts.js",
"./lib/echarts.js": "./lib/echarts.js",
"./lib/extension": "./lib/extension.js",
"./lib/extension.js": "./lib/extension.js",
"./*.js": "./*.js",
"./*.ts": "./*.ts",
"./*.json": "./*.json",
"./*": "./*.js"
}
}
}
3 changes: 3 additions & 0 deletions ssr/client/dist/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "commonjs"
}
3 changes: 3 additions & 0 deletions test/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions theme/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "commonjs"
}

0 comments on commit 23545a6

Please sign in to comment.