Skip to content

CSS is not imported in output when component is only imported through virtual module #52

@NullVoxPopuli

Description

@NullVoxPopuli

This is... 🙃

BUT, I have a custom rollup plugin which only imports components via virtual module

all components are basically bundled, and then exported:

// in a virtual file
export function myFun() {
  return {
    'key': () => import('./components/foo.gjs'),
  }
}

and then in a real file:

export { myFun } from 'virtual:wheee';

The <template></template> region is correctly transformed, but it looks like the CSS is lost (not present anywhere in dist)

Metadata

Metadata

Assignees

No one assigned

    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