@dtwo/schema 3.0.0 → 3.1.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  "base": "/",
5
5
  "root": "/<rootDir>",
6
6
  "mode": "production",
7
- "logLevel": "warn",
7
+ "logLevel": "info",
8
8
  "define": {
9
9
  "process.dev": false
10
10
  },
@@ -192,7 +192,9 @@
192
192
  "noScripts": false,
193
193
  "payloadExtraction": false,
194
194
  "crossOriginPrefetch": false,
195
- "writeEarlyHints": false
195
+ "writeEarlyHints": false,
196
+ "componentIslands": false,
197
+ "configSchema": false
196
198
  },
197
199
  "generate": {
198
200
  "routes": [],
@@ -218,7 +220,6 @@
218
220
  "serverHandlers": [],
219
221
  "devServerHandlers": [],
220
222
  "postcss": {
221
- "config": false,
222
223
  "plugins": {
223
224
  "postcss-import": {},
224
225
  "postcss-url": {},
@@ -316,7 +317,7 @@
316
317
  },
317
318
  "postcss": {
318
319
  "postcssOptions": {
319
- "config": false,
320
+ "config": {},
320
321
  "plugins": {
321
322
  "postcss-import": {},
322
323
  "postcss-url": {},
package/schema/config.md CHANGED
@@ -13,6 +13,8 @@
13
13
  - **Type**: `array`
14
14
  - **Default**: `[]`
15
15
 
16
+ > An array of custom directories that will be auto-imported. Note that this option will not override the default directories (~/composables, ~/utils).
17
+
16
18
 
17
19
  # `pages`
18
20
  - **Type**: `boolean`
@@ -145,7 +147,7 @@ Dtwo will automatically guess the file type by its extension and use the appropr
145
147
  # `build`
146
148
 
147
149
  ## `transpile`
148
- - **Type**: `Array<string | RegExp | Function>`
150
+ - **Type**: `Array<string | RegExp | ((ctx: { isClient?: boolean; isServer?: boolean; isDev: boolean }) => string | RegExp | false)>`
149
151
  - **Default**: `[]`
150
152
 
151
153
  > If you want to transpile specific dependencies with Babel, you can add them here. Each item in transpile can be a package name, a function, a string or regex object matching the dependency's file name.
@@ -541,6 +543,20 @@ You can also pass a function that receives the path of a Kdu component and retur
541
543
  > Write early hints when using node server.
542
544
 
543
545
 
546
+ ## `componentIslands`
547
+ - **Type**: `boolean`
548
+ - **Default**: `false`
549
+
550
+ > Experimental component islands support with <DtwoIsland> and .island.kdu files.
551
+
552
+
553
+ ## `configSchema`
554
+ - **Type**: `boolean`
555
+ - **Default**: `false`
556
+
557
+ > Enable experimental config schema support
558
+
559
+
544
560
  # `generate`
545
561
 
546
562
  ## `routes`
@@ -551,14 +567,14 @@ You can also pass a function that receives the path of a Kdu component and retur
551
567
 
552
568
 
553
569
  If you are using the crawler, this will be only the starting point for route generation. This is often necessary when using dynamic routes.
554
- It can be an array or a function.
570
+ It is preferred to use `hole.prerender.routes`.
555
571
 
556
572
 
557
573
  ## `exclude`
558
574
  - **Type**: `array`
559
575
  - **Default**: `[]`
560
576
 
561
- > An array of string or regular expressions that will prevent generation of routes matching them. The routes will still be accessible when `fallback` is set.
577
+ > This option is no longer used. Instead, use `hole.prerender.ignore`.
562
578
 
563
579
 
564
580
  # `_majorVersion`
@@ -656,13 +672,6 @@ Each handler accepts the following options: - handler: The path to the file defi
656
672
 
657
673
  # `postcss`
658
674
 
659
- ## `config`
660
- - **Type**: `boolean`
661
- - **Default**: `false`
662
-
663
- > Path to postcss config file.
664
-
665
-
666
675
  ## `plugins`
667
676
 
668
677
  ### `postcss-import`
@@ -756,7 +765,7 @@ We recommend instead either enabling [**Take Over Mode**](https://kdu-js.web.app
756
765
 
757
766
  ## `logLevel`
758
767
  - **Type**: `string`
759
- - **Default**: `"warn"`
768
+ - **Default**: `"info"`
760
769
 
761
770
 
762
771
  ## `define`
@@ -1172,8 +1181,8 @@ Defaults to true when `extractCSS` is enabled.
1172
1181
  ### `postcssOptions`
1173
1182
 
1174
1183
  #### `config`
1175
- - **Type**: `boolean`
1176
- - **Default**: `false`
1184
+ - **Type**: `any`
1185
+ - **Default**: `{}`
1177
1186
 
1178
1187
 
1179
1188
  #### `plugins`