mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
1ebeb0542f
* Move build/packages/* to build/node_modules/* This fixes Node resolution in that folder and lets us require() packages in it in Node shell for manual testing. * Link fixtures to packages/node_modules This updates the location and also uses link: instead of file: to avoid Yarn caching the folder contents.
20 lines
363 B
JavaScript
20 lines
363 B
JavaScript
var path = require('path');
|
|
var webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: './input',
|
|
output: {
|
|
filename: 'output.js',
|
|
},
|
|
resolve: {
|
|
root: path.resolve('../../../../build/node_modules/'),
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env': {
|
|
NODE_ENV: JSON.stringify('production'),
|
|
},
|
|
}),
|
|
],
|
|
};
|