(file, plugins = [])
| 76 | }; |
| 77 | |
| 78 | const declarations = (file, plugins = []) => ({ |
| 79 | input: './dist/types/purify.d.ts', |
| 80 | // Bare specifiers only. Absolute paths (drive letter on Windows) stay internal. |
| 81 | external: (id) => !id.startsWith('.') && !path.isAbsolute(id), |
| 82 | experimental, |
| 83 | output: [{ file, format: 'es', banner: license }], |
| 84 | plugins: [...plugins, dts({ dtsOnly: true })], |
| 85 | }); |
| 86 | |
| 87 | module.exports = target |
| 88 | ? [bundle] |