-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: Dynamic imports #2
base: main
Are you sure you want to change the base?
Conversation
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 might be simpler. Untested, however. 🙂
|
||
export default defineBuildConfig({ | ||
entries: [ | ||
"src/index.ts", |
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.
You don't need the extension:
"src/index.ts", | |
"src/index", |
export default defineBuildConfig({ | ||
entries: [ | ||
"src/index.ts", | ||
{ |
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.
Actually, using mkdist
might be overcomplicating things. Could you please try just referencing all source files like services/resend
in the entries
option?
Like this:
export default defineBuildConfig({
entries: [
"src/index",
"src/services/resend",
"src/services/plunk"
// etc.
],
// You should now be able to omit the `externals`!
}
Rollup should automatically resolve these as separate chunks.
No description provided.