-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathrollup.bare.config.js
More file actions
40 lines (38 loc) · 986 Bytes
/
rollup.bare.config.js
File metadata and controls
40 lines (38 loc) · 986 Bytes
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
import nodeResolve from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'
import commonjs from '@rollup/plugin-commonjs'
import { handleCircularDependancyWarning } from 'node-stdlib-browser/helpers/rollup/plugin'
import stdLibBrowser from 'node-stdlib-browser'
import inject from '@rollup/plugin-inject'
import postcss from 'rollup-plugin-postcss'
const bareConfig = {
input: './src/index.ts',
plugins: [
nodeResolve({
browser: true,
preferBuiltins: true,
}),
typescript({
module: 'esnext',
// declaration: false,
declarationDir: 'dist-esm/types',
}),
commonjs({
requireReturnsDefault: 'auto',
}),
inject({
process: stdLibBrowser.process,
}),
postcss({
plugins: [],
}),
],
onwarn: (warning, rollupWarn) => {
handleCircularDependancyWarning(warning, rollupWarn)
},
output: {
dir: 'dist-esm',
format: 'esm',
},
}
export default bareConfig