Skip to content

[Bug]: Cannot export from scss with :export since v1.2.3 #9726

@Narretz

Description

@Narretz

System Info

Windows
rspack 1.3.0-beta.0

Details

When using :export to export from an scss file and importing this variables into js, there's a run time error since 1.2.3 due to this commit: 290957a

I'm a bit puzzled that noone has reported this yet, so maybe I'm doing something wrong?

But since it does work in webpack, it should work in rspack as well.

Reproduce link

https://github.com/Narretz/rspack-scss-import-bug

Reproduce Steps

run npm run dev:rspack to see error

run npm run dev:webpack to see it work. Check console in browser.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions