Skip to content

[RFC] webpack-like tilde resolves in less #143

@crazyair

Description

@crazyair

What happened?

index.less content @import '~antd/dist/antd.less';

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

Microsoft Edge

Relevant log output

🔴 ERROR  | The @import path "\~antd/dist/antd.less" is using webpack specific syntax, which isn't supported by Parcel.

To @import files from node\_modules, use "antd/dist/antd.less"

But this project is OK
https://github.com/ant-design/parcel-antd/blob/master/src/style/index.less#L1

image

image

(OPTIONAL) Contact Details

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededwith-ant-designQuestions about integrating ant-design with Plasmo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions