Use babel plugin replace includes (#6659)

This commit is contained in:
fisker Cheung authored and Lipis committed 2019-10-15 13:48:56 +02:00
1 parent aa4c1cad5b
commit c949f5ba20
1 file changed
+3 -4
+3 -4
View File
@@ -39,10 +39,9 @@ const parsers = [
{
input: "src/language-js/parser-typescript.js",
target: "universal",
replace: {
// node v4 compatibility for @typescript-eslint/typescript-estree
"(!unique.includes(raw))": "(unique.indexOf(raw) === -1)"
},
babelPlugins: [
require.resolve("./babel-plugins/replace-array-includes-with-indexof")
],
commonjs: {
ignore: [
// Optional package for TypeScript that logs ETW events (a Windows-only technology).