mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
Specify module for Webpack 4 (#11037)
This commit is contained in:
parent
300e2119d8
commit
b2b881b9b1
@ -4,6 +4,7 @@
|
|||||||
"description": "Auto registering package. Exists to support bundlers without exports support such as webpack 4.",
|
"description": "Auto registering package. Exists to support bundlers without exports support such as webpack 4.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./auto.cjs",
|
"main": "./auto.cjs",
|
||||||
|
"module": "./auto.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
"types": "./auto.d.ts",
|
"types": "./auto.d.ts",
|
||||||
"import": "./auto.js",
|
"import": "./auto.js",
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
"description": "Helpers package. Exists to support bundlers without exports support such as webpack 4.",
|
"description": "Helpers package. Exists to support bundlers without exports support such as webpack 4.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./helpers.cjs",
|
"main": "./helpers.cjs",
|
||||||
|
"module": "./helpers.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
"types": "./helpers.d.ts",
|
"types": "./helpers.d.ts",
|
||||||
"import": "./helpers.js",
|
"import": "./helpers.js",
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
"jsdelivr": "./dist/chart.umd.js",
|
"jsdelivr": "./dist/chart.umd.js",
|
||||||
"unpkg": "./dist/chart.umd.js",
|
"unpkg": "./dist/chart.umd.js",
|
||||||
"main": "./dist/chart.cjs",
|
"main": "./dist/chart.cjs",
|
||||||
|
"module": "./dist/chart.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/types.d.ts",
|
"types": "./dist/types.d.ts",
|
||||||
|
Loading…
Reference in New Issue
Block a user