From a50e52b5f4e43ad7650884b844c6f87d56bbee04 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Sat, 6 Jun 2020 09:17:16 -0700 Subject: [PATCH] Fix build warnings --- rollup.config.js | 6 ++++++ yarn.lock | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index fa71141..6fe1ca1 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -28,6 +28,9 @@ const client = ['browse', 'main'].map(entryName => { '@emotion/core': 'emotionCore' } }, + moduleContext: { + 'node_modules/react-icons/lib/esm/iconBase.js': 'window' + }, plugins: [ manifest.record({ publicPath: '/_client/' }), babel({ exclude: /node_modules/ }), @@ -67,6 +70,9 @@ const server = { external: builtinModules.concat(dependencies), input: 'modules/server.js', output: { file: 'server.js', format: 'cjs' }, + moduleContext: { + 'node_modules/react-icons/lib/esm/iconBase.js': 'global' + }, plugins: [ manifest.inject({ virtualId: 'entry-manifest' }), babel({ exclude: /node_modules/ }), diff --git a/yarn.lock b/yarn.lock index 880ad71..83db9a6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1847,9 +1847,9 @@ camelcase@^5.0.0: integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== caniuse-lite@^1.0.30000967: - version "1.0.30000969" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000969.tgz#7664f571f2072657bde70b00a1fc1ba41f1942a9" - integrity sha512-Kus0yxkoAJgVc0bax7S4gLSlFifCa7MnSZL9p9VuS/HIKEL4seaqh28KIQAAO50cD/rJ5CiJkJFapkdDAlhFxQ== + version "1.0.30001078" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001078.tgz" + integrity sha512-sF12qXe9VMm32IEf/+NDvmTpwJaaU7N1igpiH2FdI4DyABJSsOqG3ZAcFvszLkoLoo1y6VJLMYivukUAxaMASw== capture-exit@^1.2.0: version "1.2.0" @@ -5701,9 +5701,9 @@ react-dom@^16.8.6: scheduler "^0.13.6" react-icons@^3.7.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-3.7.0.tgz#64fe46231fabfeea27895edeae6c3b78114b8c8f" - integrity sha512-7MyPwjIhuyW0D2N3s4DEd0hGPGFf0sK+IIRKhc1FvSpZNVmnUoGvHbmAwzGJU+3my+fvihVWgwU5SDtlAri56Q== + version "3.10.0" + resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-3.10.0.tgz#6c217a2dde2e8fa8d293210023914b123f317297" + integrity sha512-WsQ5n1JToG9VixWilSo1bHv842Cj5aZqTGiS3Ud47myF6aK7S/IUY2+dHcBdmkQcCFRuHsJ9OMUI0kTDfjyZXQ== dependencies: camelcase "^5.0.0"