mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Use absolute paths for resolve.root in webpack packaging fixtures
Webpack requires absolute paths here
This commit is contained in:
parent
429da399e9
commit
2f8a3e5100
|
|
@ -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/'),
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user