(id, importer)
| 59 | { |
| 60 | name: 'no-side-effects', |
| 61 | async resolveId(id, importer) { |
| 62 | // Clipboard injects "afterEach" callbacks |
| 63 | // We mark it as having no side effects to prevent it from being included in the bundle |
| 64 | if (id.includes('dataTransfer/Clipboard')) { |
| 65 | return { |
| 66 | ...await this.resolve(id, importer), |
| 67 | moduleSideEffects: false, |
| 68 | } |
| 69 | } |
| 70 | }, |
| 71 | }, |
| 72 | ...dtsUtils.isolatedDecl(), |
| 73 | ...plugins, |