Skip to content

Commit add3bb7

Browse files
committed
appease the dweeby little hall monitor
1 parent 3e04636 commit add3bb7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/svelte/scripts/check-treeshakeability.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
77

88
let failed = false;
99

10+
// eslint-disable-next-line no-console
1011
console.group('checking treeshakeability');
1112

1213
for (const key in pkg.exports) {
@@ -41,15 +42,19 @@ for (const key in pkg.exports) {
4142

4243
const code = output[0].code.replace(/import\s+([^'"]+from\s+)?(['"])[^'"]+\2\s*;?/, '');
4344
if (code.trim()) {
45+
// eslint-disable-next-line no-console
4446
console.error(code);
47+
// eslint-disable-next-line no-console
4548
console.error(`❌ ${subpackage} (${type})`);
4649
failed = true;
4750
} else {
51+
// eslint-disable-next-line no-console
4852
console.error(`✅ ${subpackage} (${type})`);
4953
}
5054
}
5155
}
5256

57+
// eslint-disable-next-line no-console
5358
console.groupEnd();
5459

5560
if (failed) {

0 commit comments

Comments
 (0)