This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
[Bug] Sass functions provided to sass loader are getting removed #9
Labels
bug
Something isn't working
Needs triage
New issue that needs some investigation from the maintainers
Describe the bug
When providing custom sass functions to the sass-loader options, they are not ending up being provided to sass-loader after you process the options
Steps to reproduce the behavior
Using the following options:
Expected behavior
Expect to be able to use square-root from within my scss files, however it is not available.
Screenshots and/or logs
After some investigation, it appears that the polyfill for object spread that got put into
node_modules\@storybook\addon-styling\dist\cjs\preset\scss\webpack.js
seems to not be able to handle correctly applying the object properties.I ammended my local version of this
buildSassLoader
within this file to look likeChecking the contents of
output.txt
, I'm given the following:So it's correctly found the
functions
property I provided where I called the library, but it ends up with none of the methods on itEnvironment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: