forked from Unleash/unleash-js-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.js
More file actions
28 lines (25 loc) · 706 Bytes
/
rollup.config.js
File metadata and controls
28 lines (25 loc) · 706 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
import typescript from 'rollup-plugin-typescript2';
import minify from 'rollup-plugin-babel-minify';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import nodePolyfills from 'rollup-plugin-node-polyfills';
export default {
input: './src/index.ts',
output: [
{
file: './build/main.min.js',
format: 'iife',
name: 'unleash' // the global which can be used in a browser
}
],
plugins: [
nodePolyfills(),
resolve({
}),
commonjs({ // rollup-plugin-commonjs
include: 'node_modules/**'
}),
typescript({tsconfigOverride:{compilerOptions: {module: "ES2015" }}}),
minify( {comments: false} )
]
}