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
If this gets passed through the plugin, it breaks with
error during build:
TypeError: Cannot read properties of undefined (reading 'replace')
at escape (/.../vite.config.ts:605:27)
at /.../vite.config.ts:636:53
at walk (/.../node_modules/.pnpm/[email protected]/node_modules/dash-ast/index.js:69:28)
at walkArray (/.../node_modules/.pnpm/[email protected]/node_modules/dash-ast/index.js:74:27)
I see. I was looking for a way to conciliate your PR with template literals support (it took a bit of experimentation with the different AST nodes). I think I found a way which seems to work but to be honest I haven't been able to reproduce your issue with composed URLs. Would you mind having a go with the Artur--vite3-support branch and let me know if it works?
If this gets passed through the plugin, it breaks with
If you change
to
then it works.
The problem is because of https://github.com/umbopepato/rollup-plugin-postcss-lit/blob/main/index.ts#L68 assumes a default export initialized node has a
.value
which a template literal does not haveThe text was updated successfully, but these errors were encountered: