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
This is completely valid javascript. The issue is that when Webpack tries to bundle it, the bundler will attempt to resolve the URL, due to the new URL("./", import.meta.url) which will crash the bundler when it finds a directory.
This is a relatively longstanding bug in webpack, and since other behaviors depend in it, there is no fix on the horizion.
Some very prominent projects are affected by this, and as there is no fix in sight, I'd really like to just make Emscripten webpack-compatible by default, so long as we're not bending over backward for it.
Emscripten packages include the following line:
This is completely valid javascript. The issue is that when Webpack tries to bundle it, the bundler will attempt to resolve the URL, due to the
new URL("./", import.meta.url)
which will crash the bundler when it finds a directory.This is a relatively longstanding bug in webpack, and since other behaviors depend in it, there is no fix on the horizion.
webpack/webpack#16878
Some very prominent projects are affected by this, and as there is no fix in sight, I'd really like to just make Emscripten webpack-compatible by default, so long as we're not bending over backward for it.
electric-sql/pglite#328
I've submitted the following pull request that changes the notation to something equivalent that Webpack will ignore:
#22605
The text was updated successfully, but these errors were encountered: