Skip to content

Commit 6f232ac

Browse files
fix(webpack5): Ensure all esm files have .mjs postfix (#721)
1 parent abca2b0 commit 6f232ac

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- "You know what they say ‘Fool me once, strike one, but fool me twice… strike three.’" — Michael Scott
66

7+
## 3.3.1
8+
9+
- fix(webpack5): All `esm` files must have `.mjs` postfix (#721)
10+
711
## 3.3.0
812

913
- feat(webpack): Add `@sentry/webpack-plugin/webpack5` export for webpack 5.1+ and compatible environments (#715)

packages/webpack-plugin/rollup.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ export default {
3838
exports: "named",
3939
sourcemap: true,
4040
entryFileNames: "[name].mjs",
41+
chunkFileNames: "[name].mjs",
4142
},
4243
{
4344
dir: "./dist/cjs",
4445
format: "cjs",
4546
exports: "named",
4647
sourcemap: true,
48+
entryFileNames: "[name].js",
49+
chunkFileNames: "[name].js",
4750
},
4851
],
4952
};

0 commit comments

Comments
 (0)