-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
chore: produce single bundle for runtime with multiple entrypoints #8504
Conversation
@gtm-nayan is attempting to deploy a commit to the Svelte Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
We were previously producing multiple bundles I think? If it's just one bundle now, do we need to update the |
It's a single bundle in the sense that rollup considers all the files as part of the same bundle and links them as such. But, the output structure remains the same since there are multiple entry points now and output files defined as before for each of them. The exports don't have to be changed. |
rollup.config.mjs
Outdated
}, | ||
}, | ||
], | ||
}, |
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.
we've never had trailing commas before. I guess when we setup prettier it will probably remove them
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.
We already have a prettier config in sites repo, we can just remove the source folders from prettierignore
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.
We can't introduce prettier just yet, the resulting diff would cause conflicts in a lot of the pulls targeted for v4.
doesn't really make sense for a library since users' build step will do it again anyway
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.
This is better I'd say. It creates more than a single bundle for runtime/internal
, there's also dev-[hash]
and Component-[hash]
files now, but AFAIK that doesn't have any negative implications.
…8504) * single runtime bundle * formatting * dedupe output options * fix tests apparently * skip writeBundle for cjs build * revert quotes * remove manualChunks * some node16 module resolution compliance * disable minifyInternalExports (doesn't really make sense for a library since users' build step will do it again anyway)
Before submitting the PR, please make sure you do the following
feat:
,fix:
,chore:
, ordocs:
.Tests
npm test
and lint the project withnpm run lint
ref #8491
This should let us get rid of some manual import paths bookkeeping.