Skip to content

Commit 1f8649c

Browse files
committed
Rename bundles to both use .js extension
The .mjs extension causes problems in several Webpack configurations, including those used by create-react-app and gatsby. Using .js seems to avoid those issues.
1 parent 08fa143 commit 1f8649c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"XMLSerializer",
1111
"w3c"
1212
],
13-
"main": "dist/slimdom.js",
14-
"module": "dist/slimdom.mjs",
13+
"main": "dist/slimdom.umd.js",
14+
"module": "dist/slimdom.esm.js",
1515
"scripts": {
1616
"build:clean": "rimraf dist && rimraf lib && rimraf temp",
1717
"build:bundle": "tsc -P tsconfig.build.json && rollup -c",

0 commit comments

Comments
 (0)