Comments (7)
This might be a decent default for async
/await
support in addition to the plugin for transforming the syntax into generators - it will pull in the regenerator runtime only if async
/await
is used (and will also import babel-runtime
helpers instead of duplicating them in each module they're needed in) while leaving polyfilling entirely in the hands of users.
["babel-plugin-transform-runtime", {
"polyfill": false,
"regenerator": true
}]
from create-react-app.
We’ll also need to choose our stance on polyfills. Do we leave it to user to polyfill Promise
?
from create-react-app.
Will anyone be likely to be using async without fetch()
(and a polyfill for it)? The most popular polyfill for it requires you to bring your own Promise
polyfill, as does axios.
Will the runtime transform be used to inject the regenerator runtime only when needed? It also does local polyfilling, but you can configure that off.
from create-react-app.
To be honest I’m not familiar with all these tradeoffs so it’s hard for me to say. 😄
What do you think would be good defaults?
I want to make it easy to get started with common code samples but also to avoid crazy bundle size.
from create-react-app.
Would you like to make a PR adding a sensible async support setup?
from create-react-app.
I think #327 adds support for this. Is it okay to close this?
from create-react-app.
Yep, thanks!
from create-react-app.
Related Issues (20)
- 不动 啊 HOT 1
- React Application Embedded Script HOT 1
- Allow user to config publicPath of webpack and set its default value to auto
- Cannot find module 'ajv/dist/compile/codegen' HOT 2
- I am so angry i just cant take it HOT 2
- An Error HOT 1
- Bad Resource link in https://create-react-app.dev/ HOT 2
- About deprecated packages HOT 1
- Is there a good fork of CRA? HOT 1
- Broken and soon to be discontiued short links (goo.gl)
- Create react app
- vscode inspection , please look at here
- npm error code ENOENT npm error syscall lstat npm error path C:\Users\ADMIN\AppData\Roaming\npm npm error errno -4058 npm error enoent ENOENT: no such file or directory, lstat 'C:\Users\ADMIN\AppData\Roaming\npm' npm error enoent This is related to npm not being able to find a file. npm error enoent npm error A complete log of this run can be found in: C:\Users\ADMIN\AppData\Local\npm-cache\_logs\2024-08-29T14_54_53_598Z-debug-0.log HOT 1
- eslint config should enable "react/jsx-key"
- BSA App
- Create-react-app should create a jsconfig.json file by default
- Reels
- Program1 HOT 1
- Nothing but error messages HOT 1
- Vulnerability Issues with postcss and nth-check in react-scripts Dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-react-app.