Fix build warnings
This commit is contained in:
parent
78c9de2e0e
commit
a50e52b5f4
|
@ -28,6 +28,9 @@ const client = ['browse', 'main'].map(entryName => {
|
||||||
'@emotion/core': 'emotionCore'
|
'@emotion/core': 'emotionCore'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
moduleContext: {
|
||||||
|
'node_modules/react-icons/lib/esm/iconBase.js': 'window'
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
manifest.record({ publicPath: '/_client/' }),
|
manifest.record({ publicPath: '/_client/' }),
|
||||||
babel({ exclude: /node_modules/ }),
|
babel({ exclude: /node_modules/ }),
|
||||||
|
@ -67,6 +70,9 @@ const server = {
|
||||||
external: builtinModules.concat(dependencies),
|
external: builtinModules.concat(dependencies),
|
||||||
input: 'modules/server.js',
|
input: 'modules/server.js',
|
||||||
output: { file: 'server.js', format: 'cjs' },
|
output: { file: 'server.js', format: 'cjs' },
|
||||||
|
moduleContext: {
|
||||||
|
'node_modules/react-icons/lib/esm/iconBase.js': 'global'
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
manifest.inject({ virtualId: 'entry-manifest' }),
|
manifest.inject({ virtualId: 'entry-manifest' }),
|
||||||
babel({ exclude: /node_modules/ }),
|
babel({ exclude: /node_modules/ }),
|
||||||
|
|
12
yarn.lock
12
yarn.lock
|
@ -1847,9 +1847,9 @@ camelcase@^5.0.0:
|
||||||
integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==
|
integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==
|
||||||
|
|
||||||
caniuse-lite@^1.0.30000967:
|
caniuse-lite@^1.0.30000967:
|
||||||
version "1.0.30000969"
|
version "1.0.30001078"
|
||||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000969.tgz#7664f571f2072657bde70b00a1fc1ba41f1942a9"
|
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001078.tgz"
|
||||||
integrity sha512-Kus0yxkoAJgVc0bax7S4gLSlFifCa7MnSZL9p9VuS/HIKEL4seaqh28KIQAAO50cD/rJ5CiJkJFapkdDAlhFxQ==
|
integrity sha512-sF12qXe9VMm32IEf/+NDvmTpwJaaU7N1igpiH2FdI4DyABJSsOqG3ZAcFvszLkoLoo1y6VJLMYivukUAxaMASw==
|
||||||
|
|
||||||
capture-exit@^1.2.0:
|
capture-exit@^1.2.0:
|
||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
|
@ -5701,9 +5701,9 @@ react-dom@^16.8.6:
|
||||||
scheduler "^0.13.6"
|
scheduler "^0.13.6"
|
||||||
|
|
||||||
react-icons@^3.7.0:
|
react-icons@^3.7.0:
|
||||||
version "3.7.0"
|
version "3.10.0"
|
||||||
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-3.7.0.tgz#64fe46231fabfeea27895edeae6c3b78114b8c8f"
|
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-3.10.0.tgz#6c217a2dde2e8fa8d293210023914b123f317297"
|
||||||
integrity sha512-7MyPwjIhuyW0D2N3s4DEd0hGPGFf0sK+IIRKhc1FvSpZNVmnUoGvHbmAwzGJU+3my+fvihVWgwU5SDtlAri56Q==
|
integrity sha512-WsQ5n1JToG9VixWilSo1bHv842Cj5aZqTGiS3Ud47myF6aK7S/IUY2+dHcBdmkQcCFRuHsJ9OMUI0kTDfjyZXQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
camelcase "^5.0.0"
|
camelcase "^5.0.0"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue