Describe the bug
Despite using the latest version of sass, which implements the new module system, scss-bundle won't let me use @use or @forward to import a file. Having just refactored a massive monorepo (136 files touched) to use the new system, this was not a nice thing to see in our Jenkins console.
To Reproduce
Steps to reproduce the behavior:
- Create a new directory, with two files,
index.scss and _child.scss
- In
index.scss write the line @use 'child';
- In
_child.scss write some basic CSS, like body { height: 100%; }
- Run scss-bundle with
index.scss as the entryFile
- Terminal prints an error that it "Can't find stylesheet to import", pointing to the line with the
@use.
- Observe that if you change to using
@import, everything works as expected.
Expected behavior
I would expect files imported with @use or @forward to be found and bundled correctly.
Package version: v3.1.1
Node version: v12.14.1
OS: Windows (but also Bash on the Jenkins box)
Describe the bug
Despite using the latest version of sass, which implements the new module system, scss-bundle won't let me use
@useor@forwardto import a file. Having just refactored a massive monorepo (136 files touched) to use the new system, this was not a nice thing to see in our Jenkins console.To Reproduce
Steps to reproduce the behavior:
index.scssand_child.scssindex.scsswrite the line@use 'child';_child.scsswrite some basic CSS, likebody { height: 100%; }index.scssas the entryFile@use.@import, everything works as expected.Expected behavior
I would expect files imported with
@useor@forwardto be found and bundled correctly.Package version: v3.1.1
Node version: v12.14.1
OS: Windows (but also Bash on the Jenkins box)