Skip to content

Commit afea7bd

Browse files
committed
fix: do not override resolvers in production webpack
1 parent ca317b3 commit afea7bd

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

webpack/production.server.babel.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import config from '../config';
44
import UglifyJSPlugin from 'uglifyjs-webpack-plugin';
55
import nodeExternals from 'webpack-node-externals';
66
import path from 'path';
7-
import { mapValues, set } from 'lodash';
7+
import { set } from 'lodash';
88
import { babel } from '../package.json';
99

1010
// override base babel options to uglify
@@ -26,13 +26,6 @@ export default {
2626
context: null,
2727
target: 'node',
2828
entry: ['./server/renderer/handler.js'],
29-
resolve: {
30-
extensions: ['.js', '.jsx', '.scss'],
31-
alias: mapValues(
32-
{ ...config.clientResolvePaths, ...config.serverResolvePaths },
33-
str => path.join(process.cwd(), ...str.split('/'))
34-
)
35-
},
3629
externals: [
3730
// images are handled by isomorphic webpack.
3831
// html files are required directly

0 commit comments

Comments
 (0)