forked from projectfluent/fluent.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel_config.js
More file actions
33 lines (33 loc) · 913 Bytes
/
babel_config.js
File metadata and controls
33 lines (33 loc) · 913 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
export default {
babelrc: false,
presets: [
["@babel/preset-env", {
// Cf. https://github.com/rollup/rollup-plugin-babel#modules
modules: false,
targets: {
browsers: [
"Firefox >= 52",
"FirefoxAndroid >= 52",
"Chrome >= 55",
"ChromeAndroid >= 55",
"Edge >= 15",
"Safari >= 10.1",
"iOS >= 10.3",
],
node: "8.9",
},
exclude: [
// Exclude regeneratorRuntime explicitly because babel-preset-env
// incorrectly transpiles async functions for Firefox 52.
// See https://github.com/babel/babel/issues/8086.
"transform-regenerator"
],
}]
],
plugins: [
// Shipped in Firefox 57, Chrome 63
"@babel/plugin-proposal-async-generator-functions",
// Shipped in Firefox 55, Chrome 60
"@babel/plugin-proposal-object-rest-spread"
]
};