Skip to content

Commit 3f8adb4

Browse files
timwisyoshuawuyts
authored andcommitted
Upgrade falafel to ^2.1.0, use ecmaVersion 8 (#122)
* Upgrade falafel to ^2.0.0, use ecmascriptVersion 8 * Upgrade falafel to ^2.1.0
1 parent 987750f commit 3f8adb4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"css-modules"
2222
],
2323
"dependencies": {
24-
"falafel": "^1.2.0",
24+
"falafel": "^2.1.0",
2525
"insert-css": "^2.0.0",
2626
"map-limit": "0.0.1",
2727
"postcss": "^5.0.10",

transform.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ function transform (filename, options) {
5555
}
5656

5757
try {
58-
const tmpAst = falafel(src, { ecmaVersion: 6 }, identifyModuleName)
59-
ast = falafel(tmpAst.toString(), { ecmaVersion: 6 }, extractNodes)
58+
const tmpAst = falafel(src, { ecmaVersion: 8 }, identifyModuleName)
59+
ast = falafel(tmpAst.toString(), { ecmaVersion: 8 }, extractNodes)
6060
} catch (err) {
6161
return self.emit('error', err)
6262
}

0 commit comments

Comments
 (0)