Skip to content

chore(swc): fix typings to match actual exports#1985

Open
gwynne wants to merge 1 commit intorollup:masterfrom
gwynne:patch-1
Open

chore(swc): fix typings to match actual exports#1985
gwynne wants to merge 1 commit intorollup:masterfrom
gwynne:patch-1

Conversation

@gwynne
Copy link

@gwynne gwynne commented Mar 14, 2026

Rollup Plugin Name: swc

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

Description

This PR makes a trivial correction to the plugin's declarations file so that it reflects that the swc function is exported both by name and as the default export. This allows using the syntax import { swc } from '@rollup/plugin-swc. At present, using this syntax causes Typescript to complain Module '"@rollup/plugin-swc"' has no exported member 'swc'. Did you mean to use 'import swc from "@rollup/plugin-swc"' instead? ts(2614), even though the import works correctly at runtime if you ignore the error (which will remain visible in, for example, VSCode).

@gwynne gwynne requested a review from tada5hi as a code owner March 14, 2026 11:17
@gwynne gwynne changed the title Fix typings to match actual exports chore(swc): fix typings to match actual exports Mar 14, 2026
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

Successfully merging this pull request may close these issues.

1 participant