]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Specify module for Webpack 4 (#11037)
authorAndrew Kane <acekane1@gmail.com>
Tue, 10 Jan 2023 17:01:59 +0000 (09:01 -0800)
committerGitHub <noreply@github.com>
Tue, 10 Jan 2023 17:01:59 +0000 (12:01 -0500)
auto/package.json
helpers/package.json
package.json

index 0b684565a53ce3b574810303fb801f88d08d5e70..7e0ca323fb2134f3e72952277e8808da93286e81 100644 (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",
index 87cfe20d2891f90449878a398c5f74e4fc86762b..b856155d4095b4ef805450fcb3258f0c3a097792 100644 (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",
index 10aee37fb83cf07571e37683ae609d0c2e9db761..fdb633e6f606eec97d8ca0f73c670344587f9f01 100644 (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",