-
-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Rollup bundle #1533
Rollup bundle #1533
Conversation
02218fa
to
c4f08e9
Compare
Thank you! |
ddb6739
to
937e056
Compare
I pushed a small fix. I had omitted removing the |
@realityking the main reason I didn't merge yet was that I was wondering whether there could be the contexts where source maps are needed? See: #1532 Could we maybe do it in two steps:
In v9 I would also remove typescript source from npm, so that if somebody needs to recompile they would have to use GitHub, but it's relatively rare to justify having it all in npm... Currently there are dependencies on source. |
Also, rollup has an added benefit of warning about circular dependencies that was quite an effort to remove, so I'd rather they don't creep back in... Is it maybe possible to fail in case of circular dependencies warnings? |
660e4dd
to
b780944
Compare
I rebased this PR and dropped source map commit.
I'm not sure what you're asking for. Do you want the build to fail if there's a circular dependency warning? Rollup has |
I see... No problem, at least the warnings would be more visible. |
What issue does this pull request resolve?
As mentioned in #1526 (comment), this changed the build process for the bundles to create source maps that are based of the original Typescript files. As an added advantage, they're also much smaller!
I'm including again the change not to ship source maps as it's now unambiguous that the source maps are not needed for the browser bundles.
What changes did you make?
scripts/bundle.js
with a rollup config filenpm run bundle
can be run without first runningnpm run build
dist
build to save the size in the npm package. (see Smaller package #1526 for prior discussion)Is there anything that requires more attention while reviewing?
Overview of size changes:
The source maps are quite a bit bigger but the actual code files are a lot smaller.