mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(cloudcmd) client: build: optional chaining
This commit is contained in:
parent
77d02c7844
commit
9a13502597
3 changed files with 3 additions and 4 deletions
|
|
@ -4,5 +4,6 @@
|
|||
],
|
||||
"plugins": [
|
||||
"module:babel-plugin-macros",
|
||||
"@babel/plugin-proposal-optional-chaining"
|
||||
]
|
||||
}
|
||||
|
|
@ -29,10 +29,7 @@ const clean = (array) => array.filter(notEmpty);
|
|||
const noParse = (a) => /\.spec\.js$/.test(a);
|
||||
|
||||
const options = {
|
||||
babelrc: false,
|
||||
plugins: [
|
||||
'module:babel-plugin-macros',
|
||||
],
|
||||
babelrc: true,
|
||||
};
|
||||
|
||||
const rules = clean([
|
||||
|
|
|
|||
|
|
@ -161,6 +161,7 @@
|
|||
"devDependencies": {
|
||||
"@babel/code-frame": "^7.5.5",
|
||||
"@babel/core": "^7.0.0",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
|
||||
"@babel/preset-env": "^7.0.0",
|
||||
"@cloudcmd/clipboard": "^2.0.0",
|
||||
"@cloudcmd/create-element": "^2.0.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue