core
core copied to clipboard
[Bug report] build fail with vite plugin @vitejs/plugin-legacy
Description
vuepress-next not support legacy browser default. so it can be resolve by using @vitejs/plugin-legacy.
However, when I import @vitejs/plugin-legacy for my project, such an error be capture.

Reproduction
https://stackblitz.com/edit/vuepress-8ddnwz?file=docs%2F.vuepress%2Fconfig.ts
Used Package Manager
npm
System Info
System:
OS: macOS 11.2.3
CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
Memory: 128.05 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.19.1 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.14.16 - /usr/local/bin/npm
Utilities:
Git: 2.30.1 - /usr/bin/git
Browsers:
Chrome: 104.0.5112.101
Edge: Not Found
Firefox: 104.0.1
Safari: 14.0.3
npmPackages:
@vuepress/bundler-vite: 2.0.0-beta.48
@vuepress/bundler-webpack: Not Found
@vuepress/cli: 2.0.0-beta.48
@vuepress/client: ^2.0.0-beta.48 => 2.0.0-beta.48
@vuepress/core: 2.0.0-beta.48
@vuepress/markdown: 2.0.0-beta.48
@vuepress/plugin-active-header-links: 2.0.0-beta.48
@vuepress/plugin-back-to-top: 2.0.0-beta.48
@vuepress/plugin-container: 2.0.0-beta.48
@vuepress/plugin-docsearch: Not Found
@vuepress/plugin-external-link-icon: 2.0.0-beta.48
@vuepress/plugin-git: 2.0.0-beta.48
@vuepress/plugin-google-analytics: Not Found
@vuepress/plugin-medium-zoom: 2.0.0-beta.48
@vuepress/plugin-nprogress: 2.0.0-beta.48
@vuepress/plugin-palette: 2.0.0-beta.48
@vuepress/plugin-prismjs: 2.0.0-beta.48
@vuepress/plugin-pwa: Not Found
@vuepress/plugin-pwa-popup: Not Found
@vuepress/plugin-register-components: Not Found
@vuepress/plugin-search: ^2.0.0-beta.48 => 2.0.0-beta.48
@vuepress/plugin-shiki: Not Found
@vuepress/plugin-theme-data: 2.0.0-beta.48
@vuepress/plugin-toc: Not Found
@vuepress/shared: 2.0.0-beta.48
@vuepress/theme-default: 2.0.0-beta.48
@vuepress/utils: 2.0.0-beta.48
vue: ^3.2.36 => 3.2.37
vue-loader: Not Found
vue-router: 4.0.16
vuepress: ^2.0.0-beta.48 => 2.0.0-beta.48
vuepress-vite: undefined (2.0.0-beta.48)
vuepress-webpack: Not Found
You'd better provide a reproduction with latest packages.
You'd better provide a reproduction with latest packages.
https://stackblitz.com/edit/vuepress-8ddnwz?file=package.json
Done, it is lastest packages now.
这个问题有进展了吗?
Closing as it has been stale for a long time.
We are not planning to support it for now. It would require lots of investigation and refactoring. The RIO it is too low to support such legacy things.