We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
afterEach
1 parent 291766d commit e6fbc62Copy full SHA for e6fbc62
packages/browser/rollup.config.js
@@ -43,7 +43,22 @@ export default () =>
43
format: 'esm',
44
},
45
external,
46
- plugins,
+ plugins: [
47
+ {
48
+ name: 'no-side-effects',
49
+ async resolveId(id, importer) {
50
+ // Clipboard injects "afterEach" callbacks
51
+ // We mark it as having no side effects to prevent it from being included in the bundle
52
+ if (id.includes('dataTransfer/Clipboard')) {
53
+ return {
54
+ ...await this.resolve(id, importer),
55
+ moduleSideEffects: false,
56
+ }
57
58
+ },
59
60
+ ...plugins,
61
+ ],
62
63
{
64
input: './src/client/tester/context.ts',
0 commit comments