-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathrollup.config.js
More file actions
31 lines (29 loc) · 727 Bytes
/
rollup.config.js
File metadata and controls
31 lines (29 loc) · 727 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
import babel from 'rollup-plugin-babel';
import babelrc from 'babelrc-rollup';
import { terser } from 'rollup-plugin-terser';
const babelConfig = {
'presets': [
['@babel/preset-env', {
'targets': {
'browsers': ['last 2 versions', 'IE >= 11']
},
'loose': true
}]
]
};
export default {
input: 'src/querySelectorDeep.js',
plugins: [
babel(babelrc({
addExternalHelpersPlugin: false,
config: babelConfig,
exclude: 'node_modules/**'
})),
terser()
],
output: {
format: 'iife',
name: 'querySelectorShadowDom',
file: 'dist/querySelectorShadowDom.js'
}
};