Commit Graph

48 Commits

Author SHA1 Message Date
Daniel Roe 83949c3734
fix(nuxt): always inline entry styles (#7386) 2022-09-10 11:43:17 +02:00
Daniel Roe be77d477d0
fix(webpack): don't parse styles for composable keys (#7333) 2022-09-08 10:55:30 +02:00
Daniel Roe 577a7b681e
perf(vite): remove duplicate css links from rendered page when inlined (#7264) 2022-09-07 10:41:08 +02:00
Daniel Roe de62520990
feat(nuxt, vite): inline global and component styles in server response (#7160)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-03 15:03:30 +02:00
Anthony Fu d2094ea37a
refactor(vite): enable strict type checking (#6616) 2022-08-15 15:40:06 +02:00
Pooya Parsa e109d65c30 chore: ignore typechecking for visualizer plugin 2022-08-15 14:55:12 +02:00
Daniel Roe 70b024fbaa
fix(vite, nuxt): resolve relative to `srcDir` rather than `rootDir` (#6546) 2022-08-12 11:11:09 +02:00
Daniel Roe 3f2eb3a3b1
fix(vite, webpack): generate composable keys based on order (#6191) 2022-07-29 11:40:04 +02:00
Daniel Roe fa8b0f7c79
feat(vite)!: upgrade vite to v3 (#5398) 2022-07-21 12:44:33 +02:00
Daniel Roe bdbeb886ae
fix(webpack): do not resolve `#internal/nitro` alias internally (#5987) 2022-07-20 18:59:05 +02:00
Daniel Roe 23546a270c
feat(nuxt): automatically generate unique keys for keyed composables (#4955)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-07-07 18:26:04 +02:00
Daniel Roe 8831e4a4b9
fix(vite): don't terminate with escaped delimiters (#5409) 2022-06-10 17:17:11 +02:00
Dario Merz 31c67ad9b4
fix(vite): ignore virtual imports that aren't in vfs (#4822)
Co-authored-by: Dario Merz <dario.merz@deptagency.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-05-06 15:33:32 +02:00
Daniel Roe 4079882bd4
fix(vite): use `buildAssetsURL` for dynamic imports (#4844) 2022-05-06 12:51:31 +02:00
Daniel Roe b8d2e64c78
fix(vite): don't match across newlines (#4596) 2022-04-25 18:55:33 +02:00
Daniel Roe 650d12fa9c
feat: allow disabling sourcemap generation (#4509) 2022-04-22 17:35:42 +02:00
Daniel Roe 4c6c027014
fix(vite): use single regex to reduce risk of collisions (#4442) 2022-04-22 17:22:22 +02:00
Daniel Roe 648a70e97b
fix(vite): transform virtual templates (#4512) 2022-04-22 10:32:26 +02:00
pooya parsa 756693ce7f
feat!: migrate to nitro 0.3x (#4438) 2022-04-19 21:10:32 +02:00
pooya parsa 11626eea4f
feat!: migrate to nitropack (#3956)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-04-07 13:28:04 +02:00
Daniel Roe 3ea39e0745
fix(vite): clean up dynamic paths (#4130) 2022-04-06 16:15:36 +02:00
Daniel Roe ade3378a00
refactor(bridge): align bridge with vite and inline systemjs polyfill in entry (#4005) 2022-04-01 15:22:22 +02:00
Daniel Roe 51f3bbfd23
fix(vite): update regex to handle new vite output format (#4014) 2022-04-01 12:15:00 +02:00
Daniel Roe 93c4dfe091
fix(vite): resolve `#_config` in base plugin (#3848) 2022-03-23 09:10:12 +01:00
Daniel Roe 7458dd1aa6
fix(nuxt3): use shared module for dynamic paths (#3757)
* test: add tests for dynamic paths + relative assets

Co-authored-by: Anthony Fu <hi@antfu.me>

* fix: rework client config and use shared module for dynamic paths

* resolves webpack public path regression

* refactor: use more similar names to nitro equivalent

* fix: align config exports

* refactor: remove `__` prefix within dynamic paths module

* refactor: use '#_config' to indicate internal alias

* Update packages/nuxt3/src/core/templates.ts

Co-authored-by: pooya parsa <pyapar@gmail.com>

* refactor: use `#_config` alias and rename to `paths.mjs`

Co-authored-by: Anthony Fu <hi@antfu.me>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-22 16:51:26 +01:00
Daniel Roe 78761c236b
fix(vite): handle base in `vite/preload-helper` (#3499) 2022-03-04 12:45:14 +01:00
Anthony Fu ecee32988d
chore: migrate to `magic-string` (#3482) 2022-03-03 11:01:14 +01:00
Anthony Fu a0f8a44e10
fix: sourcemap support for `nuxt:vite-relative-asset` (#3428) 2022-02-28 20:24:52 +01:00
Anthony Fu b2438917b9
perf(vite): bypass unchanged plugin transform (#3150) 2022-02-10 10:30:34 +01:00
Anthony Fu cb663b0285
chore(vite): unifiy vite plugin naming (#3151) 2022-02-10 10:29:49 +01:00
Daniel Roe 965f2abaee
feat(nuxt3): middleware type generation improvements (#2945) 2022-01-27 12:13:32 +01:00
Daniel Roe d0bcc3fc82
fix(vite): only apply relative url fix to css assets (#2930) 2022-01-26 13:59:48 +01:00
Daniel Roe b803fdb4f9
fix(vite): handle emitted assets with relative urls and dynamic base (#2851) 2022-01-24 13:57:24 +01:00
Daniel Roe d07d572263
feat: improve base url options (#2655) 2022-01-18 17:59:14 +01:00
Xin Du (Clark) c90bc50817
chore(lint): improve no-unused-vars rule (#1977) 2021-11-17 12:21:38 +01:00
Daniel Roe 90487fde0c
fix(vite): use `forEach` on NodeList not Element (#1734) 2021-11-05 14:54:13 +01:00
Anthony Fu 4da062a120
refactor(vite): move analyzePlugin to a seperate file (#1710) 2021-11-05 09:58:03 +01:00
Anthony Fu 85d173d653
fix(vite): swap `<link>` style on dev ssr (#1712) 2021-11-05 09:55:53 +01:00
Daniel Roe f5aea9f742
fix(vite): don't replace `process.env` (#1543) 2021-10-28 16:48:42 +02:00
Anthony Fu e13baf9867
feat(nuxt3): remove `<script setup>` transform and prefer top level await (#579)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-09-30 20:19:55 +02:00
pooya parsa 6329a681e4
refactor: migrate from upath to pathe (#553) 2021-09-27 14:49:36 +02:00
pooya parsa ee0163c273
refactor: merge modules to `nuxt3` (#439) 2021-08-11 22:28:38 +02:00
Daniel Roe 25e96bb896
fix: windows path issues (#408) 2021-08-09 20:24:52 +02:00
Pooya Parsa cb7f079ac4 chore: fix lint issues
[skip-release]

using `import type` seems a regression of `import/named` rule but generally makes it more readable to prefer using it :)
2021-08-09 18:18:21 +02:00
pooya parsa bec2720930
feat: use virtual filesystem for templates (#292)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-07-15 12:18:34 +02:00
Anthony Fu 11a5a3e14f
feat(app): make `asyncData` working with `<script setup nuxt>` (#220) 2021-06-16 14:42:58 +02:00
renovate[bot] 82b585dbb0
chore(deps): lock file maintenance and fix lint issues (#141) 2021-05-20 12:58:30 +02:00
pooya parsa 9732d63c74
feat: update vite implementation (#130) 2021-04-29 13:51:54 +02:00