mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-20 05:25:11 +00:00
rollup: also suppress CIRCULAR_DEPENDENCY warnings on Windows
This commit is contained in:
@@ -11,7 +11,7 @@ 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) => (warning.code === 'CIRCULAR_DEPENDENCY' && warning.message.includes('/@sapper/')) || onwarn(warning);
|
const onwarn = (warning, onwarn) => (warning.code === 'CIRCULAR_DEPENDENCY' && /[/\\]@sapper[/\\]/.test(warning.message)) || onwarn(warning);
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
client: {
|
client: {
|
||||||
|
|||||||
Reference in New Issue
Block a user