Skip to content

Commit 59b637e

Browse files
authoredDec 4, 2023
feat!: make ESM properly load ESM endpoint and not masquerade as ESM (#700)
BREAKING CHANGE: This ensures that Framework will properly load the files from the dist/esm folder. This is BREAKING to ALL plugins that are not equally updated to load ESM specific files because they will otherwise load the CJS files of @sapphire/framework and every piece will load twice. DO NOT use this version without also updating your plugins! Sapphire plugins have been released alongside this version, third-party plugins will need to be updated by their respective authors!!
1 parent 0e66fa6 commit 59b637e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"exports": {
99
"import": {
1010
"types": "./dist/esm/index.d.mts",
11-
"default": "./dist/cjs/index.cjs"
11+
"default": "./dist/esm/index.mjs"
1212
},
1313
"require": {
1414
"types": "./dist/cjs/index.d.ts",

0 commit comments

Comments
 (0)