You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can reproduce this issue when running this plugin on its own. Other plugins, such as node-resolve are known to cause issues.
I am running this plugin on .d.ts files generated by TypeScript. The plugin can consume .ts and even .js files (with allowJs: true), but this is known to cause issues.
This issue is not related to rolling up @types. The plugin ignores these by default, unless respectExternal is set. @types can contain hand-crafted code which is known to cause issues.
src/index.ts → dist...
[!] RollupError: src/internal.ts (1:7): Expected '{', got 'type' (Note that you need plugins to import files that are not JavaScript)
src/internal.ts (1:7)
1: export type Internal = 'internal'
^
2: export const internal = 'internal'
The text was updated successfully, but these errors were encountered:
NWYLZW
added a commit
to NWYLZW/rollup-plugin-dts
that referenced
this issue
Oct 19, 2024
Checklist
Other plugins, such as
node-resolve
are known to cause issues..d.ts
files generated by TypeScript.The plugin can consume
.ts
and even.js
files (withallowJs: true
), but this is known to cause issues.@types
.The plugin ignores these by default, unless
respectExternal
is set.@types
can contain hand-crafted code which is known to cause issues.Code Snipped
https://github.com/NWYLZW/imports-uncompile
Error Message
The text was updated successfully, but these errors were encountered: