Skip to content

Commit

Permalink
Remove workaround in rollup config for flow parser
Browse files Browse the repository at this point in the history
  • Loading branch information
existentialism committed Apr 17, 2018
1 parent 7ab3e94 commit 9c15f9e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions scripts/build/rollup.parser.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ export default Object.assign(baseConfig, {
include: "node_modules/typescript-eslint-parser/parser.js"
})
: {},
// In flow-parser 0.59.0 there's a dynamic require: `require(s8)` which not
// supported by rollup-plugin-commonjs, so we have to replace the variable
// by its value before bundling.
parser.endsWith("flow")
? replace({
"require(tf)": 'require("fs")',
include: "node_modules/flow-parser/flow_parser.js"
})
: {},
json(),
resolve({ preferBuiltins: true }),
commonjs(
Expand Down

0 comments on commit 9c15f9e

Please sign in to comment.