mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
* Add missing dependencies in `art` fixture, update `yarn.lock` **what is the change?:** See title **why make this change?:** We want the `art` fixture to be working so that we can test the latest version of `react-art`. **test plan:** Built and inspected the fixture manually **issue:** Prepping for 16.0RC release - https://github.com/facebook/react/issues/10623 * ran prettier
36 lines
750 B
JavaScript
36 lines
750 B
JavaScript
var webpack = require('webpack');
|
|
var path = require('path');
|
|
|
|
module.exports = {
|
|
context: __dirname,
|
|
entry: './app.js',
|
|
module: {
|
|
loaders: [
|
|
{
|
|
loader: require.resolve('babel-loader'),
|
|
test: /\.js$/,
|
|
exclude: /node_modules/,
|
|
query: {
|
|
presets: [
|
|
require.resolve('babel-preset-es2015'),
|
|
require.resolve('babel-preset-react'),
|
|
],
|
|
plugins: [require.resolve('babel-plugin-transform-class-properties')],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env': {
|
|
NODE_ENV: JSON.stringify('development'),
|
|
},
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
react: require.resolve('react'),
|
|
},
|
|
},
|
|
};
|