Skip to content

pure scss/css lib not recognized by share scope #3923

Answered by ScriptedAlchemy
YanPes asked this question in Q&A
Discussion options

You must be logged in to vote

make a js file and import that / share that who imports the styles?
CSS is a side effect of a javascript module.
Also sharing works by seeing what import from exists in the codebase, if it cannot see a import from that matches what the share key or request matcher is, then its ignored / never seen becasue we hook into the module factory phase so we depend on the bundler consuming it to begin with then redirect the module

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@YanPes
Comment options

@ScriptedAlchemy
Comment options

@YanPes
Comment options

@ScriptedAlchemy
Comment options

@YanPes
Comment options

Answer selected by YanPes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants