Description
Currently, any SASS files that don't directly include a rule (for example, files with only import
statements) generate invalid .cljc
files, as they include the word undefined
beneath the namespace declaration.
Steps to reproduce
- Clone the project
cd cljc-css-loader/example
cat /dev/null >| styles/main.sass
(bash; removes content frommain.sass
)npx webpack
cat cljc/styles/main.cljc
Expected outcome
main.cljc
is a valid CLJC file and contains only the namespace declaration
ORmain.cljc
is not generated at all
Actual outcome
main.cljc
is not a valid CLJC file
(ns styles.main)
undefined