Skip to content

Commit

Permalink
Merge pull request #3 from notsle/dev/me/oct2024-fixes
Browse files Browse the repository at this point in the history
fix App.js src path in E-vite.md
  • Loading branch information
dtauer authored Oct 30, 2024
2 parents eb67cc1 + 765ee95 commit 1715620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lessons/03-tools/E-vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The former is the tool itself and the latter is all the React specific features

```html
<!-- delete the two unpkg script lines -->
<script type="module" src=".src/App.js"></script>
<script type="module" src="./src/App.js"></script>
```

We need to add module to the script tag so that the browser knows it's working with modern browser technology that allows you in development mode to use modules directly. Instead of having to reload the whole bundle every time, your browser can just reload the JS that has changed. It allows the browser to crawl the dependency graph itself which means Vite can run lightning fast in dev mode. It will still package it up for production so we can support a range of browsers.
Expand Down

0 comments on commit 1715620

Please sign in to comment.