and all modules share some code, the result would be:
module1.js // export { x, y, z } from './shared.chunk.js'
module2.js // import {x, y, z } from './shared.chunk.js'
shared.chunk.js
this is all right for js, but now this happens with css with shared styles:
module2.css
shared.chunk.css <-- this contains also module1.css
I know that this happens because module1.js only re-exports the functions and the main code is in the chunk.
Should the css not mimic the same behavior? For example with an @import statement.
If the current behavior is intended, could we get this as an option?
Let us assume we want to process multiple modules:
and all modules share some code, the result would be:
this is all right for js, but now this happens with css with shared styles:
I know that this happens because module1.js only re-exports the functions and the main code is in the chunk. Should the css not mimic the same behavior? For example with an
@import
statement. If the current behavior is intended, could we get this as an option?