From 54a68eab8ede8a6c8fb598fe3f4882d510b5c49c Mon Sep 17 00:00:00 2001 From: chaitanya71998 Date: Wed, 3 Feb 2021 21:39:42 +0530 Subject: [PATCH] add object rest spread support throught changing of parser package --- package.json | 22 +++++++++++----------- src/core/lib/run.js | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 0a50298..c85004b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "arrowParens": "avoid", "bracketSpacing": true, "jsxBracketSameLine": false, - "parser": "babylon", + "parser": "@babel/parser", "printWidth": 80, "proseWrap": "preserve", "semi": true, @@ -21,16 +21,16 @@ "useTabs": false }, "dependencies": { + "@babel/parser": "7.12.13", + "babylon-walk": "^1.0.2", "classnames": "^2.2.5", "copy-to-clipboard": "^3.0.8", + "is-url": "^1.2.4", + "lodash": "^4.17.4", "preact": "^8.2.5", "prop-types": "^15.5.10", "react-copy-to-clipboard": "^5.0.0", "react-dom": "^15.6.1", - "babylon-walk": "^1.0.2", - "babylon": "^6.18.0", - "is-url": "^1.2.4", - "lodash": "^4.17.4", "react-redux": "^5.0.6", "redux": "^3.7.2", "whatwg-fetch": "2.0.3" @@ -45,8 +45,8 @@ "babel-loader": "7.0.0", "babel-preset-env": "^1.6.1", "babel-preset-es2015": "^6.24.1", - "babel-preset-react-app": "^3.0.2", "babel-preset-react": "^6.24.1", + "babel-preset-react-app": "^3.0.2", "babel-preset-stage-0": "^6.24.1", "babel-runtime": "6.23.0", "body-parser": "^1.17.2", @@ -54,6 +54,7 @@ "chalk": "1.1.3", "css-loader": "0.28.4", "dotenv": "4.0.0", + "eslint": "^4.15.0", "eslint-config-prettier": "^2.9.0", "eslint-config-react-app": "^2.1.0", "eslint-loader": "^1.9.0", @@ -64,7 +65,6 @@ "eslint-plugin-node": "^5.2.1", "eslint-plugin-prettier": "^2.4.0", "eslint-plugin-react": "^7.5.1", - "eslint": "^4.15.0", "extract-text-webpack-plugin": "2.1.2", "file-loader": "0.11.2", "fs-extra": "3.0.1", @@ -75,22 +75,22 @@ "postcss-flexbugs-fixes": "3.0.0", "postcss-loader": "2.0.6", "preact-compat": "^3.17.0", - "prettier-eslint": "^8.7.4", "prettier": "1.10.2", + "prettier-eslint": "^8.7.4", "promise": "7.1.1", + "react": "^15.5.4", "react-dev-utils": "^3.1.1", "react-error-overlay": "^1.0.10", "react-test-renderer": "^16.1.1", - "react": "^15.5.4", "redbox-react": "^1.5.0", "redux-devtools": "^3.4.0", "style-loader": "0.18.2", "sw-precache-webpack-plugin": "0.11.3", "url-loader": "0.5.9", + "webpack": "2.6.1", "webpack-bundle-analyzer": "^2.9.0", "webpack-dev-server": "2.5.0", - "webpack-manifest-plugin": "1.1.0", - "webpack": "2.6.1" + "webpack-manifest-plugin": "1.1.0" }, "_proxy": "http://localhost:3001", "scripts": { diff --git a/src/core/lib/run.js b/src/core/lib/run.js index 1363f9d..9cb701d 100644 --- a/src/core/lib/run.js +++ b/src/core/lib/run.js @@ -1,5 +1,5 @@ /*global document window */ -import { parse } from 'babylon'; +import { parse } from '@babel/parser'; import * as walk from 'babylon-walk'; import copy from 'copy-to-clipboard';