Merge pull request #13450 from backstage/blam/fix-esmodule-detection

Use webpack esmodule detection for React Refresh
This commit is contained in:
Ben Lambert
2022-08-31 16:45:00 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Fixed a misconfiguration where all modules where treated as ESM by the React Refresh plugin for Webpack.
@@ -190,7 +190,6 @@ export const transforms = (options: TransformOptions): Transforms => {
if (isDev) {
plugins.push(
new ReactRefreshPlugin({
esModule: true,
overlay: { sockProtocol: 'ws' },
}),
);