forked from alpinejs/alpine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup-ie11.config.js
45 lines (44 loc) · 1.34 KB
/
rollup-ie11.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
43
44
45
import babel from 'rollup-plugin-babel';
import filesize from 'rollup-plugin-filesize';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import multi from '@rollup/plugin-multi-entry';
import replace from '@rollup/plugin-replace';
export default {
input: ['src/polyfills.js', 'src/index.js'],
output: {
name: 'Alpine',
file: 'dist/alpine-ie11.js',
format: 'umd',
},
plugins: [
multi(),
commonjs(),
// 'observable-membrane' uses process.env. We don't have that...
replace({ "process.env.NODE_ENV": "'production'" }),
resolve(),
filesize(),
babel({
babelrc: false,
exclude: 'node_modules/**',
presets: [
[
"@babel/preset-env",
{
targets: {
browsers: "> 0.5%, ie >= 11"
},
modules: false,
spec: true,
useBuiltIns: "usage",
forceAllTransforms: true,
corejs: {
version: 3,
proposals: false
}
}
]
]
})
]
}