-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Labels
feat: web workershas workaroundinconsistencyInconsistency 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
- Read the docs.
- Use Vite >=2.0. (1.x is no longer supported)
- If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.
Describe the bug
I am using monaco editor with inline worker, vite build output nothing. (exit at ✓ 739 modules transformed.
)
(When I used vite 1, it worked as expected.
Reproduction
https://github.com/meowtec/vite-worker-bug-reproduce
System Info
vite
version: 2.0.0-beta.65- Operating System: macOS Catalina
- Node version: v12.18.0
- Package manager (npm/yarn/pnpm) and version: npm 6.14.10
Logs (Optional if provided reproduction)
building for production...
transforming (14) node_modules/monaco-editor/esm/vs/editor/editor.worker.jsThe 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
transforming (105) node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.jsThe 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
transforming (297) node_modules/monaco-editor/esm/vs/language/json/_deps/vscode-json-languageservice/seThe 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
✓ 736 modules transformed.
✓ 739 modules transformed.
<----- vite exit here
zakariamouhid, wtho and makeryi
Metadata
Metadata
Assignees
Labels
feat: web workershas workaroundinconsistencyInconsistency 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)