Specify module for Webpack 4 (#11037)

This commit is contained in:
Andrew Kane 2023-01-10 09:01:59 -08:00 committed by GitHub
parent 300e2119d8
commit b2b881b9b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@
"description": "Auto registering package. Exists to support bundlers without exports support such as webpack 4.",
"type": "module",
"main": "./auto.cjs",
"module": "./auto.js",
"exports": {
"types": "./auto.d.ts",
"import": "./auto.js",

View File

@ -4,6 +4,7 @@
"description": "Helpers package. Exists to support bundlers without exports support such as webpack 4.",
"type": "module",
"main": "./helpers.cjs",
"module": "./helpers.js",
"exports": {
"types": "./helpers.d.ts",
"import": "./helpers.js",

View File

@ -13,6 +13,7 @@
"jsdelivr": "./dist/chart.umd.js",
"unpkg": "./dist/chart.umd.js",
"main": "./dist/chart.cjs",
"module": "./dist/chart.js",
"exports": {
".": {
"types": "./dist/types.d.ts",