Technology stack
vite + vue3 + element-plus
In development
chrome95
There were no problems with the development environment or production
Deploy to customer site
The customer site is using chrome60
Fill in the pit
Because the default build target browser for Vite is to support native ESM and native ESM dynamic imports on script tags
The first plug-in
@vitejs/plugin-legacy
Package another error
Element-plus uses the New ResizeObserver
It is not feasible to configure resize-observer-polyfill, so just manually change the ResizeObserver referenced in the library to resize-observer-polyfill. Fortunately, there are only two places
Wait for the configuration to be found and then change back to this document
Welcome to know friends to leave your views, thank you very much