Skip to content

Commit 673236d

Browse files
committed
Merge resolve.alias objects + Disable require warning
1 parent 1109e2c commit 673236d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

webpack.config.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ module.exports = {
1111
},
1212
resolve: {
1313
alias: {
14-
'react-dom': '@hot-loader/react-dom'
15-
}
14+
'react-dom': '@hot-loader/react-dom',
15+
'react-lifecycle-visualizer': path.join(__dirname, 'src'),
16+
},
17+
extensions: ['.js', '.jsx']
1618
},
1719
module: {
1820
rules: [{
@@ -42,18 +44,13 @@ module.exports = {
4244
{
4345
loader: 'sass-loader',
4446
options: {
47+
// eslint-disable-next-line global-require
4548
implementation: require('sass')
4649
}
4750
}
4851
]
4952
}]
5053
},
51-
resolve: {
52-
alias: {
53-
'react-lifecycle-visualizer': path.join(__dirname, 'src'),
54-
},
55-
extensions: ['.js', '.jsx']
56-
},
5754
devServer: {
5855
host: '0.0.0.0',
5956
port: devServerPort,

0 commit comments

Comments
 (0)