I'm submitting a ...
[ ] bug report
[ ] feature request
[x ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
I'm facing a problem building my packages like this, if and only if I need to package (main or module) to be added to a webpack DLL. First of all I'm using copyfiles to copy all my non ts/tsx files to dist/build folder and I'm only bundling/transpiling from the App with webpack. The problem is that any @import inside my scss will not work if I add the package to the DLL plugin. Is this a limitation to this approach of building packages, do we need to bundle with rollup before shipping or can this be solved somehow?
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
ERROR in ./node_modules/my-library/dist/module/components/Parent/Child/Child.scss 1:0
Module parse failed: Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type.
> @import "../../../scss/mixins";
I'm submitting a ... [ ] bug report [ ] feature request [x ] question about the decisions made in the repository [ ] question about how to use this project
Summary
I'm facing a problem building my packages like this, if and only if I need to package (main or module) to be added to a webpack DLL. First of all I'm using copyfiles to copy all my non ts/tsx files to dist/build folder and I'm only bundling/transpiling from the App with webpack. The problem is that any @import inside my scss will not work if I add the package to the DLL plugin. Is this a limitation to this approach of building packages, do we need to bundle with rollup before shipping or can this be solved somehow?