You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
501 B
23 lines
501 B
/**
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
*
|
|
* @emails react-core
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const {resolve} = require('path');
|
|
const webpack = require('webpack');
|
|
|
|
module.exports = ({config, stage}) => {
|
|
// See https://github.com/FormidableLabs/react-live/issues/5
|
|
config.plugin('ignore', () => new webpack.IgnorePlugin(/^(xor|props)$/));
|
|
|
|
config.merge({
|
|
resolve: {
|
|
root: resolve(__dirname, '../src'),
|
|
extensions: ['', '.js', '.jsx', '.json'],
|
|
},
|
|
});
|
|
return config;
|
|
};
|