mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-06-30 18:54:49 +02:00
Ignore annoying warning
This commit is contained in:
parent
788a2c67df
commit
e889a41e63
|
@ -13,10 +13,18 @@ const mode = process.env.NODE_ENV
|
||||||
const dev = mode === 'development'
|
const dev = mode === 'development'
|
||||||
const legacy = !!process.env.SAPPER_LEGACY_BUILD
|
const legacy = !!process.env.SAPPER_LEGACY_BUILD
|
||||||
|
|
||||||
const onwarn = (warning, onwarn) =>
|
const onwarn = (warning, onwarn) => {
|
||||||
(warning.code === 'CIRCULAR_DEPENDENCY' &&
|
if (
|
||||||
/[/\\]@sapper[/\\]/.test(warning.message)) ||
|
(warning.code === 'CIRCULAR_DEPENDENCY' &&
|
||||||
|
/[/\\]@sapper[/\\]/.test(warning.message)) ||
|
||||||
|
warning.code === 'THIS_IS_UNDEFINED'
|
||||||
|
) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
onwarn(warning)
|
onwarn(warning)
|
||||||
|
}
|
||||||
|
|
||||||
const dedupe = importee =>
|
const dedupe = importee =>
|
||||||
importee === 'svelte' || importee.startsWith('svelte/')
|
importee === 'svelte' || importee.startsWith('svelte/')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user