-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Babel 7 #1955
Merged
Merged
Babel 7 #1955
Changes from 2 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
3853467
WIP: babel 7
devongovett e0df562
Babel 7: Fix dependency name and upgrade to 7.0.0 (#1956)
prichodko 05c0fb8
remove babel6 from pkg.json, update internal babel configs and update…
DeMoorJasper 89d236b
remove async-super-babel-plugin
DeMoorJasper 4e613c9
remove babel polyfill test for useBuiltins
DeMoorJasper 106c43d
remove babel-template requires
DeMoorJasper 71a75dc
fix html import tests
DeMoorJasper dd06677
fix formatting
DeMoorJasper cfad048
work around template string bug in Babel 7?
DeMoorJasper a1b0f4c
format
DeMoorJasper bbf0cd4
remove matches-pattern
DeMoorJasper 04617c4
get rid of lint issues
DeMoorJasper 03c88b5
fix comment
DeMoorJasper 3acd84a
merge
DeMoorJasper 4af249a
detect babel 6 configs
DeMoorJasper b371872
remove babylon 6
DeMoorJasper ad78546
fix getBabelRc
DeMoorJasper 682175c
babel 7 to babel 6 ast convertor v1
DeMoorJasper 8bdb5b3
remove some random code
DeMoorJasper 15a1421
add babel 6 => babel 7 convertor
DeMoorJasper 762cc00
add js tests back in
DeMoorJasper 74ab5f7
fix typo
DeMoorJasper b0fa467
add babel-runtime
DeMoorJasper 2173572
add babel-runtime for smaller pkg size
DeMoorJasper 16d9fa7
run babel 7 => babel 6 => babel 7
DeMoorJasper 112ebf3
cleanup & add parsing for Babel 6
DeMoorJasper 0dd2663
cleanup some comments
DeMoorJasper 367d5ec
cleanup the empty babel files
DeMoorJasper e89f06c
Merge pull request #1958 from parcel-bundler/jasper/remove-babel6
devongovett 4b65127
wip
devongovett 62b5b4f
refactor
devongovett 5a02f3e
remove old transform
devongovett 6ce3fc3
Use internal version of babel if no babelrc
devongovett b73e9e0
Infer version of babel
devongovett a398af5
Merge pull request #1999 from parcel-bundler/babel7-tmp
devongovett a814cf8
Remove unused imports
devongovett 341dc8f
Auto install babel plugins as needed
devongovett f3bc04c
Support babelignore
devongovett 29e2175
fixes
devongovett 10934f0
Fix tests
devongovett de1e218
lint + prettier
devongovett 5e126c5
Restore removed test
devongovett e7468cb
Add more babel version autoinstall tests
devongovett 6a53c00
Resolve plugins relative to the correct dir
devongovett 2e3872a
Test autoinstalling babel plugins
devongovett 00e4ab0
Upgrade browserslist
devongovett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const t = require('babel-types'); | ||
const t = require('@babel/types'); | ||
|
||
const EXPORTS_RE = /^\$([^$]+)\$exports$/; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const types = require('babel-types'); | ||
const types = require('@babel/types'); | ||
|
||
// from babel-types. remove when we upgrade to babel 7. | ||
// https://github.com/babel/babel/blob/0189b387026c35472dccf45d14d58312d249f799/packages/babel-types/src/index.js#L347 | ||
// from @babel/types. remove when we upgrade to babel 7. | ||
// https://github.com/babel/babel/blob/0189b387026c35472dccf45d14d58312d249f799/packages/@babel/types/src/index.js#L347 | ||
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. TODO: remove this file now that we are on babel 7 :) |
||
module.exports = function matchesPattern(member, match, allowPartial) { | ||
// not a member expression | ||
if (!types.isMemberExpression(member)) return false; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shouldn't this be localRequired as we'll use Babel 7 for everything internal?
(Or a devDep if we'll test this)
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.
WIP for this: #1958