Skip to content

fix(webpack5): Ensure all esm files have .mjs postfix #721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

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

## 3.3.1

- fix(webpack5): All `esm` files must have `.mjs` postfix (#721)

## 3.3.0

- feat(webpack): Add `@sentry/webpack-plugin/webpack5` export for webpack 5.1+ and compatible environments (#715)
Expand Down
3 changes: 3 additions & 0 deletions packages/webpack-plugin/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ export default {
exports: "named",
sourcemap: true,
entryFileNames: "[name].mjs",
chunkFileNames: "[name].mjs",
},
{
dir: "./dist/cjs",
format: "cjs",
exports: "named",
sourcemap: true,
entryFileNames: "[name].js",
chunkFileNames: "[name].js",
},
],
};
Loading