Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
5f53269f
Commit
5f53269f
authored
Oct 02, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update babelrc with comments
parent
c0dffdff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
35 deletions
+38
-35
.babelrc
.babelrc
+0
-35
.babelrc.js
.babelrc.js
+38
-0
No files found.
.babelrc
deleted
100644 → 0
View file @
c0dffdff
{
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"targets": {
"ie": "11"
}
}
]
],
"plugins": [
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-json-strings"
],
"env": {
"karma": {
"plugins": ["babel-plugin-rewire"]
},
"coverage": {
"plugins": [
[
"babel-plugin-istanbul",
{
"exclude": ["spec/javascripts/**/*", "app/assets/javascripts/locale/**/app.js"]
}
],
"babel-plugin-rewire"
]
}
}
}
.babelrc.js
0 → 100644
View file @
5f53269f
const
BABEL_ENV
=
process
.
env
.
BABEL_ENV
||
process
.
env
.
NODE_ENV
||
null
;
const
presets
=
[
[
'
@babel/preset-env
'
,
{
modules
:
false
,
targets
:
{
ie
:
'
11
'
,
},
},
],
];
// include stage 3 proposals
const
plugins
=
[
'
@babel/plugin-syntax-dynamic-import
'
,
'
@babel/plugin-syntax-import-meta
'
,
'
@babel/plugin-proposal-class-properties
'
,
'
@babel/plugin-proposal-json-strings
'
,
];
// add code coverage tooling if necessary
if
(
BABEL_ENV
===
'
coverage
'
)
{
plugins
.
push
([
'
babel-plugin-istanbul
'
,
{
exclude
:
[
'
spec/javascripts/**/*
'
,
'
app/assets/javascripts/locale/**/app.js
'
],
},
]);
}
// add rewire support when running tests
if
(
BABEL_ENV
===
'
karma
'
||
BABEL_ENV
===
'
coverage
'
)
{
plugins
.
push
(
'
babel-plugin-rewire
'
);
}
module
.
exports
=
{
presets
,
plugins
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment