(config, opts)
| 3 | |
| 4 | module.exports = { |
| 5 | rollup(config, opts) { |
| 6 | config.plugins = config.plugins.map((p) => |
| 7 | p.name === 'replace' |
| 8 | ? replace({ |
| 9 | 'process.env.NODE_ENV': JSON.stringify(opts.env), |
| 10 | preventAssignment: true, |
| 11 | }) |
| 12 | : p |
| 13 | ); |
| 14 | |
| 15 | config.plugins.push( |
| 16 | copy({ |
| 17 | targets: [{ src: 'src/*.d.ts', dest: 'dist/' }], |
| 18 | }) |
| 19 | ); |
| 20 | |
| 21 | return config; |
| 22 | }, |
| 23 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected