Skip to content

Commit

Permalink
Specify module for Webpack 4 (#11037)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jan 10, 2023
1 parent 300e211 commit b2b881b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions auto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

1 comment on commit b2b881b

@abreupardom
Copy link

@abreupardom abreupardom commented on b2b881b Jan 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how can use chartjs from composer nnnick/chartjs on my script tag.... <script src="vendor/nnnick/chartjs/dist/chart.js"> My code here</script> but the "dist" folder no existe so my chart not show, only version 2.9.4 and my chartjs showing but 4.2.0 no can find this folder, so how can use muy chatrjs on my <script src="???????">my code</script>

Please sign in to comment.