fix: failed getElementById in @micro-zoe/micro-app proxy sandbox mode#33
fix: failed getElementById in @micro-zoe/micro-app proxy sandbox mode#33chenhuang444 wants to merge 2 commits intochenxch:mainfrom
Conversation
since data-src is a non-standard attribute, micro-zoe/micro-app does not do anything about it during their js sandbox processing. this causes legayPolyfill to fail
|
So we are using They strip the content of inline scripts and execute it in a Proxied environment, which does not have access to the original Submitting a fix for this problem. Also I believe this make the plugin more robust as it does not rely on a |
…e starting slash from path
d369822 to
2a00ee2
Compare
|
There is also an issue with const styleString = "@charset \"UTF-8\";cursor: url(/__vite_dynamic_public_path__/assets/cursor.svg);"will have the The original method would transform the output into: const styleString = "@charset "UTF-8";cursor: url(" + window.SOMETHING + "/assets/cursor.svg);"which is broken due to the unescaped double quotes |
since data-src is a non-standard attribute, micro-zoe/micro-app does not do anything about it during their js sandbox processing. this causes legayPolyfill to fail