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
I’m creating a transformer plugin where I'm adding additional dependencies using asset.addURLdepenency with isLibrary set to true, but I'm encountering an issue with the ESM output generation.
The generated js file has an import statement for the css module, which breaks my static server: import "./styles.css"
Is there any way to configure parcel or the css plugin to use a different method? Either stringify the contents or use link tags?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I’m creating a transformer plugin where I'm adding additional dependencies using
asset.addURLdepenency
withisLibrary
set to true, but I'm encountering an issue with the ESM output generation.The generated js file has an import statement for the css module, which breaks my static server:
import "./styles.css"
Is there any way to configure parcel or the css plugin to use a different method? Either stringify the contents or use link tags?
Beta Was this translation helpful? Give feedback.
All reactions