-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
🐞 bugSomething isn't workingSomething isn't working
Description
In the fixture below assetWithHash contains a url() that uses relative path (not imported path).
griffel/packages/babel-preset/__fixtures__/assets/code.ts
Lines 7 to 12 in eb26eaf
| export const useStyles = makeStyles({ | |
| rootA: { backgroundImage: `url(${blank})` }, | |
| rootB: { backgroundImage: `url("${blankDuplicate}")` }, | |
| rootC: { backgroundImage: `url(${empty})` }, | |
| assetWithHash: { filter: 'url(./a.svg#a)' }, | |
| }); |
⬇️⬇️⬇️
| `.fv04sme{-webkit-filter:url(${_asset3}#a);filter:url(${_asset3}#a);}`, |
url() there should not be transformed there, but it gets 💥
It seems that without migration to Linaria v4 (#184) that uses absolute paths it will be impossible to handle this scenario properly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐞 bugSomething isn't workingSomething isn't working