1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-21 08:45:53 +00:00
Commit Graph

475 Commits

Author SHA1 Message Date
Daniel Roe
525a06af38
feat(webpack): allow configuring esbuild-loader options () 2023-06-07 13:50:12 +01:00
Daniel Roe
6d62b65f97
fix(schema): remove obsolete terser option from webpack config () 2023-06-07 12:46:08 +01:00
Wilson Pinto
0f4ae15cee
fix(kit): temporarily inline lodash.template from lodash-es () 2023-06-05 22:52:43 +01:00
anhao
67f2232014
fix(vite): skip generating keys for locally scoped functions () 2023-06-05 20:15:12 +01:00
Daniel Roe
ec72066f91
fix(nuxt): key distinct pages differently for legacy asyncData () 2023-06-05 19:36:26 +01:00
Wilson Pinto
1e6d640bf7
fix(schema): add types for vue experimental features () 2023-06-05 00:06:01 +01:00
Lehoczky Zoltán
fd6a9b2ead
fix(schema): update vue-loader options type () 2023-06-04 23:07:53 +01:00
Daniel Roe
a302fe8062
perf(nuxt): avoid watching nested paths () 2023-05-31 14:11:46 +01:00
Daniel Roe
4e6369cefa docs: link to correct webpack css extraction loader
resolves 
2023-05-25 09:17:21 -05:00
Lehoczky Zoltán
2518cf8d37
fix(schema): remove duplicate @default jsdoc tag () 2023-05-22 19:12:58 +01:00
Daniel Roe
9dea9bc1b2
perf(nuxt): use granular watcher to avoid crawling ignored dirs () 2023-05-18 14:44:24 +01:00
Daniel Roe
038c84c4b1
fix(nuxt): add types for webpack/vite environments () 2023-05-15 17:17:39 +01:00
Daniel Roe
95a0e17898
feat(schema): enable rich json payloads by default () 2023-05-10 23:31:13 +01:00
Daniel Roe
a33d2e7aec chore: update target for externalVue removal 2023-05-10 22:57:51 +01:00
Julien Huang
018bf125ab
feat(nuxt): add apps to nuxt build-time instance () 2023-05-09 23:46:03 +01:00
Eduardo San Martin Morote
5781cf1569
feat(nuxt): add experimental typedPages option () 2023-05-09 18:08:07 +01:00
Daniel Roe
566fa85fc8
fix(nuxt): run page meta plugin on all pages (and only pages) ()
Co-authored-by: Julien Huang <julien.huang@outlook.fr>
2023-05-03 15:14:12 +01:00
Anthony Fu
fb76b3931a
feat(nuxi): allow greater control of nuxi analyze from cli () 2023-05-02 14:24:11 +01:00
Daniel Roe
8b86d39e30
refactor(schema): move runtimeCompiler option out of experimental () 2023-05-01 17:39:07 +01:00
Daniel Roe
8353e4c66e
feat(nuxt): allow access to components within app () 2023-05-01 17:35:00 +01:00
Anthony Fu
cd7f38988a
feat(webpack): introduce webpack:configResolved hook () 2023-04-29 23:37:29 +01:00
Anthony Fu
17ca50354b
feat(vite): introduce vite:configResolved hook () 2023-04-29 23:37:06 +01:00
Daniel Roe
65a8f4eb3e
fix(nuxt): restrict access to single renderer outside of test/rootDir () 2023-04-27 11:31:52 +01:00
Daniel Roe
dd0d13d425
fix(nuxt): improved typing support for app config () 2023-04-26 14:30:05 +01:00
Daniel Roe
4c200e4a2a
fix(nuxi,schema): support devServer.https: true () 2023-04-25 15:33:29 +01:00
Daniel Roe
a086af9692
perf: allow using @parcel/watcher for dev watcher () 2023-04-19 22:02:52 +01:00
Daniel Roe
83f0103a47
fix(schema): rely on installed telemetry types () 2023-04-19 22:02:15 +01:00
Daniel Roe
f366ab4eb8
chore: remove @ts-ignore and fix some issues () 2023-04-14 13:53:21 +01:00
Julien Huang
163913a744
feat(nuxt): add experimentalNoScripts route rule () 2023-04-11 07:17:44 -07:00
Harlan Wilton
4da289d150
fix(schema): allow ignorePrefix to be changed () 2023-04-11 06:55:25 -07:00
Daniel Roe
4285092879
feat(nuxt): support object-syntax plugins () 2023-04-11 04:58:43 -07:00
Daniel Roe
d6c3c2439a
feat(nuxt): support async transform of object properties () 2023-04-10 14:57:13 -07:00
Daniel Roe
e99f923aa5
feat(nuxt): add experimental View Transitions API support () 2023-04-10 04:33:14 -07:00
Anthony Fu
11a9780c80
feat(nuxt): prompt to install devtools when it's enabled () 2023-04-07 08:34:11 -07:00
Harlan Wilton
0c9823eb87
perf(head): disable @vueuse/head polyfill by default () 2023-04-07 06:10:35 -07:00
pooya parsa
9e503be0f2
feat(nuxt): experimental option for rich json payloads ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-04-07 03:34:35 -07:00
Daniel Roe
d4f718d8cd
refactor(schema): clean up experimental options () 2023-04-07 03:05:09 -07:00
Julien Huang
3fc9a75070
feat(nuxt): support vue runtime compiler () 2023-04-06 04:51:32 -07:00
Daniel Roe
f40b3e2492
feat(nuxt): support ~/~~/@/@@ aliases within layers () 2023-04-03 06:18:24 -07:00
Daniel Roe
c660b39447
fix(nuxt): disable x-nuxt-no-ssr header by default () 2023-04-03 03:39:01 -07:00
Daniel Roe
ae82d70895
fix(vite): allow extending vue config per-environment () 2023-03-29 03:59:57 -07:00
Daniel Roe
45cedd85bd
fix(schema): prefer src to rootDir aliases () 2023-03-28 01:37:06 -07:00
Daniel Roe
562cef24ca
perf(nuxt): experimentally disable vue server renderer nitro endpoint () 2023-03-23 09:04:40 +00:00
Anthony Fu
ce575b49e3
fix(nuxt): ignore falsy modules () 2023-03-19 16:16:13 -07:00
Daniel Roe
9d850a2a12
feat(nuxt): add nitro:build:public-assets hook () 2023-03-14 03:34:55 -07:00
Hyunseung Lee
e42d63a25a
fix(schema): show payloadExtraction warning only when unset ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-03-13 04:06:43 -07:00
Daniel Roe
60b4c48eb4
fix(nuxt,schema): merge custom and resolved app configs () 2023-03-11 14:53:28 -08:00
pooya parsa
6bd9b9448e
feat(kit, schema): measure module setup timings () 2023-03-10 03:30:22 -08:00
Harlan Wilton
c91e4d7933
feat(nuxt): add useHeadSafe and remove layer around head imports () 2023-03-10 00:01:21 -08:00
江麻妞
fdd4bddf35
docs: update various nitro links () 2023-03-09 07:25:47 -08:00
Daniel Roe
9036142b14
feat(nuxt): add watch option and refactor dev server restarting () 2023-03-09 03:46:08 -08:00
Daniel Roe
edaca1a299
fix(vite): allow disabling clear screen behaviour () 2023-03-09 01:19:02 -08:00
Julien Huang
1729d2e42f
feat(nuxt): add <NuxtClientFallback> component () 2023-03-08 13:13:06 -08:00
Harlan Wilton
8732720221
perf(head): drop @vueuse/head dependency () 2023-03-08 07:32:24 -08:00
Daniel Roe
df3ae8cb4e
feat(nuxt): enable chunk error handling by default () 2023-03-08 12:17:22 +00:00
Anthony Fu
624314600d
feat(vite): use custom logger to show vite logs () 2023-03-08 03:56:41 -08:00
Daniel Roe
60d07df4cc
feat(nuxt): support custom keyed composables () 2023-03-07 13:06:15 -08:00
Jakub Andrzejewski
3f1e02351d
feat(nuxi,schema): add support for setting nuxt logLevel () 2023-03-07 04:18:47 -08:00
Harlan Wilton
bb61496e98
feat(nuxt): allow configuring treeshakeable composables () 2023-03-07 01:30:05 -08:00
Samuel DIDIER-LAURENT
b9e6980a62
docs: update devServer.https example () 2023-03-06 14:54:40 -08:00
Daniel Roe
129bb4fa3a
feat(kit,nuxt): add component priority to allow overriding () 2023-03-06 03:33:40 -08:00
Alexander Lichter
a670e07703
docs: fix link to nitro routeRules () 2023-03-05 10:10:56 +00:00
pooya parsa
71225e50c5
feat(nuxt): enable config schema by default () 2023-03-04 06:39:26 -08:00
Daniel Roe
3681bddfd5
feat(nuxt): auto-register modules in ~/modules () 2023-03-03 17:52:55 +00:00
Ivan
7131aef820
feat(schema): allow adding page routes without a matching file () 2023-03-03 06:07:42 -08:00
Anthony Fu
db5ea91916
feat(nuxi): cli wrapper for self restart () 2023-03-03 05:45:38 -08:00
Xin Du (Clark)
654b9a21d7
fix(schema): update vite import.meta types () 2023-03-03 02:20:15 -08:00
Jakub Andrzejewski
5cfd835163
feat(nuxi): reload nuxt when restart hook is called () 2023-03-01 04:15:01 -08:00
Hamish Claxton
c45b842037
fix(nuxi): read devServer options from nuxt config () 2023-02-16 05:17:56 -08:00
Nick Williams
9dc5413cbd
fix(vite): respect isCustomElement config for jsx transform () 2023-02-16 04:45:08 -08:00
Daniel Roe
96b09ea982
feat(nuxt): add experimental app:chunkError hook and reload strategy () 2023-02-16 04:43:58 -08:00
Daniel Roe
80f73d39ce docs: remove reference to obsolete static property
resolves 
2023-02-15 12:54:49 +00:00
Daniel Roe
19bef5aba4
fix(schema): allow type inference of arrays in runtime config ()
* fix(schema): allow type inference of arrays in runtime config

* test: add types fixture
2023-02-10 07:36:10 +00:00
Daniel Roe
01076d144f
feat(schema): add type hints for runtime config () 2023-02-06 15:27:35 -08:00
Lucas
198f9a23ec
docs(schema): add NuxtHooks interface documentation () 2023-02-05 04:17:15 -08:00
pooya parsa
637b88304e
fix(kit): avoid adding already installed modules to internal _installedModules () 2023-01-31 17:44:19 +01:00
Daniel Roe
5037dd6876
fix: use named export from defu in all places () 2023-01-30 04:09:48 -08:00
Daniel Roe
b8f6243621
fix(nuxt): provide fallback values for undefined runtime config () 2023-01-28 07:18:04 -08:00
pooya parsa
1af319e0fa
feat: experimental config schema () 2023-01-23 19:07:21 +01:00
Daniel Roe
19973c26f4 chore: update more repo links 2023-01-20 13:37:41 +00:00
Daniel Roe
081dc3254f chore: update internal repo/issue links to usenuxt/nuxt 2023-01-19 19:37:07 +00:00
Jose Morel
baf9d950db
feat(vite): support build.transpile as function ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-01-19 10:56:34 +00:00
Daniel Roe
a68da6d6a7
chore: case police update () 2023-01-13 15:00:57 +00:00
Anthony Fu
586df1a817
feat(imports): imports:context hook for unimport context () 2023-01-09 11:35:44 +00:00
Daniel Roe
a3a0f005fa
docs: remove nuxt 2 information from generate schema () 2023-01-09 09:52:56 +00:00
BetonZM
f3263ebb9d
docs: clarify plugins are auto-registered, remove components default ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-01-02 19:18:50 +01:00
Anthony Fu
faf260757c
feat(vite): display production build stats () 2022-12-19 12:57:08 +01:00
Sébastien Chopin
c0be933b02
docs: link to nuxt.com instead of v3.nuxtjs.org () 2022-12-19 11:50:01 +00:00
Daniil Chudo
ab2456c295
refactor: split out type imports from value imports () 2022-12-11 21:44:52 +00:00
Rami Menai
73bbae3308
docs(schema): add example and description for imports.dirs () 2022-11-28 12:00:26 +01:00
Daniel Roe
ab125bd1c5
feat(nuxt): experimental server component islands ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-11-24 13:24:14 +01:00
Nathan Chase
13e4f8b679
fix: remove postcss.config from schema () 2022-11-19 14:49:37 +01:00
Daniel Roe
38d7f61ac2
fix(schema): initialise runtimeConfig.public with empty object () 2022-11-16 12:42:25 +01:00
pooya parsa
5ac9d85a49
refactor!: remove deprecated api () 2022-11-16 03:26:35 +01:00
pooya parsa
6e78f9dbb0
fix(nuxt)!: enable payload extraction only for nuxi generate () 2022-11-15 17:27:34 +01:00
Harlan Wilton
fddc8b2e6e
feat(nuxt, schema): official @vueuse/head v1 support () 2022-11-15 17:26:38 +01:00
Daniel Roe
74b81bbeaa
refactor(kit)!: remove support for module container () 2022-11-15 14:22:14 +01:00
pooya parsa
0ff4ebe808
feat: allow customizing root id and tag () 2022-11-10 12:41:02 +01:00
Daniel Roe
4bbd2618ce
feat(nuxt): auto-import utils/ directory () 2022-11-09 10:43:16 +01:00
Daniel Roe
4e8f59bf70
fix(schema): add declarations to ignore list () 2022-11-09 10:01:09 +01:00
pooya parsa
44b4100e4c
fix(vite): enable fs strict mode () 2022-11-03 23:03:15 +01:00
pooya parsa
ea17148a6b
feat(kit, nuxt): support prerender:routes and addPrerenderRoutes () 2022-11-03 22:03:12 +01:00
Daniel Roe
f3fbef981c
fix(schema)!: use strict typescript mode by default () 2022-11-03 20:19:23 +01:00
Pascal Sthamer
2cbdf3684d
docs: add information about type checking to typescript.typeCheck config. ()
2022-11-03 15:04:37 +01:00
pooya parsa
265db50515
refactor(nuxt)!: cleanup schema and split nuxt 2 types () 2022-10-27 12:36:37 +02:00
Daniel Roe
95ae87ba05
fix(schema): disable early hints by default () 2022-10-26 10:48:47 +02:00
Ondřej Misák
6d830c7629
docs: add note about early hints and nginx ()
resolves https://github.com/nuxt/framework/issues/8306
2022-10-26 10:28:41 +02:00
Anthony Fu
bbea416c23
feat: upgrade unimport to 0.7.0 () 2022-10-26 10:28:00 +02:00
Daniel Roe
59d8c51b5b
refactor(schema)!: disable app.pageTransition and app.layoutTransition by default () 2022-10-24 17:23:49 +02:00
Daniel Roe
5a88510cb7
feat(kit): add updateTemplates utility () 2022-10-24 10:53:02 +02:00
Johnson Chu
5c6efdc945
docs: update links for external tools () 2022-10-21 10:08:48 +02:00
Daniel Roe
96a8807abf
fix(nuxt): allow disabling early hints () 2022-10-17 22:20:13 +02:00
Daniel Roe
931ebec376
fix(nuxi): don't includeworkspaceDir in tsconfig by default () 2022-10-17 19:53:04 +02:00
Daniel Roe
e44404f8e3
fix(schema): routeRules config () 2022-10-17 16:10:46 +02:00
Daniel Roe
df2bad76bc
feat(schema): add experimental routesRules shortcut ()
* feat(schema): add `routes` as shortcut for `nitro.routes`

* docs: improve wording

* docs: update wording

* chore: match nitro version

* update jsdocs

* refactor: use `routeRules`

Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-10-17 13:22:30 +02:00
Daniel Roe
2a4ebfb18b
perf(nuxt): improve link prefetching () 2022-10-17 13:15:29 +02:00
pooya parsa
895ecc7677
feat!: upgrade to nitropack@0.6 and h3@0.8 () 2022-10-15 20:42:57 +02:00
Daniel Roe
6dcff8e428
feat(nuxt): add hook debug mode () 2022-10-15 12:56:15 +02:00
Harlan Wilton
9e6d292ba6
feat(nuxt): migrate to latest @vueuse/head () 2022-10-12 18:00:17 +01:00
Daniel Roe
81a8a25834
feat(schema, nuxt): allow user-configurable serverDir () 2022-10-10 11:49:44 +01:00
Daniel Roe
e94c3b3704
fix(schema): evaluate env variables when resolving values () 2022-10-10 11:04:58 +01:00
Daniel Roe
1477d3759e
feat(nuxt): allow configuring plugins directory () 2022-10-07 09:13:12 +02:00
Daniel Roe
1c26e07141
feat(nuxt): support redirect within page metadata () 2022-09-22 15:54:34 +02:00
pooya parsa
720da64b12
fix(nuxi, vite): support https with custom domain and hmr () 2022-09-20 12:54:52 +02:00
pooya parsa
5605f1ce18
feat: allow disabling payload extraction () 2022-09-16 12:14:41 +02:00
pooya parsa
43b9bcaeaf
fix(nuxi, vite): ipv6 support for nuxi dev ()
* fix(nuxi): ipv6 support for `nuxi dev`

* fix vite: use listener url directly

* add url to schema
2022-09-15 18:10:36 +02:00
Alexander Lichter
1f3d9a1e84
fix(schema): only disallow vite server port and host () 2022-09-15 14:21:58 +02:00
Daniel Roe
b2f147d5e2
fix(schema): update resolver for cssSourceMap with new sourcemap format [bridge] () 2022-09-15 13:10:36 +02:00
Mahdi Boomeri
f76c0fe450
docs(schema): change srcDir example to src/ () 2022-09-14 17:25:07 +02:00
pooya parsa
c98e5c774d perf: enable treeshakeClientOnly flag by default () 2022-09-14 12:41:12 +02:00
Daniel Roe
31de18100c
perf(nuxt): only inject preload helper when webpack is used () 2022-09-13 12:57:14 +02:00
Daniel Roe
3753ea0ead
feat(nuxt): add workspaceDir option and add it to modulesDir () 2022-09-12 22:06:17 +02:00
pooya parsa
ceb61ada2b
refactor(schema): upgrade to untyped 0.5 () 2022-09-12 20:22:41 +02:00
Daniel Roe
d81a742311
fix(schema): resolve ssr () 2022-09-08 16:15:33 +02:00
Daniel Roe
bb8942a401
fix(schema): mark vite server as optional () 2022-09-07 17:38:15 +02:00
Daniel Roe
eab4706614
feat: allow client-side sourcemaps in production () 2022-09-07 13:32:10 +02:00
Alexander Lichter
ec210190d1
fix(schema): disallow setting vite server properties () 2022-09-07 13:26:06 +02:00
Daniel Roe
2bb898fa98
fix(webpack): promisify webpack dev/hot handlers using h3.promisifyHandler () 2022-09-07 10:35:21 +02:00
Daniel Roe
cc87d2a37a
feat(nuxt): support experimental flag to render no client-side js () 2022-09-05 15:46:47 +02:00
Kévin Schnekenburger
4bd1be9174
feat(nuxt): allow extending routes with custom alias ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-05 09:53:01 +02:00
Tobias Diez
27c11884b4
docs: extend description of server handlers ()
Co-authored-by: Damian Głowala <48835293+DamianGlowala@users.noreply.github.com>
2022-09-05 09:33:07 +02:00
pooya parsa
ac56ce7dd1
feat(nuxt): router with hash mode () 2022-09-04 10:11:28 +02:00
Daniel Roe
720506d263
feat(nuxt): custom history and routes for app/router.options.ts ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-04 09:42:47 +02:00
Daniel Roe
de62520990
feat(nuxt, vite): inline global and component styles in server response ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-09-03 15:03:30 +02:00
pooya parsa
68d12b468b
feat: allow extending with theme config () 2022-09-01 12:05:02 +02:00
Lay
d50b01e348
fix(schema): sync types of vite v3.x ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-08-31 20:21:58 +02:00
Daniel Roe
75053c29c2
style(schema): lint () 2022-08-29 12:42:05 +02:00
Daniel Roe
2d071eb48c
docs(schema): update prefix for runtime config env variables () 2022-08-29 11:47:02 +02:00
Anthony Fu
9db2229f70
refactor: enable strict type checking everywhere () 2022-08-26 17:47:29 +02:00
Anthony Fu
856c2a6fbd
feat(nuxt): imports.autoImport option to disable auto-imports () 2022-08-24 10:44:38 +02:00
Daniel Roe
fc82b3b340
feat(nuxt): config options for default keepalive, page & layout transitions () 2022-08-23 16:24:20 +02:00
Anthony Fu
fd94351ee9
refactor(nuxt)!: rename autoImports to imports ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-23 16:22:11 +02:00
Daniel Roe
51dc73628c
feat!(schema): enable external vue by default () 2022-08-23 13:35:00 +02:00
Anthony Fu
e1e39b7e79
refactor(nuxt, kit): improve type strictness () 2022-08-22 12:12:02 +02:00
pooya parsa
94f76ea930
feat(nuxt): app.config with hmr and reactivity support ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-08-17 17:23:13 +02:00
Ilya Artamonov
657719f689
docs: update links to nitro.unjs.io ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-16 19:29:46 +02:00
Daniel Roe
94214d6b32
feat(nuxt): exclude page chunks from being prefetched () 2022-08-16 13:19:39 +02:00
pooya parsa
dae836a81d
feat(vite): allow disabling entry warmup ()
* feat(vite): allow opt-out from warming up entries

* refactor: move to `warmupEntry`
2022-08-15 18:01:34 +02:00
Anthony Fu
1b2304b632
feat(schema, vite)!: enable vite-node by default ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-13 14:43:26 +02:00
Anthony Fu
f350a70775
refactor(nuxt): enable strict type checking ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-08-12 19:47:58 +02:00
Daniel Roe
0a513a56b1
feat(webpack, vite): default to .js extension for client () 2022-08-12 16:16:08 +02:00
Timur Bolotov
e55938fe6e
docs(schema): grammar, punctuation and typo fixes ()
Co-authored-by: Damian Głowala <48835293+DamianGlowala@users.noreply.github.com>
2022-08-11 23:25:35 +02:00
pooya parsa
3e27c1c52b
fix(nuxt): interopDefault for page component imports () 2022-08-09 20:25:35 +02:00
pooya parsa
ee36ddf516
fix(nuxt): add viteServerDynamicImports as experimental flag () 2022-08-08 15:25:58 +02:00
Nathan Chase
70aec38428
docs: update vue-router links () 2022-08-08 10:27:19 +02:00
Daniel Roe
fc1d7d9507
fix(schema): cleanup meta tags and deduplicate charset and viewport () 2022-08-07 11:53:53 +02:00
Timur Bolotov
2cbdc5c07f docs: add missing periods 2022-08-07 11:02:31 +02:00
Haytham Salama
58abefc326
docs(schema) : add a missing comma in example config () 2022-08-05 21:00:40 +02:00
pooya parsa
e3534bcda5
fix(nuxi, kit): enable esmResolve flag for jiti () 2022-08-04 15:22:32 +02:00
Daniel Roe
8b5159f3c0
fix(webpack): output .mjs to use crossorigin preloads () 2022-07-29 14:50:02 +02:00
pooya parsa
e6f957ab32
chore(schema): update vite config types () 2022-07-29 14:34:55 +02:00
Daniel Roe
968087bcc5
fix(schema): add typings for vite.vue options ()
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-07-29 11:57:45 +01:00
Daniel Roe
4e2667fcb7
feat(nuxt): add support for components/global ()
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2022-07-27 15:05:34 +02:00
Daniel Roe
12ebe3aeb6
fix(schema): exclude functions from DeepPartial () 2022-07-27 15:04:14 +02:00
Daniel Roe
54da45e7a1
fix(schema): add empty noscript array () 2022-07-26 15:43:26 +02:00
Victor Saa
5d023a80df
feat(nuxt, schema): add <NoScript> component and noscript typings () 2022-07-26 15:41:01 +02:00
Daniel Roe
fa8b0f7c79
feat(vite)!: upgrade vite to v3 () 2022-07-21 12:44:33 +02:00
pooya parsa
2e85cd0252
refactor(nuxt): add treeshakeClientOnly experimental flag ()
* refactor(nuxt): add `treeshakeClientOnly` experimental flag

* test: enable flag for fixture
2022-07-17 15:13:04 +02:00
Lay
b81c9c3a92
feat(schema): sync types of vite v2.9.x () 2022-07-14 16:03:18 +02:00
Daniel Roe
b5f5f7d5ba
perf(nuxt)!: remove legacy app context () 2022-07-06 21:15:00 +02:00
Daniel Roe
8c2c80e43e
feat(nuxt)!: support universal global middleware () 2022-06-27 14:10:29 +02:00
Haruaki OTAKE
ad420238b1
fix(schema, postcss): cssnano is enabled if not dev () 2022-06-23 20:27:23 +02:00
Daniel Roe
411eee3b77
fix(schema): add types for vite: hooks () 2022-06-15 13:51:58 +02:00
Daniel Roe
4fdea30cbb
fix(webpack): enable extractCSS by default () 2022-06-13 14:52:27 +02:00
Daniel Roe
11a7340883
feat(nuxt): experimental flag to use external vue dependencies () 2022-06-10 16:31:36 +02:00
webfansplz
9379606222
fix(schema, vite): resolve mode config correctly () 2022-06-03 16:09:04 +02:00
Alex Kozack
1e8fba8378
fix(schema): add missed types title, bodyAttrs, htmlAttrs ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-05-31 23:30:17 +02:00
Tobias Schulmann
ca526cfa92
docs(config): correct naming of NUXT_APP_CDN_URL environment variable () 2022-05-20 11:40:30 +02:00
chris-zhu
78d1a87d4c
docs: fix typo in environment variable ()
* chore: typo

* docs: style

Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-05-18 08:16:24 +02:00
Dominik Opyd
f0dbc951e6
docs: add missing parentheses in the alias example ()
* docs(api): improving the parentheses of the `alias` examples in`nuxt.config`

* docs: revert change

Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-05-18 08:15:38 +02:00
pooya parsa
92847ed924
feat(nuxt, kit): add shortcuts to register custom server handlers () 2022-05-06 15:31:52 +02:00
Daniel Roe
e0125f49ff
fix(schema): add back PublicRuntimeConfig interface for augmentation () 2022-05-06 15:27:42 +02:00
Anthony Fu
a862a67c80
feat(auto-import): custom include option () 2022-05-06 13:11:34 +02:00
Daniel Roe
8962cb7ef4
fix(schema): exclude vite from DeepPartial () 2022-05-03 11:56:59 +02:00
Daniel Roe
1f8e3e2f33
feat(nitro): add nitro:build:before hook ()
* fix(nitro): add back `nitro:generate` hook

* fix: use `nitro:generate` hook for vite workarounds

* fix: remove comment

* fix: only call `nitro:generate` in build mode

* rename hook to `nitro:_build`

* fix: use `nitro:build:before`

* move dev guard

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-05-02 22:15:47 +02:00
Daniel Roe
59a8d43a8f
fix(schema): decrease recursion on DeepPartial () 2022-04-29 10:50:19 +02:00
Daniel Roe
650d12fa9c
feat: allow disabling sourcemap generation () 2022-04-22 17:35:42 +02:00
pooya parsa
13a386da90
feat(nuxt): enable nuxt telemetry () 2022-04-20 20:25:09 +02:00
pooya parsa
4712e99411
refactor!: rename nuxt3 to nuxt () 2022-04-20 10:52:39 +02:00
Daniel Roe
b38dc097f6
feat(nuxt3): allow separating client and server components ()
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-04-19 21:13:55 +02:00
Daniel Roe
71b808c8e9
fix(schema): use entire object for app properties () 2022-04-19 21:12:28 +02:00
Daniel Roe
74ce29b329
docs: remove __dirname and __filename from example code ()
* docs: remove `__dirname` and `__filename` from example code

* fix: add `fileURLToPath`

* Update packages/schema/src/config/server.ts

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

* Update docs/content/2.guide/6.going-further/7.testing.md

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

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-04-19 16:46:14 +02:00
Damian
513978e15b
docs: fix and improve multiple sections () 2022-04-16 15:53:36 +02:00
Daniel Roe
ea14a5c1c1
feat(vite,webpack): build/dev typechecking () 2022-04-15 17:28:42 +02:00
Daniel Roe
e0b2a3bfe4
chore: use node: prefix for built-in modules () 2022-04-15 17:19:05 +02:00
Daniel Roe
5dae097318
docs: update webpack code examples () 2022-04-14 17:27:53 +02:00
Daniel Roe
f4fb9160c6
feat(nuxt3): allow manually enabling/disabling the ad-hoc pages module () 2022-04-13 19:18:51 +02:00
Clément Ollivier
0457125ebd
chore: update links for new sitemap () 2022-04-12 11:59:32 +02:00
pooya parsa
2c540e7870
feat: introduce simplified runtimeConfig option () 2022-04-11 16:34:23 +02:00
Daniel Roe
1091d456a8
feat(nuxt, bridge): support titleTemplate, viewport and charset for useHead () 2022-04-11 11:03:31 +02:00
pooya parsa
315e5b59e6
fix: nitropack fixes and upgrade to 0.2.x () 2022-04-08 02:05:27 +02:00
pooya parsa
9fbb9bec8d
fix: regressions from nitropack migration () 2022-04-07 14:57:57 +02:00
pooya parsa
11626eea4f
feat!: migrate to nitropack ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-04-07 13:28:04 +02:00
Andrey Mamatov
d2a814fa6a
docs(schema): update environment variable name for overriding baseURL () 2022-04-06 14:08:53 +02:00
Daniel Roe
e90b8c28d1
refactor(nuxt3,bridge)!: rename useMeta to useHead () 2022-04-05 16:02:29 +02:00
Daniel Roe
1890c55cbe
docs: add missing configuration documentation to nuxt 3 docs () 2022-04-01 15:02:26 +02:00
pooya parsa
7e6c4e2d5b
fix(schema): fix RouterConfig types () 2022-03-30 10:17:46 +02:00
Daniel Roe
c7f4e3c709
docs: update serverMiddleware to add warning on function and make example esm ()
* docs: update serverMiddleware to add warning on function and make example esm

* Update packages/schema/src/config/_common.ts

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-25 12:40:15 +01:00
Daniel Roe
23e7afb5ec
fix(bridge): replace nuxt 3 auto-imports () 2022-03-24 14:15:32 +01:00
Anthony Fu
11c460fa99
fix(vite-node): entry path and executing in production () 2022-03-24 13:35:09 +01:00
Daniel Roe
29078bba74
feat(nuxt3): support lazy and custom-resolved components () 2022-03-22 18:04:31 +01:00
Daniel Roe
acd22db576
docs: deprecate buildModules in schema () 2022-03-22 12:33:30 +01:00
Anthony Fu
f69126e8f4
feat: support reactivity transform ()
Co-authored-by: pooya parsa <pyapar@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-03-17 23:17:59 +01:00
Daniel Roe
6342e823a1
fix(webpack): support absolute urls in webpack css url/import () 2022-03-17 18:50:06 +01:00
pooya parsa
b03cdb7114
feat!(nuxt3): use individual config layers for extending () 2022-03-16 21:36:30 +01:00
pooya parsa
3f91d83a79
feat(schema): expose RouterOptions and RouterConfigOptions () 2022-03-16 19:13:05 +01:00
Raja
f38cacec0f
feat(nuxt 3): support custom router options ()
Co-authored-by: Raja Munisamy <raja.munisamy@carbar.com.au>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-03-15 17:57:41 +01:00
Daniel Roe
7bf338da8c
feat(nuxt3)!: enable using <NuxtLayout> without pages integration () 2022-03-14 11:47:24 +01:00
Sébastien Chopin
570016c143
fix(vite): improve logs for client vs server () 2022-03-14 11:19:37 +01:00
Ahad Birang
e891ea0cca
feat(webpack): add webpack:devMiddleware and webpack:hotMiddleware hooks () 2022-03-13 19:43:41 +01:00
Daniel Roe
114cbe33d0
fix(schema): set static alias correctly () 2022-03-12 08:17:55 +01:00
Anthony Fu
ac40c9746c
feat(vite): experimental vite-node support ()
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-11 09:41:27 +01:00
Daniel Roe
5d58ef48af
feat(nitro, nuxt3): allow handling otherwise unhandled runtime errors ()
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-03-11 09:22:16 +01:00
Anthony Fu
cff2f37cc8
refactor!: migrate to unimport () 2022-03-11 09:09:11 +01:00
pooya parsa
20f31712c1
feat(nuxt3): auto generate runtime config type declarations ()
Co-authored-by: Rodrigo Mesquita <rodrigoriome@gmail.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Rodrigo Mesquita <30835404+rrmesquita@users.noreply.github.com>
2022-03-09 14:41:24 +01:00
Daniel Roe
e12d2e9405
fix(kit): allow src for addPluginTemplate () 2022-03-08 18:42:46 +01:00
Daniel Roe
33ffd8be0a
fix(schema): allow untyped keys in nuxt config () 2022-03-07 11:37:01 +01:00
Daniel Roe
754ff0c9e7
feat: .nuxtignore support and isIgnored kit utility () 2022-02-28 17:11:46 +01:00
Daniel Roe
720e31d498
fix(schema): make postcss plugins a record type () 2022-02-28 12:28:16 +01:00
Daniel Roe
73ba30fb69
refactor(schema,webpack)!: split out webpack and postcss build options ()
* refactor: split out webpack and postcss build options

* feat(schema): set nuxt3 builder in config

* fix(schema): default postcss config file to false

* chore: update lockfile

* style: remove unused imports

* refactor(webpack): remove (previously disabled) babel config

* refactor: move shared vite options into schema

* fix(schema): omit __NUXT_BASE__ from defaults

* fix: move appDir-dependent options back to vite

* refactor: split out virtual modules

* refactor: extract compile/createDevMiddleware

* refactor: further improvements

* chore: remove `@nuxt/webpack-builder` dependency

* chore: update lockfile

* refactor: move `builder` option to top level

* fix: bind close to watcher instance

* chore: update lockfile

* fix: create portal between postcss & build.postcss.postcssOptions

* fix: remove duplicate

* fix: revert

* fix: use `postcss` directly

* fix: import builder from rootDir

* chore: dedupe webpack install

* test: update fixture to use `builder`

* fix: bind class in pify

Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-02-25 20:11:01 +01:00
Daniel Roe
e45a780714
fix(vite,webpack): disable async entrypoint by default ()
* fix(vite): don't use async entry

* fix: use async entry when built

* refactor: default to sync entry, with option to enable async

* refactor: move to experimental.asyncEntry

* Update packages/webpack/src/presets/base.ts

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

* Update packages/vite/src/vite.ts

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

* style: remove double space

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-02-25 13:42:34 +01:00
Xin Du (Clark)
48cc6086e4
fix(config): add analyze plugin options in bridge mode () 2022-02-21 12:25:31 +01:00
Daniel Roe
87eb7d0d39
perf!(nuxt3): disable global components by default () 2022-02-18 10:37:11 +01:00
Anthony Fu
467ab693b9
feat: shared logger and silent test logs ()
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-02-16 22:34:32 +01:00
Daniel Roe
42373e060d
fix: clean up some type issues and add type test suite () 2022-02-15 10:50:11 +01:00
pooya parsa
aece3518b5
feat(nuxt3): experimental nitropack support () 2022-02-10 18:29:59 +01:00
Daniel Roe
4b17f0cbaf
docs(schema): clarify aliases and use more obvious example path ()
* docs(schema): clarify aliases and use more obvious example path

* docs: add note

* Update packages/schema/build.config.ts

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

* docs: add more info about tsconfig

Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-02-09 22:27:35 +01:00
Daniel Roe
7825e2aa12
feat(nuxt3,bridge): add automatic schema augmentation declaration ()
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-02-08 20:09:44 +01:00
pooya parsa
790a54897a
feat!(nuxt3): extends support for components/ directory ()
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
2022-02-07 21:48:25 +01:00
pooya parsa
c9c0171b2d
refactor: rename options.layers to options._extends () 2022-02-07 19:44:48 +01:00