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
Rollup v3 support #226
Comments
ah yes, the peer dependency says that the plugin is not (yet) compatible with rollup 3. Which is brand new I see ;-) I believe node/npm changed the way they treat peerDependencies a while back, I will have to dig into how to properly use that. |
There seems also some configuration updates. PR: #227 A really really ugly workaround for rollup@3 support in meantime: const dtsPlugin = dts(...)
rollupOptions.plugins.push({
...dtsPlugin,
outputOptions (...args) {
const opts = dtsPlugin.outputOptions(...args)
opts.interop = 'esModule'
delete opts.namespaceToStringTag
opts.generatedCode = { symbols: false, ...opts.generatedCode }
return opts
}
}) |
There isn't really a workaround needed for v3 support for right now. Rollup only reports a warning, and the outputted code isn't affected. Obviously, the PR should still be merged. Just putting this out there for onlookers. |
why am I unable to have it work? From the log I provided, rollup gives an error with output.interop. (I haven’t tested with later v3 yet, is this changed?) |
That's weird. I used rollup-plugin-dts 4.2.3 with rollup 3.1.0 and |
Just published |
https://github.com/rollup/rollup/tree/v3.0.0
The text was updated successfully, but these errors were encountered: