Skip to content

In Vue 3 files, when using CSS or Less, after packaging, the CSS becomes an independent JS file, but it is empty inside. #653

@maxfrees

Description

@maxfrees

Reproduction link or steps

export default defineConfig({
  entry: ['src/**/*.tsx', 'src/**/*.vue', 'src/**/*.css', 'src/index.ts', 'src/resolver.ts'],
  platform: 'neutral',
  fromVite: true,
  outDir: 'lib',
  exports: true,
  dts: { vue: true }
});

Are there any simple examples that can illustrate how to use CSS or Less for compilation in a Vue 3 file within tsdown?

What is expected?

Image

What is actually happening?

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions