mirror of
https://github.com/facebook/react.git
synced 2026-02-24 20:53:03 +00:00
* 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.
16 lines
313 B
JavaScript
16 lines
313 B
JavaScript
var path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './input',
|
|
output: {
|
|
filename: 'output.js',
|
|
},
|
|
resolve: {
|
|
root: path.resolve('../../../../build/node_modules'),
|
|
alias: {
|
|
react: 'react/umd/react.development',
|
|
'react-dom': 'react-dom/umd/react-dom.development',
|
|
},
|
|
},
|
|
};
|