mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Use absolute paths for resolve.root in webpack packaging fixtures
Webpack requires absolute paths here
This commit is contained in:
1 parent
429da399e9
commit
2f8a3e5100
2 files changed
+6
-2
No files matched your search
@@ -1,10 +1,12 @@
|
||||
var path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: './input',
|
||||
output: {
|
||||
filename: 'output.js',
|
||||
},
|
||||
resolve: {
|
||||
root: '../../../build/packages',
|
||||
root: path.resolve('../../../build/packages'),
|
||||
alias: {
|
||||
'react': 'react/dist/react-with-addons',
|
||||
'react-dom': 'react-dom/dist/react-dom',
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
var path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: './input',
|
||||
output: {
|
||||
filename: 'output.js',
|
||||
},
|
||||
resolve: {
|
||||
root: '../../../build/packages/',
|
||||
root: path.resolve('../../../build/packages/'),
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user