Support of the new URL(..., import.meta.url) syntax?
Hey guys,
I wanted to know if nuxt.js supports the
new URL(..., import.meta.url)
syntax.
If there's none at the moment, can you tell me how I can help add it? This is a big blocker for an education project at the moment (I cannot fully use monaco-editor-wrapper).3 Replies
I tried using an esbuild plugin but sadly it looks like it didn't work with nuxt.js (with react and vite it does)
It works as intended without nuxt, but with nuxt it doesn't have any effect
I'm not sure if this will help you, but for me it seems to work in nuxt.config.js in runtimeConfig:
And then somewhere else use it like:
Thanks! I’ll take a look tomorrow