Skip to content

Use explicit import() expressions in plugin load arrays for bundler compatibility#450

Merged
Boshen merged 1 commit intotailwindlabs:mainfrom
Dunqing:fix/bundler-visible-plugin-loaders
Feb 13, 2026
Merged

Use explicit import() expressions in plugin load arrays for bundler compatibility#450
Boshen merged 1 commit intotailwindlabs:mainfrom
Dunqing:fix/bundler-visible-plugin-loaders

Conversation

@Dunqing
Copy link
Copy Markdown
Contributor

@Dunqing Dunqing commented Feb 13, 2026

Convert string-based dynamic imports to explicit { name, load: () => import('...') } objects so bundlers (tsdown/Rolldown) can statically analyze the import paths.

Refs: oxc-project/oxc#19293

@Dunqing Dunqing force-pushed the fix/bundler-visible-plugin-loaders branch from 84e46d4 to 9871dd2 Compare February 13, 2026 01:30
@Dunqing
Copy link
Copy Markdown
Contributor Author

Dunqing commented Feb 13, 2026

I am going out. Can you take a look to see if this can solve the Oxfmt issue? @leaysgur, if it works, you can ask Boshen to merge and cut a release.

@Boshen cc

@leaysgur
Copy link
Copy Markdown

It seems working with bundler.

image

@Boshen Boshen merged commit 3997fbd into tailwindlabs:main Feb 13, 2026
1 check passed
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.

3 participants