Skip to content

Commit

Permalink
Update packages/playground/optimize-missing-deps/server.js
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <[email protected]>
  • Loading branch information
benmccann and bluwy authored May 3, 2022
1 parent 38f3f44 commit 05bd213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/optimize-missing-deps/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function createServer(root = process.cwd()) {
// this will import "missing" deps that are not yet discovered, but will not optimize them
const { name } = await vite.ssrLoadModule('./main.js')

// this will import "missing" deps in such a manner that they will be optimized
// loading `main.js` in the client should trigger optimizing the "missing" deps
const appHtml = `<div id="app">${name}</div>
<script type='module'>
import { name } from './main.js'
Expand Down

0 comments on commit 05bd213

Please sign in to comment.