-
Notifications
You must be signed in to change notification settings - Fork 3k
chore(build): Inject tslib functions #2121
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
Conversation
Odd, unit test seems failed on the master HEAD already (see #2122), shouldn't caused by this PR I think. |
one another unexpected behavior of #2120 will resolve build failure by taking out yarn. |
fc93fea
to
9648b42
Compare
Change.. looks fine to me, but it'd be appreciate to elaborate few details if possible
|
This PR is the first step toward to its ultimate goal, which depends on two another up coming developments:
Where No.1 lands then below changes will no longer required: rollupInject({
exclude: 'node_modules/**',
modules: _.mapValues(tslib, function (value, key) {
return ['tslib', key];
}),
}) Where No.2 lands then below changes will no longer required: rollupCommonJS({
namedExports: {
tslib: Object.keys(tslib),
},
}) The final result will let To the test matter that I couldn't figure out yet, would be great to have any suggestion. |
Please allow me some dumb question, as 2.1 is nearby and seems |
One reason to me is by simply prepending |
So this seems depends on when codebase moves to TS@2.1. I think once it becomes public release (and if there is no regression) it can be upgraded fairly easily as codebase won't have 2.1 specific breaking features. Question would be when is planned for v5 public release. |
So there are two taking of this PR:
|
9648b42
to
63916a8
Compare
Can you take a decision with this pr? We can't use the Rx.min.js file in an Angular 2 project, we need to rebuild the rxjs library. |
Can someone explain this to me in laymens? Seems like it's basically don't bundle tslib in global builds, instead rely on it being globally available? If that's the case, this is a breaking change btw. |
@jayphelps no afaik it's how to inject tslib instead of reading tslib directly as file and concat what we do currently. @imcotton can explain in detail. |
We have some thoughts and concerns, we're going to discuss this Monday at our team meeting. |
This change is utilizing |
63916a8
to
bf58dcb
Compare
I've had rebase against |
Thanks @imcotton ! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
To avoid prepend tslib globally.