Skip to content

Commit 75e2d27

Browse files
committed
upgrade babel 7
1 parent 7d0b8ab commit 75e2d27

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.babelrc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2-
"presets": ["es2015"],
3-
"plugins": ["add-module-exports"]
4-
}
2+
"presets": [
3+
"@babel/preset-env"
4+
],
5+
"plugins": [
6+
"babel-plugin-espower"
7+
]
8+
}

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
"textlint-util-to-string": "^1.2.0"
1515
},
1616
"devDependencies": {
17-
"babel-cli": "^6.5.1",
18-
"babel-plugin-add-module-exports": "^0.1.2",
19-
"babel-preset-es2015": "^6.5.0",
17+
"@babel/cli": "^7.0.0",
18+
"@babel/core": "^7.0.0",
19+
"@babel/preset-env": "^7.0.0",
20+
"@babel/register": "^7.0.0",
2021
"espower-babel": "^4.0.1",
21-
"mocha": "^2.4.5",
22+
"mocha": "^6.0.1",
2223
"power-assert": "^1.2.0",
2324
"textlint": "^5.2.1",
2425
"textlint-tester": "^0.4.1"

test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--compilers js:espower-babel/guess
1+
--require @babel/register

0 commit comments

Comments
 (0)