Commit Graph

428 Commits

Author SHA1 Message Date
Daniel Roe 41ff3b8efe
fix(nitro): support built `publicPath` (#1479) 2021-10-26 19:37:52 +02:00
Pooya Parsa d2cc9e4bd0 fix(nitro): revert to main rollup import (closes #1445) 2021-10-25 18:32:20 +02:00
Daniel Roe c6f769e94d
fix(nitro): inject payload for spa renderer (#1434) 2021-10-25 12:36:38 +02:00
Pooya Parsa ad7e7551ec fix(nitro): import rollup as cjs 2021-10-25 11:23:15 +02:00
Daniel Roe 7d918e1457
refactor(nuxi): move `nuxt.d.ts` within `buildDir` (#1369) 2021-10-23 00:33:22 +02:00
Francisco Buceta 54549cfc61
fix(nitro): omit `/index` from generated api urls (#1371) 2021-10-22 19:04:02 +02:00
Pooya Parsa 1e69bc56bb fix(nitro): handle terminating uninitialized worker 2021-10-22 15:36:29 +02:00
Daniel Roe 018302cb0b
fix(nitro): update firebase preset to handle mjs output (#1360) 2021-10-22 13:57:21 +02:00
Daniel Roe f0b9474b40
feat(nuxi): bundle analyzer (#701)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-21 21:51:44 +02:00
pooya parsa 9d40a271ee
feat(nitro): improve dev worker stability (#1303) 2021-10-21 13:54:55 +02:00
pooya parsa d1214c9aae
fix(nitro): terminate active worker before replacing (#1302) 2021-10-20 21:28:01 +02:00
Anthony Fu 92547d8547
fix(nitro): filter alias in `/_vfs` listing (#1296) 2021-10-20 19:30:42 +02:00
Ahad Birang ffb05fc734
fix(nitro): do not modify `event.request` for worker entries (#1279) 2021-10-20 12:54:02 +02:00
Ahad Birang 3c962013b5
fix(nitro): bundle json files (#1245) 2021-10-20 12:13:21 +02:00
Daniel Roe d166b78e06
feat(vite): use `externality` to resolve externals for ssr dev bundler (#1172) 2021-10-20 11:50:29 +02:00
Daniel Roe 80883cfb8f
fix(nitro): improve externals error handling (#1188) 2021-10-18 18:08:37 +02:00
Daniel Roe f974425cc4
fix(nitro): modify contents rather than compiled , remove template `compiled` (#1154) 2021-10-18 11:06:23 +02:00
renovate[bot] 4f050e50bf
chore(deps): update all non-major dependencies (#989) 2021-10-18 10:50:46 +02:00
Daniel Roe 61518a972f
fix(nitro): disable automatic spa fallback (#1071) 2021-10-18 10:08:22 +02:00
Daniel Roe 9592967eee
f(nitro): enable externals for `azure` and `firebase` presets (#1050) 2021-10-18 10:04:38 +02:00
retsuki b3ff8eeaed
fix(nitro): read firebase package.json (#1108) 2021-10-18 09:53:50 +02:00
Daniel Roe a1bcc534bf
fix(nitro): update azure swa implementation (#1069) 2021-10-15 12:28:34 +02:00
Daniel Roe 6acfdcd0f7
refactor(nitro): move wasm support behind a flag (`nitro.experiments.wasm`) (#1045) 2021-10-14 20:57:23 +02:00
Daniel Roe 1fbfdefe70
refactor: use `p-debounce` everywhere (#977) 2021-10-13 21:04:12 +02:00
Pooya Parsa 961d142039 fix(nitro): `table` esm compatibility (resolves #877) 2021-10-13 11:09:24 +02:00
Anthony Fu 10170daa84
fix(nitro): `dot-prop` esm compatibility (#829) 2021-10-12 20:51:24 +02:00
Xin Du (Clark) 3759926de5
fix(nitro): firebase package.json is not exported (#809) 2021-10-12 19:39:55 +02:00
pooya parsa 54c57e3987
feat(nuxt3): `useFetch` (#721) 2021-10-12 00:36:50 +02:00
Daniel Roe b005b2403f
feat(nitro): automatically type middleware/api routes (#708) 2021-10-11 15:29:02 +02:00
Daniel Roe a4f06716be
fix(nitro): always inline `.wasm` (#698) 2021-10-07 18:32:48 +02:00
Daniel Roe 5275624f2e
feat(nitro): support importing/inlining wasm binaries (#693) 2021-10-07 15:43:34 +02:00
pooya parsa 45b4946026
feat(nuxt3, bridge): useRuntimeConfig (#625)
Co-Authored-By: Daniel Roe <daniel@roe.dev>
2021-10-02 22:30:20 +02:00
Xin Du (Clark) eb794f3f85
chore(eslint): forbid modules importing from core (#556)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-10-02 20:40:10 +02:00
pooya parsa 6e496373f3
feat: use native esm for all packages (#539) 2021-10-02 18:01:17 +02:00
Daniel Roe f79f6fe40f
chore(nitro): upgrade `unenv` and remove old workaround (#595) 2021-09-29 19:50:54 +02:00
Daniel Roe f06ee66f1c
fix(nitro): show all ERR_MODULE_NOT_FOUND errors (#561)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-09-29 16:25:13 +02:00
Daniel Roe 0c14b0a48b
fix: workaround for `vue` 3.2.18+ esm bundle issue and revert #566 (#578) (#578) 2021-09-29 13:47:36 +02:00
Daniel Roe b8b32ac32d
chore: use `miniflare` for testing repo and recommend to users (#585) 2021-09-28 13:30:54 +02:00
pooya parsa 6329a681e4
refactor: migrate from upath to pathe (#553) 2021-09-27 14:49:36 +02:00
Xin Du (Clark) a137d2e5ec
feat(nitro): support esbuild options config (#550) 2021-09-22 16:39:54 +02:00
Ahad Birang 5394aef2f7
fix(storage): replace non-word characters with underscore (#542) 2021-09-21 17:05:36 +02:00
Ahad Birang 2b63578a84
feat(nitro): handle request body in workers (#537) 2021-09-20 20:12:43 +02:00
Ahad Birang 3e0e24f80d
fix(nitro): disable externals in worker preset (#535) 2021-09-20 11:20:55 +02:00
Ahad Birang 64a426527f
fix(nitro): pass query params to localCall in service worker (#530) 2021-09-14 21:08:17 +02:00
Ahad Birang 13abec6143
fix(nitro): read body stream on post requests for `service-worker` (#527) 2021-09-13 12:37:38 +02:00
Pooya Parsa 4cd6d80448 fix(nitro): use `generate:page` hook for browser to inject sw
resolves #522
2021-09-10 13:22:20 +02:00
Ahad Birang c0c5b9b9bd
fix(nitro): handle static assets and api routes for `service-worker` preset (#518) 2021-09-09 18:01:43 +02:00
Ahad Birang b47c592e39
fix(nitro): do not overwrite output files for browser-preset (#516) 2021-09-09 11:55:40 +02:00
pooya parsa 820a9d0b57
feat(nitro): assets driver (#511) 2021-09-08 22:01:21 +02:00
Daniel Roe 133c03ae2f
chore(nitro): avoid optional chaining in nitro render fn (#493) 2021-09-08 11:54:17 +02:00
Daniel Roe f2d78674a0
feat: add support for vite build (with vite-format manifest) (#450) 2021-09-07 11:35:55 +02:00
Daniel Roe 44b7f1f61e
fix(nitro): used named export for azure entry (#491) 2021-09-06 13:58:56 +02:00
Daniel Roe b9d2dad56a
fix(nitro): correct vercel fs api static directory (#488) 2021-09-06 13:38:14 +02:00
Daniel Roe 0a8c86c885
fix(nitro): export named function rather than default export (#490) 2021-09-06 13:37:21 +02:00
renovate[bot] 9f7438afb1
chore: update all non-major dependencies and add `node` to nitro external conditions (#440)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-09-05 23:54:12 +02:00
pooya parsa 44458fcbbb
feat: nuxt bridge (#459) 2021-09-05 23:21:33 +02:00
Daniel Roe de57626a7a
fix(nitro): emit chunk names without `#` (#477) 2021-09-05 22:48:38 +02:00
Daniel Roe 0c50af9fd5
fix(nitro): use file url for `#build` alias in windows dev (#469) 2021-09-05 22:35:54 +02:00
Daniel Roe 193d7bf8bc
feat: use webpack esm server build (#474) 2021-09-05 22:33:24 +02:00
Daniel Roe 7527d30bed
fix(nitro): inject entryURL at beginning of entrypoint (#468) 2021-09-03 14:27:19 +02:00
Daniel Roe 7f9ef5e13d
fix(nitro): correct issues rendering `payload.js` (#466) 2021-09-01 20:08:09 +02:00
Daniel Roe 7a03460584
chore(nitro, kit, nuxt3): add nitro hook types and upgrade `hookable@5` (#458) 2021-08-27 14:51:40 +02:00
pooya parsa ee0163c273
refactor: merge modules to `nuxt3` (#439) 2021-08-11 22:28:38 +02:00
pooya parsa 3516f40e06
fix(nitro): fix EBUSY error on windows (#425) 2021-08-09 23:44:50 +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
Daniel Roe 771e72b1b5
chore(nitro): no longer need to inline `ohmyfetch` (#407) 2021-08-09 17:46:03 +02:00
Daniel Roe 858e31c7fc
fix(nitro): promisify proxy handler (#398) 2021-07-28 19:24:19 +02:00
Matt Kane 4a989e9b7a
fix(nitro): detect `NETLIFY_LOCAL` (#400) 2021-07-28 18:42:59 +02:00
Daniel Roe bb757045ec
fix(webpack): use cjs for emitted webpack files (#395) 2021-07-28 14:00:39 +02:00
Daniel Roe c9ed8bc341
fix(nitro): import externals as esm namespace (#394)
[workaround]
2021-07-28 09:58:07 +02:00
Daniel Roe bbfa41f811
fix(nitro): handle ssr redirects (#392) 2021-07-27 15:55:01 +02:00
Daniel Roe 956f442e29
fix(nitro): filter out duplicate imports (#378) 2021-07-26 15:44:35 +02:00
Matt Kane bad2a74805
fix(nitro): disable `moduleSideEffects` by default (#377) 2021-07-26 13:32:35 +02:00
Matt Kane e43e9cf71a
fix(nitro): generate correct netlify entrypoint (#372) 2021-07-26 12:37:39 +02:00
Daniel Roe 5d5516dd1d
feat: nitro endpoint for viewing `_vfs` (#362) 2021-07-23 16:41:36 +02:00
Pooya Parsa 7fee983b52 fix(nitro): watch .mjs and .cjs extensions (closes #352) 2021-07-22 16:25:26 +02:00
pooya parsa be255772b2
feat: support `ssr: false` (#351)
Co-Authored-By: Daniel Roe <daniel@roe.dev>
2021-07-21 22:05:22 +02:00
Daniel Roe 64d3585959
fix(app): make `renderMeta` optional (#340) 2021-07-19 15:27:20 +02:00
Daniel Roe b263b4f930
feat: `@nuxt/meta` module for head rendering (#179)
Co-authored-by: Anthony Fu <hi@antfu.me>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-07-15 13:28:04 +02:00
Pooya Parsa 7eecc84f4d fix(nitro): fix externals regex for scoped packages
closes #238
2021-07-15 13:08:14 +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
Daniel Roe ea0d2788a4
feat: use `@nuxt/design` (#322)
Co-authored-by: pooya parsa <pyapar@gmail.com>
2021-07-15 11:47:15 +02:00
pooya parsa 6318438415
feat(nitro, vite): use native module (#252)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-07-15 11:38:06 +02:00
Daniel Roe 0a3041cdf9
fix: allow use of nuxt3 in non-wsl windows environment (#308) 2021-07-12 12:54:24 +02:00
Daniel Roe b53d8a77ff
fix(components): augment 'vue' module rather than overwriting (#305) 2021-07-07 20:41:51 +02:00
Daniel Roe 1126255835
fix(nitro): generate netlify `_redirects` in public (#298) 2021-07-01 14:49:42 +02:00
Daniel Roe 04c3f65539
refactor: rename `static` to `public` (#284) 2021-06-30 12:29:48 +02:00
Pooya Parsa a25d7b1617 fix(nitro): use unenv 0.3.x (closes #266) 2021-06-24 13:56:19 +02:00
Daniel Roe c399f142b9
fix(nitro): use nuxt2 compatible template (#268)
closes #265
2021-06-24 13:35:21 +02:00
Pooya Parsa 1ed3387243 fix: use nitro plugin with explicit mjs extension 2021-06-18 14:34:07 +02:00
Pooya Parsa 3398d5a7d6 refactor: use # prefex for internal aliases
leftovers
2021-06-18 11:54:35 +02:00
Daniel Roe 77e489aae3
fix(nitro): update nitro internal hook name (#218) 2021-06-16 13:48:16 +02:00
Daniel Roe e2d5a2f4b3
fix: add nitro client plugin ($fetch support) (#223)
* fix(nuxt3): add nitro client plugin ($fetch support)

closes #213

* refactor: put hook in more logical place

* docs: update comment
2021-06-16 13:20:18 +02:00
Daniel Roe 9750009cc5
feat(nitro): support netlify zero-config deployments (#175) 2021-06-15 00:10:17 +02:00
Pooya Parsa b6104c6e83 chore(nitro): provide process.client and process.server
They should be handled in vite/webpack step but just in case
2021-06-14 20:37:35 +02:00
Daniel Roe 7c85daa64e
fix(nitro): set esbuild `target: '2019'` (#189) 2021-06-14 11:03:44 +02:00
renovate[bot] 7d2cd2f356
chore(deps): update all non-major dependencies (#166)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-06-07 11:12:36 +02:00
Pooya Parsa 0b7790f6d0 feat(nitro): #config 2021-06-04 22:12:32 +02:00
Pooya Parsa f98be4bfed fix(nitro): support ~/@ aliases and explicitly externalize buildDir 2021-06-04 22:04:08 +02:00