-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update babel's present-env configuration #1434
Changes from all commits
9f1a2f7
37a2716
ad5acf6
ca5f50c
9175168
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,13 @@ | |
"modules": false, | ||
"useBuiltIns": "entry", | ||
"corejs": 3, | ||
"shippedProposals": true, | ||
} | ||
], | ||
"@babel/preset-react" | ||
], | ||
"plugins": [ | ||
["styled-components", { "displayName": true }], | ||
"@babel/plugin-proposal-class-properties" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just wondering if babel was complaining without the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Honestly didn't check, but just ruled it out of my mind since it was behaving differently between There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Went back to the commit and checked; this was not the problem. The problem was we had multiple versions of babel installed, and I believe an older one was still being used by parcel at that time. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is shippedProposals? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rperez89 that’s an option of |
||
], | ||
"env": { | ||
"test": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,12 +67,11 @@ | |
}, | ||
"devDependencies": { | ||
"@aragon/os": "^4.0.0", | ||
"@babel/core": "^7.6.4", | ||
"@babel/plugin-proposal-class-properties": "^7.0.0", | ||
"@babel/preset-env": "^7.6.3", | ||
"@babel/preset-react": "^7.6.3", | ||
"@babel/core": "^7.10.4", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/preset-react": "^7.10.4", | ||
"babel-eslint": "^10.0.1", | ||
"babel-jest": "^25.1.0", | ||
"babel-jest": "^26.0.1", | ||
"babel-plugin-styled-components": "^1.10.6", | ||
"bundlewatch": "^0.2.6", | ||
"cross-env": "^5.2.0", | ||
|
@@ -89,9 +88,9 @@ | |
"eslint-plugin-react-hooks": "^1.6.0", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"husky": "^1.0.1", | ||
"jest": "^25.1.0", | ||
"jest": "^26.0.1", | ||
"lint-staged": "^8.1.1", | ||
"parcel-bundler": "^1.10.1", | ||
"parcel-bundler": "^1.12.4", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It turns out Doing a However, I cannot figure out why the websocket module's |
||
"parcel-plugin-bundle-visualiser": "^1.2.0", | ||
"prettier": "^1.19.1", | ||
"ps-node": "^0.1.6", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, that also gives us a few other things https://github.com/babel/website/blob/0d482dd7ed3451592549009483423f7d37d2fe92/docs/preset-env.md#shippedproposals