The package that triggered this error for me is @spectrum-web-components/overlay. So this can be reproduced by adding this package to a project and importing it into a stencil component as follows:
import { Overlay } from '@spectrum-web-components/overlay';
The useStyleSheetTransform check is too loose so javascript ends up being treated as CSS
Importing javascript files that include
.css
in the middle of the file name (e.g.my-file.css.js
) leads to a rollup error:The package that triggered this error for me is
@spectrum-web-components/overlay
. So this can be reproduced by adding this package to a project and importing it into a stencil component as follows:The
useStyleSheetTransform
check is too loose so javascript ends up being treated as CSS