Merge pull request #13450 from backstage/blam/fix-esmodule-detection
Use webpack esmodule detection for React Refresh
This commit is contained in:
@@ -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' },
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user