Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import { LoaderConfOptions, WebpackConfiguration } from 'kkt'; export default (conf: WebpackConfiguration, env: 'production' | 'development', options: LoaderConfOptions) => { if (options.bundle) { conf.output!.library = '@uiw/react-baidu-map'; conf.externals = { react: { root: 'React', commonjs2: 'react', commonjs: 'react', amd: 'react', }, 'react-dom': { root: 'ReactDOM', commonjs2: 'react-dom', commonjs: 'react-dom', amd: 'react-dom', }, }; } return conf; }; |