Open IlyaSemenov opened 2 years ago
See https://github.com/nuxt/bridge/discussions/341 as well.
In @nuxt/bridge-edge@3.0.0-27778503.de9e5c2
, the entry point syntax is ES5 compatible, however it won't work in legacy browsers due to:
globalThis.__publicAssetsURL = function(id) { return joinURL(publicBase, id || "") }
Environment
Darwin
v16.13.0
2.16.0-27358576.777a4b7f
pnpm@6.32.4
vite
bridge
,hooks
,buildModules
-
@nuxt/bridge@3.0.0-27530716.c4f8671
Reproduction
Create empty project with this
nuxt.config.js
:Then run
nuxi build
..output/public/_nuxt/entry-legacy.c81f3a42.js
will include code that does not run in IE 9:Describe the bug
nuxi build
generates ES5-incompatible javascript even if@vitejs/plugin-legacy
is configured with IE 9 target. The plugin itself works fine, the problem is apparently that Nuxt-injected code is not processed with that plugin.Additional context
No response
Logs
No response