Skip to content

Resolver can't import stylesheets from URLs #555

@WillsonSmith

Description

@WillsonSmith

Possibly related to #479

I'm attempting to import a Google fonts stylesheet with the following

@import url('https://fonts.googleapis.com/css2?family=Lilita+One&display=swap');

The bundler throws with

SyntaxError: No such file or directory (os error 2)
...
loc: { line: 1, column: 1 },
data: 'ResolverError'

I'm using bundle to bundle this file.

Expected result:
Imports from URLs should probably remain as urls and not bundle the code.

Version:

"lightningcss": "^1.21.5"

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