-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Sync up RapiD and iD esbuild config #8776
Conversation
mbrzakovic: I am fine with this for now.
mbrzakovic: I think watch mode really speeds up development. I propose we merge this PR as-is, then I add it in devbuild_on_esbuild and after merging you can fetch in upstream. Sounds good?
mbrzakovic: Yes, please look into this. If we can't support IE users I'd rather we don't switch to esbuild for legacy build just yet.
mbrzakovic: Sounds good. |
@@ -32,8 +32,7 @@ | |||
newScript.onerror = checkScript; | |||
|
|||
var isIE11 = !!(navigator.userAgent.match(/Trident/) && !navigator.userAgent.match(/MSIE/)); | |||
// currently all minified files are legacy ES5 because of uglifyJS |
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.
Could you please help me understand this part by explaining why did we have this constraint (uglifyJS, es5)?
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 think it was just that UglifyJS never got support for full ES6 syntax, so people use other tools to minify JS nowadays. mishoo/UglifyJS#3443
Cool, yes it is probably a few hours work to add
Yes 👍
I'll figure it out - I'm sure we can continue to support IE users. My main priority before was keeping the PhantomJS tests running. |
- much simpler babel config - separate entry points for modern and legacy (ie11/phantom) - explicitly import 'core-js' and 'regenerator-runtime' instead of using deprecated 'babel/polyfill' plugin - still need 'core-js-bundle' for the test/index.html, so Mocha/PhantomJS combo will work.
Wait for: #8774 (comment) |
This reverts commit 4ce17de.
Reverted only last commit which improves the modern/legacy build setup. Reasoning: With Drop IE11 support planned, improvements in supporting legacy build are no longer needed. |
This PR is a best attempt to combine
facebook/Rapid#246 , facebook/Rapid@f415cce
... into a branch that should mostly merge into @mbrzakovic's branch on #8774
Some things that are different are:
type: module
so the config scripts need a.mjs
extention for node to treat them as ES6index.html
🤔en.min.json
file, because it is annoying that every time I merge anything that generated file has a conflict.