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
{{ message }}
Repository navigation
With library.type: module, import.meta.url shouldn't be replaced with static string #14809
I did came across this issue, as I was trying to use import.meta.url natively in the browser at runtime in an application, but it turned out that Webpack will always replace this with a static string.
Activity
alan-agius4 commentedon Dec 16, 2021
I did came across this issue, as I was trying to use
import.meta.urlnatively in the browser at runtime in an application, but it turned out that Webpack will always replace this with a static string.alexander-akait commentedon Dec 16, 2021
Yep, we should improve this
alexander-akait commentedon Jan 29, 2022
Now we allow to disable
import.meta.urlbehavior #15246alexander-akait commentedon Jan 29, 2022
So original issue resolved, just disable it for required files and it will work
wmurphyrd commentedon Jan 29, 2022
Thanks @alexander-akait this looks like it will work. I'll try it out as soon as it is released
vankop commentedon Jan 29, 2022
yep, this can be closed