Skip to content
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

imports uncompile error #318

Closed
3 tasks done
NWYLZW opened this issue Oct 19, 2024 · 0 comments
Closed
3 tasks done

imports uncompile error #318

NWYLZW opened this issue Oct 19, 2024 · 0 comments

Comments

@NWYLZW
Copy link
Contributor

NWYLZW commented Oct 19, 2024

Checklist

  • 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.

Code Snipped

https://github.com/NWYLZW/imports-uncompile

Error Message

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'
NWYLZW added a commit to NWYLZW/rollup-plugin-dts that referenced this issue Oct 19, 2024
NWYLZW added a commit to NWYLZW/jiek that referenced this issue Oct 19, 2024
@NWYLZW NWYLZW closed this as completed Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant