You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I install a package which is a optimizable dependency and make a multi-page config described as official doc, then the dep optimization would fail. Seems it considers the nested html as a js module.
Optimizable dependencies detected:
mapbox-gl
Pre-bundling them to speed up dev server page load...
(this will be run only when your dependencies have changed)
Dep optimization failed with error:
Unexpected token (Note that you need plugins to import files that are not JavaScript)
index.html
1: <!DOCTYPE html>
^
2: <html lang="en">
3: <head>
Port 3000 is in use, trying another one...
Optimizable dependencies detected:
mapbox-gl
Pre-bundling them to speed up dev server page load...
(this will be run only when your dependencies have changed)
Dep optimization failed with error:
Unexpected token (Note that you need plugins to import files that are not JavaScript)
nested\index.html
1: <!DOCTYPE html>
^
2: <!-- nested page -->
3: <html lang="en">
Vite dev server running at:
.............
Describe the bug
If I install a package which is a optimizable dependency and make a multi-page config described as official doc, then the dep optimization would fail. Seems it considers the nested html as a js module.
Reproduction
Please check this repo for detail.
System Info
vite
version: 2.0.0-beta.5Logs (Optional if provided reproduction)
The text was updated successfully, but these errors were encountered: