-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Open
Labels
feat: web workersinconsistencyInconsistency between dev & buildInconsistency between dev & buildp2-edge-caseBug, but has workaround or limited in scope (priority)Bug, but has workaround or limited in scope (priority)
Description
Describe the bug
Only by adding this plugin to rollup as well will it pass compilation.
import plugin from './plugin.js';
export default {
plugins: [plugin()],
build: {
rollupOptions: {
// plugins: [plugin()],
},
},
};
More details can be found in the reproduction. trust me, it is a minimal and will not waste too much of your time.
Reproduction
https://stackblitz.com/edit/vitejs-vite-mojc3s?file=vite.config.js
System Info
n/a
Used Package Manager
pnpm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
feat: web workersinconsistencyInconsistency between dev & buildInconsistency between dev & buildp2-edge-caseBug, but has workaround or limited in scope (priority)Bug, but has workaround or limited in scope (priority)