-
Notifications
You must be signed in to change notification settings - Fork 13
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
[RFC] Dependency Upgrades #485
Conversation
Codecov Report
@@ Coverage Diff @@
## master #485 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 423 424 +1
Lines 5618 5774 +156
Branches 871 874 +3
==========================================
+ Hits 5618 5774 +156
Continue to review full report at Codecov.
|
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.
Your recent changes work for me. I would have guessed that you could have achieved the same w/ less changes by setting a karama-typescript config to override the es5 target to es2017, but the work you've done here gets us closer to publishing ES2017 output alongside the ESM/ES5 output, which I appreciate very much.
If this solves the immediate problem, let's merge it as is. If you want to go a step further, you could try removing the rollup TS plugin altogether as I suggested and see if it speeds up the builds.
Either way I'd like to follow up soon w/ a PR to additionally publish ES2017.
@@ -89,7 +89,7 @@ export default { | |||
context: "window", | |||
external: packageNames.concat(arcgisRestJsPackageNames), | |||
plugins: [ | |||
typescript(), | |||
typescript({ target: '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 gather the reason you changed the rollup plugin is so you could pass in this target. You can't do that w/ rollup-plugin-typescript2
?
Either way, it sounds like @rollup/plugin-typescript
has come into it's own and may even be faster (would be nice to verify that four our project).
Also, we should explore not even passing the TS to rollup and just having it bundle the esm/es5 output since the UMD bundles are just an artifact needed at publish time (i.e. not used in tests nor needed to be continuously re-built in a watch). That has got to be faster.
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.
It's a good idea to try to pass the esm build to rollup instead of relying on yet another typescript build.
@tomwayson Sounds good. I'll merge. |
This PR
ES2017
for testing purposes resolving this istanbul coverage bug: Typescript extended classes show branch error SitePen/remap-istanbul#106rollup-typescript
plugin and locks the TS target atES5
so our UMD builds will still work.ES5
ESM build for now so nothing changes in our distributed packages.I checked for mentions of the
const
keyword in both the ESM and UMD builds and couldn't find anything so I think our target is successfully locked at ES5.