Skip to content

Commit

Permalink
Fix Webpack 1 compatibility (#184).
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Sep 20, 2016
1 parent 1a22d15 commit 56df921
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/make-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ module.exports = function(config, env) {
filename: 'build/bundle.js',
},
resolve: {
extensions: ['.js', '.jsx'],
alias: {
codemirror: codeMirrorPath,
},
Expand Down Expand Up @@ -102,6 +101,7 @@ module.exports = function(config, env) {
if (isWebpack2) {
webpackConfig = merge(webpackConfig, {
resolve: {
extensions: ['.js', '.jsx'],
modules: [
sourceDir,
nodeModulesDir,
Expand All @@ -127,6 +127,7 @@ module.exports = function(config, env) {
webpackConfig = merge(webpackConfig, {
styleguidist: config,
resolve: {
extensions: ['', '.js', '.jsx'],
root: sourceDir,
moduleDirectories: [
nodeModulesDir,
Expand Down

0 comments on commit 56df921

Please sign in to comment.