Issues (5)

config/rollup.dev.config.js (1 issue)

1 View Code Duplication
import typescript from "rollup-plugin-typescript2";
0 ignored issues
show
This code seems to be duplicated in your project.
Loading history...
2
import { terser } from "rollup-plugin-terser";
3
import banner2 from "rollup-plugin-banner2";
4
5
import pkg from "../package.json";
6
7
export default [
8
  {
9
    input: "src/index.ts",
10
    output: [
11
      {
12
        dir: "playground/src/modular-preview",
13
        format: "cjs",
14
        plugins: [terser()],
15
        strict: false,
16
      },
17
      {
18
        dir: "playground/src/modular-preview",
19
        format: "esm",
20
        // plugins: [terser()],
21
        strict: false,
22
      },
23
      {
24
        dir: pkg.module,
25
        format: "cjs",
26
        strict: false,
27
        plugins: [terser()],
28
      },
29
      {
30
        dir: pkg.module,
31
        format: "esm",
32
        // plugins: [terser()],
33
        strict: false,
34
      },
35
    ],
36
    plugins: [
37
      banner2(() => `/* eslint-disable */`),
38
      typescript({
39
        rollupCommonJSResolveHack: false,
40
        clean: true,
41
      }),
42
    ],
43
    external: Object.keys(pkg.peerDependencies || {}),
44
  },
45
];
46