Skip to content

Unable to use lightningcss-wasm in browsers #394

@kevin940726

Description

@kevin940726

Sinc v1.18.0, importing lightningcss-wasm in the browsers as suggested in the doc will throw an error:

Error in TypeError: Failed to resolve module specifier "napi-wasm". Relative references must start with either "/", "./", or "../".

v1.17.1 works though. I believe this is a regression since #373?

Here's a stackblitz sandbox to demonstrate the error: https://stackblitz.com/edit/lightningcss-wasm-1-18-0-bug?file=index.html

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