FT
Size: a a a
FT
FT
A
Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
FT
FT
СА
Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
FT
FT
"peerDependencies": {
"react": "^16.3.0",
"react-dom": "^16.3.0"
},
FT
output: {
path: path.join(__dirname, 'dist'),
filename: 'index.js',
library: pkg.name,
libraryTarget: 'umd',
},
AP
output: {
path: path.join(__dirname, 'dist'),
filename: 'index.js',
library: pkg.name,
libraryTarget: 'umd',
},
FT
externals: process.env.NODE_ENV === 'production' ? [
{ react: { root: 'React', amd: 'react', commonjs: 'react', commonjs2: 'react' } },
{ 'react-dom': { root: 'ReactDOM', amd: 'react-dom', commonjs: 'react-dom', commonjs2: 'react-dom' } },
// { 'prop-types': { root: 'PropTypes', amd: 'prop-types', commonjs: 'prop-types', commonjs2: 'prop-types' } },
] : [],
FT
AP
externals: process.env.NODE_ENV === 'production' ? [
{ react: { root: 'React', amd: 'react', commonjs: 'react', commonjs2: 'react' } },
{ 'react-dom': { root: 'ReactDOM', amd: 'react-dom', commonjs: 'react-dom', commonjs2: 'react-dom' } },
// { 'prop-types': { root: 'PropTypes', amd: 'prop-types', commonjs: 'prop-types', commonjs2: 'prop-types' } },
] : [],
externals: {
react: 'react',
'react-dom': 'react-dom',
'react-router': 'react-router',
},
FT
FT
externals: ['react', 'react-dom'],
AP
AP
{
test: /\.(bmp|eot|gif|jpe?g|png|ttf|woff|woff2)$/i,
loader: 'file-loader',
options: {
outputPath: 'assets',
publicPath: '/_/common/dist/assets',
name: '[name].[ext]',
},
},
AS
AS