@nuxt/webpack-builder 3.20.2 → 3.21.1

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.
Files changed (33) hide show
  1. package/README.md +5 -3
  2. package/dist/THIRD-PARTY-LICENSES.md +3847 -0
  3. package/dist/_chunks/libs/@babel/parser.d.mts +1536 -0
  4. package/dist/_chunks/libs/@jridgewell/trace-mapping.d.mts +82 -0
  5. package/dist/_chunks/libs/@types/estree.d.mts +525 -0
  6. package/dist/_chunks/libs/@types/pug.d.mts +123 -0
  7. package/dist/_chunks/libs/@unhead/vue.d.mts +1096 -0
  8. package/dist/_chunks/libs/@vitejs/plugin-vue-jsx.d.mts +5297 -0
  9. package/dist/_chunks/libs/@vitejs/plugin-vue.d.mts +83 -0
  10. package/dist/_chunks/libs/@volar/language-core.d.mts +56 -0
  11. package/dist/_chunks/libs/@volar/source-map.d.mts +10 -0
  12. package/dist/_chunks/libs/@vue/compiler-core.d.mts +1213 -0
  13. package/dist/_chunks/libs/@vue/compiler-dom.d.mts +45 -0
  14. package/dist/_chunks/libs/@vue/language-core.d.mts +11387 -0
  15. package/dist/_chunks/libs/c12.d.mts +147 -0
  16. package/dist/_chunks/libs/compatx.d.mts +47 -0
  17. package/dist/_chunks/libs/h3.d.mts +45 -0
  18. package/dist/_chunks/libs/ofetch.d.mts +870 -0
  19. package/dist/_chunks/libs/open.d.mts +1 -0
  20. package/dist/_chunks/libs/oxc-transform.d.mts +422 -0
  21. package/dist/_chunks/libs/pkg-types.d.mts +23 -0
  22. package/dist/_chunks/libs/rollup-plugin-visualizer.d.mts +90 -0
  23. package/dist/_chunks/libs/scule.d.mts +15 -0
  24. package/dist/_chunks/libs/unctx.d.mts +28 -0
  25. package/dist/_chunks/libs/unimport.d.mts +386 -0
  26. package/dist/_chunks/libs/untyped.d.mts +44 -0
  27. package/dist/_chunks/libs/vue-router.d.mts +1413 -0
  28. package/dist/_chunks/rolldown-runtime.mjs +12 -0
  29. package/dist/index.d.mts +3150 -4
  30. package/dist/index.mjs +1310 -1155
  31. package/dist/loaders/vue-module-identifier.mjs +11 -0
  32. package/package.json +31 -27
  33. package/dist/index.d.ts +0 -5
@@ -0,0 +1,83 @@
1
+ import * as _compiler from "vue/compiler-sfc";
2
+ import { SFCScriptCompileOptions, SFCStyleCompileOptions, SFCTemplateCompileOptions } from "vue/compiler-sfc";
3
+
4
+ //#region ../../node_modules/.pnpm/@vitejs+plugin-vue@6.0.4_vite@7.3.1_@types+node@24.10.11_jiti@2.6.1_terser@5.44.1_yaml@_ac9e2a922bb63677ceeba3834af69115/node_modules/@vitejs/plugin-vue/dist/index.d.mts
5
+ //#endregion
6
+ //#region src/index.d.ts
7
+ interface Options {
8
+ include?: string | RegExp | (string | RegExp)[];
9
+ exclude?: string | RegExp | (string | RegExp)[];
10
+ /**
11
+ * In Vite, this option follows Vite's config.
12
+ */
13
+ isProduction?: boolean;
14
+ script?: Partial<Omit<SFCScriptCompileOptions, 'id' | 'isProd' | 'inlineTemplate' | 'templateOptions' | 'sourceMap' | 'genDefaultAs' | 'customElement' | 'defineModel' | 'propsDestructure'>> & {
15
+ /**
16
+ * @deprecated defineModel is now a stable feature and always enabled if
17
+ * using Vue 3.4 or above.
18
+ */
19
+ defineModel?: boolean;
20
+ /**
21
+ * @deprecated moved to `features.propsDestructure`.
22
+ */
23
+ propsDestructure?: boolean;
24
+ };
25
+ template?: Partial<Omit<SFCTemplateCompileOptions, 'id' | 'source' | 'ast' | 'filename' | 'scoped' | 'slotted' | 'isProd' | 'inMap' | 'ssr' | 'ssrCssVars' | 'preprocessLang'>>;
26
+ style?: Partial<Omit<SFCStyleCompileOptions, 'filename' | 'id' | 'isProd' | 'source' | 'scoped' | 'cssDevSourcemap' | 'postcssOptions' | 'map' | 'postcssPlugins' | 'preprocessCustomRequire' | 'preprocessLang' | 'preprocessOptions'>>;
27
+ /**
28
+ * Use custom compiler-sfc instance. Can be used to force a specific version.
29
+ */
30
+ compiler?: typeof _compiler;
31
+ /**
32
+ * Requires @vitejs/plugin-vue@^5.1.0
33
+ */
34
+ features?: {
35
+ /**
36
+ * Enable reactive destructure for `defineProps`.
37
+ * - Available in Vue 3.4 and later.
38
+ * - **default:** `false` in Vue 3.4 (**experimental**), `true` in Vue 3.5+
39
+ */
40
+ propsDestructure?: boolean;
41
+ /**
42
+ * Transform Vue SFCs into custom elements.
43
+ * - `true`: all `*.vue` imports are converted into custom elements
44
+ * - `string | RegExp`: matched files are converted into custom elements
45
+ * - **default:** /\.ce\.vue$/
46
+ */
47
+ customElement?: boolean | string | RegExp | (string | RegExp)[];
48
+ /**
49
+ * Set to `false` to disable Options API support and allow related code in
50
+ * Vue core to be dropped via dead-code elimination in production builds,
51
+ * resulting in smaller bundles.
52
+ * - **default:** `true`
53
+ */
54
+ optionsAPI?: boolean;
55
+ /**
56
+ * Set to `true` to enable devtools support in production builds.
57
+ * Results in slightly larger bundles.
58
+ * - **default:** `false`
59
+ */
60
+ prodDevtools?: boolean;
61
+ /**
62
+ * Set to `true` to enable detailed information for hydration mismatch
63
+ * errors in production builds. Results in slightly larger bundles.
64
+ * - **default:** `false`
65
+ */
66
+ prodHydrationMismatchDetails?: boolean;
67
+ /**
68
+ * Customize the component ID generation strategy.
69
+ * - `'filepath'`: hash the file path (relative to the project root)
70
+ * - `'filepath-source'`: hash the file path and the source code
71
+ * - `function`: custom function that takes the file path, source code,
72
+ * whether in production mode, and the default hash function as arguments
73
+ * - **default:** `'filepath'` in development, `'filepath-source'` in production
74
+ */
75
+ componentIdGenerator?: 'filepath' | 'filepath-source' | ((filepath: string, source: string, isProduction: boolean | undefined, getHash: (text: string) => string) => string);
76
+ };
77
+ /**
78
+ * @deprecated moved to `features.customElement`.
79
+ */
80
+ customElement?: boolean | string | RegExp | (string | RegExp)[];
81
+ }
82
+ //#endregion
83
+ export { Options as t };
@@ -0,0 +1,56 @@
1
+ //#region ../../node_modules/.pnpm/@volar+language-core@2.4.27/node_modules/@volar/language-core/lib/types.d.ts
2
+ /**
3
+ * CodeInformation is a configuration object attached to each CodeMapping (between source code and generated code,
4
+ * e.g. between the template code in a .vue file and the type-checkable TS code generated from it) that
5
+ * determines what code/language features are expected to be available for the mapping.
6
+ *
7
+ * Due to the dynamic nature of code generation and the fact that, for example, things like Code Actions
8
+ * and auto-complete shouldn't be triggerable on certain "in-between" regions of generated code, we need
9
+ * a way to shut off certain features in certain regions, while leaving them enabled in others.
10
+ */
11
+ interface CodeInformation {
12
+ /** virtual code is expected to support verification, where verification includes:
13
+ *
14
+ * - diagnostics (syntactic, semantic, and others, such as those generated by the TypeScript language service on generated TS code)
15
+ * - code actions (refactorings, quick fixes,etc.)
16
+ */
17
+ verification?: boolean | {
18
+ /**
19
+ * when present, `shouldReport` callback is invoked to determine whether a diagnostic
20
+ * raised in the generated code should be propagated back to the original source code.
21
+ * Note that when this callback is present, diagnostic processing (e.g. typechecking) will
22
+ * still be performed, but the results will not be reported back to the original source code. */
23
+ shouldReport?(source: string | undefined, code: string | number | undefined): boolean;
24
+ };
25
+ /** virtual code is expected to support assisted completion */
26
+ completion?: boolean | {
27
+ isAdditional?: boolean;
28
+ onlyImport?: boolean;
29
+ };
30
+ /** virtual code is expected correctly reflect semantic of the source code. Specifically this controls the following langauge features:
31
+ *
32
+ * - hover
33
+ * - inlay hints
34
+ * - code lens
35
+ * - semantic tokens
36
+ * - others
37
+ *
38
+ * Note that semantic diagnostics (e.g. TS type-checking) are covered by the `verification` property above.
39
+ */
40
+ semantic?: boolean | {
41
+ shouldHighlight?(): boolean;
42
+ };
43
+ /** virtual code is expected correctly reflect reference relationships of the source code */
44
+ navigation?: boolean | {
45
+ shouldHighlight?(): boolean;
46
+ shouldRename?(): boolean;
47
+ resolveRenameNewName?(newName: string): string;
48
+ resolveRenameEditText?(newText: string): string;
49
+ };
50
+ /** virtual code is expected correctly reflect the structural information of the source code */
51
+ structure?: boolean;
52
+ /** virtual code is expected correctly reflect the format information of the source code */
53
+ format?: boolean;
54
+ }
55
+ //#endregion
56
+ export { CodeInformation as t };
@@ -0,0 +1,10 @@
1
+ //#region ../../node_modules/.pnpm/@volar+source-map@2.4.27/node_modules/@volar/source-map/lib/sourceMap.d.ts
2
+ interface Mapping<Data = unknown> {
3
+ sourceOffsets: number[];
4
+ generatedOffsets: number[];
5
+ lengths: number[];
6
+ generatedLengths?: number[];
7
+ data: Data;
8
+ }
9
+ //#endregion
10
+ export { Mapping as t };