MCPcopy Index your code
hub / github.com/unlayer/react-email-editor / rollup

Function rollup

tsdx.config.js:5–22  ·  view source on GitHub ↗
(config, opts)

Source from the content-addressed store, hash-verified

3
4module.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};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected