michalkvasnicak / babel-plugin-css-modules-transform

Extract css class names from required css module files, so we can render it on server.
MIT License
326 stars 54 forks source link

preprocessor errors and missing files are swallowed #104

Open samsch opened 5 years ago

samsch commented 5 years ago

Reproduction repo: https://github.com/samsch/css-modules-transform-scss-no-error

Preprocessor errors are swallowed and ignored. Specifically, errors thrown from the function exported from the preprocessCss option file don't cause the build to fail.

Additionally, if a require()d .scss file isn't found, the build continues without error.

Both cases are shown in the repro repo.