forked from mschlitz-trux/angularjs-webpack-babel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.babelrc
More file actions
27 lines (27 loc) · 752 Bytes
/
.babelrc
File metadata and controls
27 lines (27 loc) · 752 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
{
"presets": [
// "env",
[
"@babel/preset-env",
{
"corejs": 3,
"modules": "commonjs", // resolves https://github.com/noppa/ng-hot-reload/issues/31
"shippedProposals": true,
"useBuiltIns": "usage"
}
]
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-object-assign",
[
// By default, this plugin will attempt to add annotations to common AngularJS code patterns.
// This behavior can be disabled (requiring you to mark up functions with /* @ngInject */ or 'ngInject')
// https://www.npmjs.com/package/babel-plugin-angularjs-annotate
"angularjs-annotate",
{
"explicitOnly": false
}
]
]
}