Skip to content

🎥 Make videos programmatically with React

better chance of filtering, and remove useless test

Jonny Burger997df589df13
diff --git a/packages/bundler/src/ignore-packfilecache-warnings.ts b/packages/bundler/src/ignore-packfilecache-warnings.ts
index 10c85660ca..06199b2a54 100644
--- a/packages/bundler/src/ignore-packfilecache-warnings.ts
+++ b/packages/bundler/src/ignore-packfilecache-warnings.ts
@@ -4,11 +4,7 @@ import type {Compiler} from 'webpack';
export class IgnorePackFileCacheWarningsPlugin {
filter(error: Error) {
- if (
- error.message.includes(
- '[webpack.cache.PackFileCacheStrategy] Serializing big strings',
- )
- ) {
+ if (error.message.includes('Serializing big strings')) {
return false;
}
diff --git a/packages/bundler/src/test/ignore-packfilecache-warnings.test.ts b/packages/bundler/src/test/ignore-packfilecache-warnings.test.ts
deleted file mode 100644
index 80fbe41521..0000000000
--- a/packages/bundler/src/test/ignore-packfilecache-warnings.test.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import {expect, test} from 'bun:test';
-import {IgnorePackFileCacheWarningsPlugin} from '../ignore-packfilecache-warnings';
-
-test('IgnorePackFileCacheWarningsPlugin should filter PackFileCacheStrategy warnings', () => {
- const plugin = new IgnorePackFileCacheWarningsPlugin();
-
- // Should filter out the target warning
- const targetWarning = new Error(
- '[webpack.cache.PackFileCacheStrategy] Serializing big strings (917kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)',
- );
- expect(plugin.filter(targetWarning)).toBe(false);
-
- // Should allow other warnings through
- const otherWarning = new Error('Some other webpack warning');
- expect(plugin.filter(otherWarning)).toBe(true);
-
- // Should allow warnings with similar but not exact text
- const similarWarning = new Error(
- '[webpack.cache.SomeOtherStrategy] Serializing big strings',
- );
- expect(plugin.filter(similarWarning)).toBe(true);
-});