Use absolute paths for resolve.root in webpack packaging fixtures
Webpack requires absolute paths here
Brandon Dail committed
Jan 9, 2017 at 15:59 UTC
2f8a3e5100460581509bbb57a8e3eeea7534b4cd
2 files changed
+6
-2
fixtures/packaging/webpack-alias/config.js
+3
-1
@@ -1,10 +1,12 @@
1
+var path = require('path');
2
+
3
module.exports = {
4
entry: './input',
5
output: {
6
filename: 'output.js',
7
},
8
resolve: {
7
- root: '../../../build/packages',
9
+ root: path.resolve('../../../build/packages'),
10
alias: {
11
'react': 'react/dist/react-with-addons',
12
'react-dom': 'react-dom/dist/react-dom',
fixtures/packaging/webpack/config.js
+3
-1
@@ -1,9 +1,11 @@
1
+var path = require('path');
2
+
3
module.exports = {
4
entry: './input',
5
output: {
6
filename: 'output.js',
7
},
8
resolve: {
7
- root: '../../../build/packages/',
9
+ root: path.resolve('../../../build/packages/'),
10
},
11
};