Skip to content

Commit 84a624d

Browse files
gaearonTimer
authored andcommitted
Fix the build
1 parent b33701e commit 84a624d

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

packages/react-error-overlay/webpack.config.iframe.js

+1-16
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,7 @@ module.exports = {
2121
test: /\.js$/,
2222
include: [
2323
path.resolve(__dirname, './src'),
24-
path.dirname(
25-
require.resolve('chalk', {
26-
paths: [path.dirname(require.resolve('@babel/code-frame'))],
27-
})
28-
),
29-
path.dirname(
30-
require.resolve('ansi-styles', {
31-
paths: [
32-
path.dirname(
33-
require.resolve('chalk', {
34-
paths: [path.dirname(require.resolve('@babel/code-frame'))],
35-
})
36-
),
37-
],
38-
})
39-
),
24+
/\/node_modules\/(ansi-styles|chalk)\//,
4025
],
4126
use: {
4227
loader: 'babel-loader',

0 commit comments

Comments
 (0)