You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using an NPM module with both js and scss pieces. The main attribute in package.json is dist/main.js, the sass attribute is _index.scss. I would like to be able to import my js with import module from 'module'; and import my scss with @use '~module';
Actual Behavior / Situation
The sass fails to build unless I change the import statement to @use '~module/index';. I can also get this to work by changing the main attribute in the modules package.json to point to _index.scss.
Modification Proposal
A comment in #535 suggests I may be able to use webpack's resolve as a workaround, but as per the Sass docs, calling @use on a directory should automatically pull in the _index.scss file.
The text was updated successfully, but these errors were encountered:
This is related to #804 and #535
I'm using sass and fibers rather than node-sass
Expected Behavior / Situation
I'm using an NPM module with both js and scss pieces. The
main
attribute in package.json isdist/main.js
, thesass
attribute is_index.scss
. I would like to be able to import my js withimport module from 'module';
and import my scss with@use '~module';
Actual Behavior / Situation
The sass fails to build unless I change the import statement to
@use '~module/index';
. I can also get this to work by changing themain
attribute in the modules package.json to point to _index.scss.Modification Proposal
A comment in #535 suggests I may be able to use webpack's
resolve
as a workaround, but as per the Sass docs, calling@use
on a directory should automatically pull in the _index.scss file.The text was updated successfully, but these errors were encountered: