-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add babel7 config #1103
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
+6,255
−512
Merged
Add babel7 config #1103
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
243d877
Add babel7 config
christianalfoni e2472a8
Add polyfill to sandbox app
christianalfoni c6aa7dd
fix config, loadable 1s and polyfills
christianalfoni 10512e2
Fix bad dependency causing problems with babel
christianalfoni 63ed9c6
put back old babel-macros as well
christianalfoni dc03589
Fix babel test config
christianalfoni 937adde
fix test config
christianalfoni 261fe5b
Fix testing approach to babel 7
christianalfoni a54d09e
fix linting issues
christianalfoni 336100a
use babel-core bridge everywhere
christianalfoni a6163bd
update yarn lock
christianalfoni d73e075
remove NODE_ENV=test for integration, messes up babel config
christianalfoni 89ecc8e
move babel-macros to dependency
christianalfoni de59e65
remove use of setImmediate and use requestAnimationFrame instead
christianalfoni cd0512f
rebase and add missing polyfill stuff
christianalfoni f2a2e78
fix common config
christianalfoni beede7f
Merge branch 'master' into babel7
CompuIves 8bdf140
Add overrides for sandbox for ie11
CompuIves 7f3b54b
make IE11 work
christianalfoni bab8ca3
only load polyfill once
christianalfoni ca1f33c
fixing ie11
christianalfoni 8627715
More polyfills for IE11
christianalfoni 95cc05c
Fix dynamic modules in old browsers
CompuIves 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module.exports = { | ||
env: { | ||
test: { | ||
presets: [ | ||
'@babel/preset-env', | ||
'@babel/preset-flow', | ||
'@babel/preset-react', | ||
], | ||
plugins: [ | ||
'@babel/plugin-transform-destructuring', | ||
'@babel/plugin-transform-async-to-generator', | ||
'@babel/plugin-proposal-object-rest-spread', | ||
'@babel/plugin-proposal-class-properties', | ||
'@babel/plugin-transform-runtime', | ||
'@babel/plugin-syntax-dynamic-import', | ||
'babel-plugin-lodash', | ||
'babel-plugin-system-import-transformer', | ||
'babel-plugin-macros', | ||
], | ||
}, | ||
}, | ||
}; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
I'm thinking that we should replace this target with something sensible for CodeSandbox, like 99%>. I will check the analytics.
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.
Great, do that :)