plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[@rollup/plugin-tpescript] Rollup does not get `module` and `moduleResolution` settings from extended `tsconfig.json`

Open floratmin opened this issue 1 year ago • 1 comments

  • Rollup Plugin Name: @rollup/plugin-typescript
  • Rollup Plugin Version: 11.1.6
  • Rollup Version: 4.18.0
  • Operating System (or Browser): Ubuntu 22.04.4 LTS
  • Node Version: 22.2.0, but also not with 20.14.0
  • Link to reproduction (⚠️ read below): rollup-tsconfig

Expected Behavior

Settings for module and moduleResolution in compilerOptions in tsconfig.base.json should be also used for tsconfig.lib.json and tsconfig.rollup.json.

Actual Behavior

If I do not specify 'moduleandmoduleResolutionintsconfig.rollup.json` I get the warning

(!) [plugin typescript] @rollup/plugin-typescript TS5110: Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.

The same warning appears when I do not specify these settings in the rollup.config.ts in the typescript plugin options or in the file tsconfig.lib.json.

Additional Information

floratmin avatar May 29 '24 09:05 floratmin

This looks like it is probably the same as this issue. That reporter provided a detailed explanation of the source.

sam-mfb avatar Jul 29 '24 20:07 sam-mfb

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.

stale[bot] avatar Apr 27 '25 03:04 stale[bot]