diff --git a/packages/react-error-overlay/package.json b/packages/react-error-overlay/package.json index a1d031af960..defdc4fa498 100644 --- a/packages/react-error-overlay/package.json +++ b/packages/react-error-overlay/package.json @@ -59,7 +59,6 @@ "jest-fetch-mock": "2.1.2", "object-assign": "4.1.1", "promise": "8.1.0", - "raw-loader": "^4.0.2", "react": "^17.0.1", "react-app-polyfill": "^2.0.0", "react-dom": "^17.0.1", diff --git a/packages/react-error-overlay/webpack.config.js b/packages/react-error-overlay/webpack.config.js index 82dec77be5b..dc816b6f103 100644 --- a/packages/react-error-overlay/webpack.config.js +++ b/packages/react-error-overlay/webpack.config.js @@ -16,12 +16,13 @@ module.exports = { filename: 'index.js', library: 'ReactErrorOverlay', libraryTarget: 'umd', + assetModuleFilename: 'assets/[hash][ext][query]', }, module: { rules: [ { test: /iframe-bundle\.js$/, - use: 'raw-loader', + type: 'asset/source', }, { test: /\.js$/,