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

@rollup/plugin-typescript failed to handle .mts files #1480

Closed
trim21 opened this issue Apr 13, 2023 · 2 comments
Closed

@rollup/plugin-typescript failed to handle .mts files #1480

trim21 opened this issue Apr 13, 2023 · 2 comments

Comments

@trim21
Copy link

trim21 commented Apr 13, 2023

  • Rollup Plugin Name: @rollup/plugin-typescript
  • Rollup Plugin Version: 11.1.0
  • Rollup Version: 3.20.2
  • Operating System (or Browser):
  • Node Version: 18
  • Link to reproduction (⚠️ read below):

https://github.com/trim21/rollup-ts-plugin-bug-mts

Expected Behavior

should build

Actual Behavior

rollup report error about TypeScritp syntax, can-not-import.mts is not handled by typescript plugin

Additional Information

@TrickyPi
Copy link
Member

TrickyPi commented Jun 12, 2023

try using the following config in your repro, it works.

typescript({
      include: ['**/*.ts', '**/*.mts', '**/*.cts'],
      tsconfig: 'tsconfig.json',
})

@stale stale bot added the x⁷ ⋅ stale label Aug 12, 2023
@stale
Copy link

stale bot commented Aug 13, 2023

Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it.

@trim21 trim21 closed this as completed Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants