This repository has been archived by the owner on Jan 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 492
Add full support for generator functions #194
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
6608461
Added babel-loader to the TypeScript pipeline, and enabled babel-poly…
32c820f
Let TypeScript process jsx again - should also fix the Jest tests
34d2011
Replaced babel-polyfill by core-js/es6/symbol
109b53d
Removed Babel, but keep downlevelIteration and core-js/es6/symbol
4da0d01
Synced with upstream
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,11 @@ module.exports = { | |
// You can exclude the *.map files from the build during deployment. | ||
devtool: shouldUseSourceMap ? 'source-map' : false, | ||
// In production, we only want to load the polyfills and the app code. | ||
entry: [require.resolve('./polyfills'), paths.appIndexJs], | ||
entry: [ | ||
'core-js/es6/symbol', | ||
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. Same here. |
||
require.resolve('./polyfills'), | ||
paths.appIndexJs, | ||
], | ||
output: { | ||
// The build folder. | ||
path: paths.appBuild, | ||
|
@@ -96,7 +100,18 @@ module.exports = { | |
// https://github.com/facebookincubator/create-react-app/issues/290 | ||
// `web` extension prefixes have been added for better support | ||
// for React Native Web. | ||
extensions: ['.web.ts', '.ts', '.web.tsx', '.tsx', '.web.js', '.mjs', '.js', '.json', '.web.jsx', '.jsx'], | ||
extensions: [ | ||
'.web.ts', | ||
'.ts', | ||
'.web.tsx', | ||
'.tsx', | ||
'.web.js', | ||
'.mjs', | ||
'.js', | ||
'.json', | ||
'.web.jsx', | ||
'.jsx', | ||
], | ||
alias: { | ||
// @remove-on-eject-begin | ||
// Resolve Babel runtime relative to react-scripts. | ||
|
@@ -151,6 +166,7 @@ module.exports = { | |
{ | ||
test: /\.(ts|tsx)$/, | ||
include: paths.appSrc, | ||
|
||
use: [ | ||
{ | ||
loader: require.resolve('ts-loader'), | ||
|
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
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'd favor to add this polyfill to the general
polyfills
files instead of this array, esp. regarding maintenance. Would be good to have some kind of comment or a short description of why this is included.