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
The output scss file is copied here: ./dist/ExampleComponent.module-5ETYEIC6.scss
The resulting compiled component ./dist/components/ExampleComponent.js
var ExampleComponent_module_scss_1 = __importDefault(require("./ExampleComponent.module.scss"));
Expected
At the very least, I understood that the resulting compiled component ./dist/components/ExampleComponent.js should have the import replaced:
var ExampleComponent_module_scss_1 = __importDefault(require("../ExampleComponent.module-5ETYEIC6.scss"));
And what I think would be better is the output scss file is copied to the same directory as the component itself:./dist/components/ExampleComponent.module-5ETYEIC6.scss
The text was updated successfully, but these errors were encountered:
Ah apologies, I was using tsc to compile the typescript files and esbuild separately to copy the scss files and I think tsc overrides the files which esbuild outputs.
Trying to use the copy loader to copy my scss files to the
outDir
however the result isn't what I expected.esbuild.config.js
Component
The output scss file is copied here:
./dist/ExampleComponent.module-5ETYEIC6.scss
The resulting compiled component
./dist/components/ExampleComponent.js
Expected
At the very least, I understood that the resulting compiled component
./dist/components/ExampleComponent.js
should have the import replaced:And what I think would be better is the output scss file is copied to the same directory as the component itself:
./dist/components/ExampleComponent.module-5ETYEIC6.scss
The text was updated successfully, but these errors were encountered: