Skip to content

Commit 23545a6

Browse files
committed
feat: change to default ESM package. For developer testing and node usage in customization module scenario.
1 parent 58b9417 commit 23545a6

File tree

7 files changed

+58
-1
lines changed

7 files changed

+58
-1
lines changed

build/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "commonjs"
3+
}

dist/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "commonjs"
3+
}

i18n/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "commonjs"
3+
}

package.json

+40-1
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,44 @@
101101
"terser": "^5.16.1",
102102
"ts-jest": "^26.4.3",
103103
"typescript": "4.4.3"
104+
},
105+
"type": "module",
106+
"exports": {
107+
".": {
108+
"types": "./index.d.ts",
109+
"import": "./index.js",
110+
"require": "./dist/echarts.js"
111+
},
112+
"./core": "./core.js",
113+
"./core.js": "./core.js",
114+
"./charts": "./charts.js",
115+
"./charts.js": "./charts.js",
116+
"./components": "./components.js",
117+
"./components.js": "./components.js",
118+
"./features": "./features.js",
119+
"./features.js": "./features.js",
120+
"./renderers": "./renderers.js",
121+
"./renderers.js": "./renderers.js",
122+
"./index.blank": "./index.blank.js",
123+
"./index.blank.js": "./index.blank.js",
124+
"./index.common": "./index.common.js",
125+
"./index.common.js": "./index.common.js",
126+
"./index.simple": "./index.simple.js",
127+
"./index.simple.js": "./index.simple.js",
128+
"./index": "./index.js",
129+
"./index.js": "./index.js",
130+
"./extension/dataTool": "./extension/dataTool/index.js",
131+
"./extension/dataTool/index": "./extension/dataTool/index.js",
132+
"./extension/dataTool/index.js": "./extension/dataTool/index.js",
133+
"./extension/bmap/bmap": "./extension/bmap/bmap.js",
134+
"./extension/bmap/bmap.js": "./extension/bmap/bmap.js",
135+
"./lib/echarts": "./lib/echarts.js",
136+
"./lib/echarts.js": "./lib/echarts.js",
137+
"./lib/extension": "./lib/extension.js",
138+
"./lib/extension.js": "./lib/extension.js",
139+
"./*.js": "./*.js",
140+
"./*.ts": "./*.ts",
141+
"./*.json": "./*.json",
142+
"./*": "./*.js"
104143
}
105-
}
144+
}

ssr/client/dist/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "commonjs"
3+
}

test/package.json

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theme/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "commonjs"
3+
}

0 commit comments

Comments
 (0)