这是indexloc提供的服务,不要输入任何密码
Skip to content

Error parsing native CSS file #288

@laozhu

Description

@laozhu

Hi @egoist thanks for your great tool, it works well when I bundling libraries, but when I use it for bundling components, it reports error parsering in the CLI, actually the native CSS has been extracted to a single CSS file.

CLI

yarn run v1.22.10
$ tsup src/index.ts --format cjs,esm --legacy-output --dts --sourcemap --minify
 CLI  tsup v4.9.1
 CLI  Building entry: src/index.ts
 CLI  Using tsconfig: /Users/Ritchie/Developer/cloud/components/react-headless-ui/tsconfig.json
 CLI  Target: node12
 CJS  Build start
 ESM  Build start
 ESM  Build success in 51ms
 CJS  Build success in 60ms
 DTS  Build start
 DTS  Build error
Error parsing: /Users/Ritchie/Developer/cloud/components/react-headless-ui/src/LoadingIndicator.css:1:0
Unexpected token (Note that you need plugins to import files that are not JavaScript)
1: .rvv-loading {
   ^
2:   display: flex;
3:   position: absolute;
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions