-
Notifications
You must be signed in to change notification settings - Fork 153
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
Refactor Dist Output #465
Refactor Dist Output #465
Conversation
Will need to be a minor release since we're still pre 1.0.0, but changes the output names and locations. |
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.
OOC, what version number are you going to release this as?
document.addEventListener('DOMContentLoaded', function() { | ||
MainThread.upgradeElement(document.getElementById('upgrade-me'), '/dist/worker.safe.js'); | ||
}, false); | ||
</script> |
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.
Intentionally removing nomodule support here?
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.
Yes, the amp
builds do not generate a nomodule
output. The expectation is AMP as a consumer will perform the work of transpiling this output.
Do you think this is a concern?
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.
Right-o.
* Do not let Babel transpile template literals * Keep whitespace removal, allow babel + closure to compress other objects
Thought was to release as |
0.11.0 SGTM. |
Motivations
syntax
npm proposal, allowing bundlers to selectively choose modern JS for an expected module output.Solution
Updated
dist
structure:Importantly each sub dependency is nested, to allow for the node resolution algorithm to correctly grab relatively modern JS versus transpiled to ES5 code.
The matrix for features enabled per build:
Todo
amp
version.