-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Update rolldown, adopt rolldown-plugin-dts #3787
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
"browser": "./lib/index.js", | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.js", |
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.
Do we need all three?
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.
Probably not at this point, it's just there for older bundlers, but we could try removing those.
@@ -65,7 +65,7 @@ export default defineConfig(({ command }) => ({ | |||
exclude: ['./.cache/**/*'] | |||
}), | |||
wyw({ | |||
exclude: ['./.cache/**/*'], | |||
exclude: ['./.cache/**/*', '**/*.d.ts', '**/*.gen.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.
Do we not need to excluded '**/*.d.ts', '**/*.gen.ts'
in rolldown.config
?
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 did add '**/*.d.ts'
, as otherwise the build fails with the new plugin.
'**/*.gen.ts'
is probably not needed as rolldown won't touch the website files.
output.entryFileNames
.d.ts
filepackage.json
instead.external
api-extractor
withrolldown-plugin-dts
, simplifying/speeding up the build process