mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
Added and updated copyright headers. Added some missing Flow types. Removed an invalid prop-types import.
24 lines
508 B
JavaScript
24 lines
508 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* @emails react-core
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const {resolve} = require('path');
|
|
const webpack = require('webpack');
|
|
|
|
module.exports = ({stage, actions}) => {
|
|
actions.setWebpackConfig({
|
|
resolve: {
|
|
modules: [
|
|
resolve(__dirname, '../src'),
|
|
resolve(__dirname, '../node_modules'),
|
|
],
|
|
},
|
|
// See https://github.com/FormidableLabs/react-live/issues/5
|
|
plugins: [new webpack.IgnorePlugin(/^(xor|props)$/)],
|
|
});
|
|
};
|