Unexpected token
for dynamic import nested in Promise.all
#1563
Labels
Unexpected token
for dynamic import nested in Promise.all
#1563
Describe the bug
Production build fails to compile the following code snippet:
Error:
Reproduction
Just add the
three
package to an empty vanilla vite project and add the lines from above to main.js. Then runyarn build
.Workaround
The build works when extracting the
import('three')
into a local variable or removing thePromise.all
. Since this is just a single occurrence in our code this is not a big issue, but AFAICS this is perfectly valid JS code so it should also compile.System Info
vite
version: 2.0.0-beta.30The text was updated successfully, but these errors were encountered: