-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
outdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
Bug Report
Current Behavior
> babel . --out-dir dist
SyntaxError: Expected atom at position 2
\p{Script_Ex
^
at bail (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:1093:13)
at parseTerm (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:486:9)
at parseAlternative (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:457:21)
at parseDisjunction (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:437:16)
at parse (/home/shm/dpp-query-ws/node_modules/regjsparser/parser.js:1108:18)
at rewritePattern (/home/shm/dpp-query-ws/node_modules/regexpu-core/rewrite-pattern.js:324:15)
at PluginPass.RegExpLiteral (/home/shm/dpp-query-ws/node_modules/@babel/plugin-transform-unicode-regex/lib/index.js:50:51)
at newFn (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/visitors.js:193:21)
at NodePath._call (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/path/context.js:53:20)
at NodePath.call (/home/shm/dpp-query-ws/node_modules/@babel/traverse/lib/path/context.js:40:17)
Input Code
- REPL or Repo link if applicable:
var your => (code) => here;Expected behavior/code
Successful transpiled code
Babel Configuration (.babelrc, package.json, cli command)
package.json
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/node": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-flow": "^7.0.0",
"nodemon": "^1.18.4"
}babel.config.js
module.exports = {
"presets": ["@babel/preset-env","@babel/preset-flow"],
"plugins": [
"@babel/plugin-proposal-object-rest-spread"
]
}Environment
- Babel version(s): [e.g. v6.0.0, v7.0.0-beta.34]
- Node/npm version: Node 8.12.0/npm 6.4.1
- OS: Ubuntu 16.04.4 LTS
- Monorepo
- How you are using Babel: [e.g.
cli,register,loader]
cli"build": "babel . --out-dir dist"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
outdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue