Skip to content

Commit 71aae18

Browse files
committed
Added support for the Angular compiler.
The Angular compiler looks for the main field using a few fields in the package.json. The order it uses is: - es2020 - es2015 - browser - module - main The first entry the Angular compiler would find before this change was the 'main' entry point. This is however compiled as `common js` and Angular is looking for an `esm` so it would complain (it would still work though). Adding `es2020` as an entry point fixes this problem.
1 parent e524061 commit 71aae18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"url": "https://github.com/apexcharts/apexcharts.js.git"
88
},
99
"main": "dist/apexcharts.common.js",
10+
"es2020": "dist/apexcharts.esm.js",
1011
"unpkg": "dist/apexcharts.js",
1112
"jsdelivr": "dist/apexcharts.js",
1213
"typings": "types/apexcharts.d.ts",

0 commit comments

Comments
 (0)