Commit e3bb8f0
committed
deps: upgrade example to use Parcel v2
- deps: remove postcss-modules as Parcel no longer needs it
- this also fixes 20+ vulns in the devDeps
- use a namespace import for the CSS modules as requested in the docs:
https://parceljs.org/languages/css/#css-modules
- Per Migration docs (https://parceljs.org/getting-started/migration/):
- use `type='module'` in `<script>` tag
- use `.parcel-cache` in gitignore instead of `.cache`
- misc: Babel is no longer necessary, so might move Parcel into the
example dir instead, as it doesn't have to share deps now?
- getting warnings from Parcel now that the Babel config is a deopt,
but that's being used by Rollup (also still very fast)
- misc: add `--open` to Parcel CLI script so it opens in browser window
automatically1 parent 8458251 commit e3bb8f0
File tree
6 files changed
+10633
-19025
lines changed- example
- public
- src
6 files changed
+10633
-19025
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments