Skip to content

Commit 25bbd56

Browse files
committed
webchannel-wrapper: change .js to .mjs in the produced index.esm.mjs and index.esm2017.mjs files
1 parent 5d907b8 commit 25bbd56

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/webchannel-wrapper/gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function createRollupTask({
120120
};
121121

122122
const outputOptions = {
123-
file: `dist/index${outputExtension ? '.' : ''}${outputExtension}.js`,
123+
file: `dist/index${outputExtension ? '.' : ''}${outputExtension}.mjs`,
124124
format,
125125
sourcemap: true,
126126
// Prevents warning when compiling CJS that there are named and default exports together.

packages/webchannel-wrapper/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
".": {
1111
"types": "./src/index.d.ts",
1212
"require": "./dist/index.js",
13-
"esm5": "./dist/index.esm.js",
14-
"default": "./dist/index.esm2017.js"
13+
"esm5": "./dist/index.esm.mjs",
14+
"default": "./dist/index.esm2017.mjs"
1515
},
1616
"./package.json": "./package.json"
1717
},

0 commit comments

Comments
 (0)