chenxch/vite-plugin-dynamic-base

not support @vitejs/plugin-legacy@2.2.0

feawesome opened this issue · 6 comments

this.is legacy config

image

there is no these code in final html

<script id="vite-legacy-entry" data-src="assets/app-download-legacy.93713ccb.js">System.import(window.__dynamic_base__+document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>

Is it convenient to provide the following plug-in version and a demo?

my plugin version is 0.2.0,

this.is my vite.config.js

base: './', plugins: [ vue(), dynamicBase({ publicPath: 'window.__dynamic_base__', transformIndexHtml: true }), legacy({ // targets: ['defaults', 'not IE 11'], targets: ['chrome >= 66'], modernPolyfills: true }) ],

You can try to upgrade vite-plugin-dynamic-base to the latest version first, my impression is that a legacy-related problem has been fixed.

oh, sorry and 3Q dear ~

If the problem is solved, you can close this issue.