deno.land / x / sade@v1.8.1 / rollup.config.js

rollup.config.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { minify } from 'terser';import * as pkg from './package.json';
/** * @type {import('rollup').RollupOptions} */const config = { input: 'src/index.js', output: [{ format: 'esm', file: pkg.module, interop: false, freeze: false, strict: false }, { format: 'cjs', file: pkg.main, exports: 'default', preferConst: true, interop: false, freeze: false, strict: false }], external: [ ...Object.keys(pkg.dependencies), ...require('module').builtinModules, ], plugins: [ { name: 'terser', renderChunk(code) { return minify(code, { module: true, toplevel: false }) } } ]}
export default config;
sade

Version Info

Tagged at
2 years ago