external-antd-helper
v1.0.4
Published
```javascript // webpack.config.js
Downloads
1
Readme
external react helper
// webpack.config.js
const externalAntdHelper = require('external-antd-helper').default;
const externalAntdConfig = externalAntdHelper();
const config = {
externalsType: 'script',
externals: {
...externalAntdConfig.externals()
},
module: {
rules: [
//...
{
test: /\.(js|jsx|ts|tsx)?$/,
exclude: /node_modules/,
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript'],
plugins: [
//...
externalAntdConfig.babel()
]
}
},
//...
]
}
}