Skip to content

@tailwindcss/line-clamp check produces an error if bundled. #10894

Closed
@mayerraphael

Description

@mayerraphael

https://github.com/tailwindlabs/tailwindcss/blame/3809127a2ce7e8173611ae40c7a260bb56e6342f/src/util/normalizeConfig.js#L304

We use tailwind with StencilJS, which uses Rollup to generate packages. The problem with this change is that the require call is moved out of the check farther up. Now this require call is called outside the try catch and fails the whole application. Most bundlers optimize imports, especially if they have to resolve interoparability between ESM and CJS.

This is also the only require call of the whole file, the other imports use ESM.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions