@visulima/packem 2.0.0-alpha.63 → 2.0.0-alpha.65

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 (92) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +1 -20
  3. package/dist/builder/typedoc/index.d.ts +13 -3
  4. package/dist/builder/typedoc/index.js +1 -1
  5. package/dist/cli/index.js +23 -26
  6. package/dist/config/index.d.ts +56 -46
  7. package/dist/config/preset/preact.d.ts +29 -17
  8. package/dist/config/preset/react.d.ts +67 -55
  9. package/dist/config/preset/solid.d.ts +107 -95
  10. package/dist/config/preset/svelte.d.ts +79 -67
  11. package/dist/config/preset/vue.d.ts +61 -49
  12. package/dist/index.d.ts +56 -46
  13. package/dist/index.js +1 -1
  14. package/dist/packem_shared/create-or-update-key-storage-Ddq46eG8.js +1 -0
  15. package/dist/packem_shared/index-s7nugSmV.js +88 -0
  16. package/dist/packem_shared/types.d-fhksMqKN.d.ts +452 -0
  17. package/dist/rollup/plugins/css/loaders/less.d.ts +1 -1
  18. package/dist/rollup/plugins/css/loaders/lightningcss.d.ts +1 -1
  19. package/dist/rollup/plugins/css/loaders/postcss.d.ts +1 -1
  20. package/dist/rollup/plugins/css/loaders/sass.d.ts +1 -1
  21. package/dist/rollup/plugins/css/loaders/sourcemap.d.ts +1 -1
  22. package/dist/rollup/plugins/css/loaders/stylus.d.ts +1 -1
  23. package/dist/rollup/plugins/css/loaders/tailwindcss.d.ts +1 -1
  24. package/dist/rollup/plugins/css/minifiers/cssnano.d.ts +1 -1
  25. package/dist/rollup/plugins/css/minifiers/lightningcss.d.ts +1 -1
  26. package/dist/rollup/plugins/esbuild/index.d.ts +1 -2
  27. package/dist/rollup/plugins/oxc/oxc-transformer.d.ts +1 -2
  28. package/dist/rollup/plugins/sucrase/index.d.ts +1 -2
  29. package/dist/rollup/plugins/swc/swc-plugin.d.ts +1 -2
  30. package/package.json +16 -32
  31. package/dist/builder/typedoc/generate-reference-documentation.d.ts +0 -4
  32. package/dist/cli/commands/add.d.ts +0 -4
  33. package/dist/cli/commands/build.d.ts +0 -21
  34. package/dist/cli/commands/init.d.ts +0 -3
  35. package/dist/cli/commands/migrate.d.ts +0 -21
  36. package/dist/cli/commands/utils/css-loader-dependencies.d.ts +0 -2
  37. package/dist/cli/index.d.ts +0 -1
  38. package/dist/config/preset/auto.d.ts +0 -3
  39. package/dist/config/preset/utils/infer-entries.d.ts +0 -12
  40. package/dist/config/preset/utils/overwrite-with-publish-config.d.ts +0 -4
  41. package/dist/config/utils/find-packem-file.d.ts +0 -2
  42. package/dist/config/utils/load-env-file.d.ts +0 -15
  43. package/dist/config/utils/load-package-json.d.ts +0 -6
  44. package/dist/config/utils/load-packem-config.d.ts +0 -7
  45. package/dist/config/utils/load-preset.d.ts +0 -4
  46. package/dist/config/utils/load-tsconfig.d.ts +0 -5
  47. package/dist/config/utils/prepare-entries.d.ts +0 -4
  48. package/dist/jit/create-stub.d.ts +0 -4
  49. package/dist/lib/concurrency.d.ts +0 -6
  50. package/dist/packem/build.d.ts +0 -21
  51. package/dist/packem/index.d.ts +0 -24
  52. package/dist/packem/node10-compatibility.d.ts +0 -7
  53. package/dist/packem/utils/brotli-size.d.ts +0 -2
  54. package/dist/packem/utils/group-by-keys.d.ts +0 -12
  55. package/dist/packem/utils/gzip-size.d.ts +0 -2
  56. package/dist/packem_shared/create-or-update-key-storage-U4wgANkm.js +0 -1
  57. package/dist/packem_shared/index-D76f4ee8.js +0 -83
  58. package/dist/rollup/build-types.d.ts +0 -5
  59. package/dist/rollup/build.d.ts +0 -5
  60. package/dist/rollup/get-rollup-options.d.ts +0 -5
  61. package/dist/rollup/plugins/externalize-dependencies.d.ts +0 -28
  62. package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.ts +0 -1
  63. package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.js +0 -1
  64. package/dist/rollup/plugins/resolve-externals-plugin.d.ts +0 -62
  65. package/dist/rollup/plugins/resolve-implicit-externals.d.ts +0 -21
  66. package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.ts +0 -1
  67. package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.js +0 -1
  68. package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.ts +0 -1
  69. package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.js +0 -1
  70. package/dist/rollup/utils/resolve-aliases.d.ts +0 -4
  71. package/dist/rollup/watch.d.ts +0 -5
  72. package/dist/types.d.ts +0 -335
  73. package/dist/utils/clean-distribution-directories.d.ts +0 -4
  74. package/dist/utils/create-defu-with-hooks-merger.d.ts +0 -14
  75. package/dist/utils/create-or-update-key-storage.d.ts +0 -3
  76. package/dist/utils/extract-export-filenames.d.ts +0 -16
  77. package/dist/utils/find-alternatives.d.ts +0 -2
  78. package/dist/utils/get-package-side-effect.d.ts +0 -3
  79. package/dist/utils/import-specifier.d.ts +0 -20
  80. package/dist/utils/infer-export-type.d.ts +0 -3
  81. package/dist/utils/kill-process.d.ts +0 -14
  82. package/dist/utils/log-build-errors.d.ts +0 -4
  83. package/dist/utils/remove-old-cache-folders.d.ts +0 -3
  84. package/dist/utils/warn-legacy-cjs.d.ts +0 -8
  85. package/dist/validator/attw.d.ts +0 -7
  86. package/dist/validator/package-json/index.d.ts +0 -4
  87. package/dist/validator/package-json/validate-dependencies.d.ts +0 -4
  88. package/dist/validator/package-json/validate-engines.d.ts +0 -4
  89. package/dist/validator/package-json/validate-package-entries.d.ts +0 -4
  90. package/dist/validator/package-json/validate-package-fields.d.ts +0 -4
  91. package/dist/validator/validate-alias-entries.d.ts +0 -3
  92. package/dist/validator/validate-bundle-size.d.ts +0 -4
@@ -1,59 +1,71 @@
1
- import type { BabelPluginConfig } from "@visulima/packem-rollup/babel";
2
- import type { BuildConfig } from "../../types.d.ts";
3
- export interface ReactPresetOptions {
1
+ import { BabelPluginConfig } from '@visulima/packem-rollup/babel';
2
+ import { B as BuildConfig } from "../../packem_shared/types.d-fhksMqKN.js";
3
+ import '@arethetypeswrong/core';
4
+ import '@visulima/packem-rollup';
5
+ import '@visulima/packem-rollup/oxc';
6
+ import '@visulima/packem-rollup/plugin/native-modules';
7
+ import '@visulima/packem-share/types';
8
+ import '@visulima/packem-share/utils';
9
+ import '@visulima/rollup-plugin-css';
10
+ import 'jiti';
11
+ import 'rollup';
12
+ import 'typedoc';
13
+ import '@visulima/pail';
14
+ interface ReactPresetOptions {
15
+ /**
16
+ * Enable React Compiler optimization
17
+ * @default false
18
+ */
19
+ compiler?: boolean | {
4
20
  /**
5
- * Enable React Compiler optimization
6
- * @default false
7
- */
8
- compiler?: boolean | {
9
- /**
10
- * React Compiler compilation mode
11
- * @default "infer"
12
- */
13
- compilationMode?: "infer" | "annotation";
14
- /**
15
- * React Compiler panic threshold
16
- * @default "critical_errors"
17
- */
18
- panicThreshold?: "critical_errors" | "all_errors";
19
- };
21
+ * React Compiler compilation mode
22
+ * @default "infer"
23
+ */
24
+ compilationMode?: "infer" | "annotation";
20
25
  /**
21
- * Custom Babel plugins to add
22
- */
23
- plugins?: BabelPluginConfig["plugins"];
24
- /**
25
- * Custom Babel presets to add
26
- */
27
- presets?: BabelPluginConfig["presets"];
26
+ * React Compiler panic threshold
27
+ * @default "critical_errors"
28
+ */
29
+ panicThreshold?: "critical_errors" | "all_errors";
30
+ };
31
+ /**
32
+ * Custom Babel plugins to add
33
+ */
34
+ plugins?: BabelPluginConfig["plugins"];
35
+ /**
36
+ * Custom Babel presets to add
37
+ */
38
+ presets?: BabelPluginConfig["presets"];
28
39
  }
29
40
  /**
30
- * React preset for Packem. Configures Babel with React presets and optionally React Compiler.
31
- * @description This preset configures Babel to run before your main transformer (esbuild/SWC/etc.).
32
- * Babel handles JSX transformation, while TypeScript is handled by the transformer via parser plugins.
33
- * This matches the approach used by @vitejs/plugin-react.
34
- * @example
35
- * ```typescript
36
- * // Basic usage
37
- * export default defineConfig({
38
- * preset: "react"
39
- * });
40
- *
41
- * // With React Compiler
42
- * import { createReactPreset } from "@visulima/packem/config/preset/react";
43
- * export default defineConfig({
44
- * preset: createReactPreset({
45
- * compiler: true
46
- * })
47
- * });
48
- *
49
- * // With custom options
50
- * export default defineConfig({
51
- * preset: createReactPreset({
52
- * compiler: {
53
- * compilationMode: "annotation"
54
- * }
55
- * })
56
- * });
57
- * ```
58
- */
59
- export declare const createReactPreset: (options?: ReactPresetOptions) => BuildConfig;
41
+ * React preset for Packem. Configures Babel with React presets and optionally React Compiler.
42
+ * @description This preset configures Babel to run before your main transformer (esbuild/SWC/etc.).
43
+ * Babel handles JSX transformation, while TypeScript is handled by the transformer via parser plugins.
44
+ * This matches the approach used by @vitejs/plugin-react.
45
+ * @example
46
+ * ```typescript
47
+ * // Basic usage
48
+ * export default defineConfig({
49
+ * preset: "react"
50
+ * });
51
+ *
52
+ * // With React Compiler
53
+ * import { createReactPreset } from "@visulima/packem/config/preset/react";
54
+ * export default defineConfig({
55
+ * preset: createReactPreset({
56
+ * compiler: true
57
+ * })
58
+ * });
59
+ *
60
+ * // With custom options
61
+ * export default defineConfig({
62
+ * preset: createReactPreset({
63
+ * compiler: {
64
+ * compilationMode: "annotation"
65
+ * }
66
+ * })
67
+ * });
68
+ * ```
69
+ */
70
+ declare const createReactPreset: (options?: ReactPresetOptions) => BuildConfig;
71
+ export { ReactPresetOptions, createReactPreset };
@@ -1,101 +1,113 @@
1
- import type { BabelPluginConfig } from "@visulima/packem-rollup/babel";
2
- import type { BuildConfig } from "../../types.d.ts";
3
- export interface SolidPresetOptions {
1
+ import { BabelPluginConfig } from '@visulima/packem-rollup/babel';
2
+ import { B as BuildConfig } from "../../packem_shared/types.d-fhksMqKN.js";
3
+ import '@arethetypeswrong/core';
4
+ import '@visulima/packem-rollup';
5
+ import '@visulima/packem-rollup/oxc';
6
+ import '@visulima/packem-rollup/plugin/native-modules';
7
+ import '@visulima/packem-share/types';
8
+ import '@visulima/packem-share/utils';
9
+ import '@visulima/rollup-plugin-css';
10
+ import 'jiti';
11
+ import 'rollup';
12
+ import 'typedoc';
13
+ import '@visulima/pail';
14
+ interface SolidPresetOptions {
15
+ /**
16
+ * Pass any additional babel transform options. They will be merged with
17
+ * the transformations required by Solid.
18
+ */
19
+ babel?: BabelPluginConfig | ((source: string, id: string) => BabelPluginConfig | Promise<BabelPluginConfig>);
20
+ /**
21
+ * Custom Babel plugins to add
22
+ */
23
+ plugins?: BabelPluginConfig["plugins"];
24
+ /**
25
+ * Custom Babel presets to add
26
+ */
27
+ presets?: BabelPluginConfig["presets"];
28
+ /**
29
+ * SolidJS-specific options for babel-preset-solid
30
+ */
31
+ solidOptions?: {
4
32
  /**
5
- * Pass any additional babel transform options. They will be merged with
6
- * the transformations required by Solid.
7
- */
8
- babel?: BabelPluginConfig | ((source: string, id: string) => BabelPluginConfig | Promise<BabelPluginConfig>);
33
+ * Array of Component exports from module, that aren't included by default with the library.
34
+ * This plugin will automatically import them if it comes across them in the JSX.
35
+ * @default ["For","Show","Switch","Match","Suspense","SuspenseList","Portal","Index","Dynamic","ErrorBoundary"]
36
+ */
37
+ builtIns?: string[];
9
38
  /**
10
- * Custom Babel plugins to add
11
- */
12
- plugins?: BabelPluginConfig["plugins"];
39
+ * Boolean indicates whether to set current render context on Custom Elements and slots.
40
+ * Useful for seemless Context API with Web Components.
41
+ * @default true
42
+ */
43
+ contextToCustomElements?: boolean;
13
44
  /**
14
- * Custom Babel presets to add
15
- */
16
- presets?: BabelPluginConfig["presets"];
45
+ * Boolean to indicate whether to enable automatic event delegation on camelCase.
46
+ * @default true
47
+ */
48
+ delegateEvents?: boolean;
17
49
  /**
18
- * SolidJS-specific options for babel-preset-solid
19
- */
20
- solidOptions?: {
21
- /**
22
- * Array of Component exports from module, that aren't included by default with the library.
23
- * This plugin will automatically import them if it comes across them in the JSX.
24
- * @default ["For","Show","Switch","Match","Suspense","SuspenseList","Portal","Index","Dynamic","ErrorBoundary"]
25
- */
26
- builtIns?: string[];
27
- /**
28
- * Boolean indicates whether to set current render context on Custom Elements and slots.
29
- * Useful for seemless Context API with Web Components.
30
- * @default true
31
- */
32
- contextToCustomElements?: boolean;
33
- /**
34
- * Boolean to indicate whether to enable automatic event delegation on camelCase.
35
- * @default true
36
- */
37
- delegateEvents?: boolean;
38
- /**
39
- * The output mode of the compiler.
40
- * Can be:
41
- * - "dom" is standard output
42
- * - "ssr" is for server side rendering of strings.
43
- * - "universal" is for using custom renderers from solid-js/universal
44
- * @default "dom"
45
- */
46
- generate?: "ssr" | "dom" | "universal";
47
- /**
48
- * Indicate whether the output should contain hydratable markers.
49
- * @default false
50
- */
51
- hydratable?: boolean;
52
- /**
53
- * The name of the runtime module to import the methods from.
54
- * @default "solid-js/web"
55
- */
56
- moduleName?: string;
57
- /**
58
- * Boolean indicates whether smart conditional detection should be used.
59
- * This optimizes simple boolean expressions and ternaries in JSX.
60
- * @default true
61
- */
62
- wrapConditionals?: boolean;
63
- };
50
+ * The output mode of the compiler.
51
+ * Can be:
52
+ * - "dom" is standard output
53
+ * - "ssr" is for server side rendering of strings.
54
+ * - "universal" is for using custom renderers from solid-js/universal
55
+ * @default "dom"
56
+ */
57
+ generate?: "ssr" | "dom" | "universal";
58
+ /**
59
+ * Indicate whether the output should contain hydratable markers.
60
+ * @default false
61
+ */
62
+ hydratable?: boolean;
63
+ /**
64
+ * The name of the runtime module to import the methods from.
65
+ * @default "solid-js/web"
66
+ */
67
+ moduleName?: string;
68
+ /**
69
+ * Boolean indicates whether smart conditional detection should be used.
70
+ * This optimizes simple boolean expressions and ternaries in JSX.
71
+ * @default true
72
+ */
73
+ wrapConditionals?: boolean;
74
+ };
64
75
  }
65
76
  /**
66
- * SolidJS preset for Packem. Configures Babel with babel-preset-solid.
67
- * @description This preset configures Babel to run before your main transformer (esbuild/SWC/etc.).
68
- * Babel handles JSX transformation for SolidJS using babel-preset-solid. TypeScript is handled
69
- * automatically via parser plugins based on file extensions (no preset needed).
70
- * @example
71
- * ```typescript
72
- * // Basic usage
73
- * export default defineConfig({
74
- * preset: "solid"
75
- * });
76
- *
77
- * // With custom Solid options
78
- * import { createSolidPreset } from "@visulima/packem/config/preset/solid";
79
- * export default defineConfig({
80
- * preset: createSolidPreset({
81
- * solidOptions: {
82
- * generate: "ssr",
83
- * hydratable: true
84
- * }
85
- * })
86
- * });
87
- *
88
- * // With custom Babel options
89
- * export default defineConfig({
90
- * preset: createSolidPreset({
91
- * solidOptions: {
92
- * moduleName: "solid-js/web"
93
- * },
94
- * babel: {
95
- * // Additional babel options
96
- * }
97
- * })
98
- * });
99
- * ```
100
- */
101
- export declare const createSolidPreset: (options?: SolidPresetOptions) => BuildConfig;
77
+ * SolidJS preset for Packem. Configures Babel with babel-preset-solid.
78
+ * @description This preset configures Babel to run before your main transformer (esbuild/SWC/etc.).
79
+ * Babel handles JSX transformation for SolidJS using babel-preset-solid. TypeScript is handled
80
+ * automatically via parser plugins based on file extensions (no preset needed).
81
+ * @example
82
+ * ```typescript
83
+ * // Basic usage
84
+ * export default defineConfig({
85
+ * preset: "solid"
86
+ * });
87
+ *
88
+ * // With custom Solid options
89
+ * import { createSolidPreset } from "@visulima/packem/config/preset/solid";
90
+ * export default defineConfig({
91
+ * preset: createSolidPreset({
92
+ * solidOptions: {
93
+ * generate: "ssr",
94
+ * hydratable: true
95
+ * }
96
+ * })
97
+ * });
98
+ *
99
+ * // With custom Babel options
100
+ * export default defineConfig({
101
+ * preset: createSolidPreset({
102
+ * solidOptions: {
103
+ * moduleName: "solid-js/web"
104
+ * },
105
+ * babel: {
106
+ * // Additional babel options
107
+ * }
108
+ * })
109
+ * });
110
+ * ```
111
+ */
112
+ declare const createSolidPreset: (options?: SolidPresetOptions) => BuildConfig;
113
+ export { SolidPresetOptions, createSolidPreset };
@@ -1,71 +1,83 @@
1
- import type { BuildConfig } from "../../types.d.ts";
2
- export interface SveltePresetOptions {
1
+ import { B as BuildConfig } from "../../packem_shared/types.d-fhksMqKN.js";
2
+ import '@arethetypeswrong/core';
3
+ import '@visulima/packem-rollup';
4
+ import '@visulima/packem-rollup/oxc';
5
+ import '@visulima/packem-rollup/plugin/native-modules';
6
+ import '@visulima/packem-share/types';
7
+ import '@visulima/packem-share/utils';
8
+ import '@visulima/rollup-plugin-css';
9
+ import 'jiti';
10
+ import 'rollup';
11
+ import 'typedoc';
12
+ import '@visulima/pail';
13
+ interface SveltePresetOptions {
14
+ /**
15
+ * Svelte plugin options
16
+ */
17
+ pluginOptions?: {
3
18
  /**
4
- * Svelte plugin options
5
- */
6
- pluginOptions?: {
7
- /**
8
- * Svelte compiler options
9
- */
10
- compilerOptions?: {
11
- [key: string]: unknown;
12
- /**
13
- * Custom element mode
14
- * @default false
15
- */
16
- customElement?: boolean;
17
- /**
18
- * Enable dev mode
19
- * @default false
20
- */
21
- dev?: boolean;
22
- /**
23
- * Generate mode: "client" for client-side rendering, "server" for SSR
24
- * @default "client"
25
- */
26
- generate?: "client" | "server" | false;
27
- /**
28
- * Enable hydratable output
29
- * @default false
30
- */
31
- hydratable?: boolean;
32
- };
33
- /**
34
- * Exclude patterns for Svelte files
35
- */
36
- exclude?: RegExp | RegExp[];
37
- /**
38
- * Include patterns for Svelte files
39
- * @default [/\.svelte$/]
40
- */
41
- include?: RegExp | RegExp[];
42
- /**
43
- * Preprocessor options
44
- */
45
- preprocess?: unknown;
19
+ * Svelte compiler options
20
+ */
21
+ compilerOptions?: {
22
+ [key: string]: unknown;
23
+ /**
24
+ * Custom element mode
25
+ * @default false
26
+ */
27
+ customElement?: boolean;
28
+ /**
29
+ * Enable dev mode
30
+ * @default false
31
+ */
32
+ dev?: boolean;
33
+ /**
34
+ * Generate mode: "client" for client-side rendering, "server" for SSR
35
+ * @default "client"
36
+ */
37
+ generate?: "client" | "server" | false;
38
+ /**
39
+ * Enable hydratable output
40
+ * @default false
41
+ */
42
+ hydratable?: boolean;
46
43
  };
44
+ /**
45
+ * Exclude patterns for Svelte files
46
+ */
47
+ exclude?: RegExp | RegExp[];
48
+ /**
49
+ * Include patterns for Svelte files
50
+ * @default [/\.svelte$/]
51
+ */
52
+ include?: RegExp | RegExp[];
53
+ /**
54
+ * Preprocessor options
55
+ */
56
+ preprocess?: unknown;
57
+ };
47
58
  }
48
59
  /**
49
- * Svelte preset for Packem. Configures Rollup with rollup-plugin-svelte.
50
- * @description This preset configures the Svelte plugin to handle .svelte file compilation.
51
- * @example
52
- * ```typescript
53
- * // Basic usage
54
- * export default defineConfig({
55
- * preset: "svelte"
56
- * });
57
- *
58
- * // With custom options
59
- * import { createSveltePreset } from "@visulima/packem/config/preset/svelte";
60
- * export default defineConfig({
61
- * preset: createSveltePreset({
62
- * pluginOptions: {
63
- * compilerOptions: {
64
- * hydratable: true
65
- * }
66
- * }
67
- * })
68
- * });
69
- * ```
70
- */
71
- export declare const createSveltePreset: (options?: SveltePresetOptions) => BuildConfig;
60
+ * Svelte preset for Packem. Configures Rollup with rollup-plugin-svelte.
61
+ * @description This preset configures the Svelte plugin to handle .svelte file compilation.
62
+ * @example
63
+ * ```typescript
64
+ * // Basic usage
65
+ * export default defineConfig({
66
+ * preset: "svelte"
67
+ * });
68
+ *
69
+ * // With custom options
70
+ * import { createSveltePreset } from "@visulima/packem/config/preset/svelte";
71
+ * export default defineConfig({
72
+ * preset: createSveltePreset({
73
+ * pluginOptions: {
74
+ * compilerOptions: {
75
+ * hydratable: true
76
+ * }
77
+ * }
78
+ * })
79
+ * });
80
+ * ```
81
+ */
82
+ declare const createSveltePreset: (options?: SveltePresetOptions) => BuildConfig;
83
+ export { SveltePresetOptions, createSveltePreset };
@@ -1,53 +1,65 @@
1
- import type { BuildConfig } from "../../types.d.ts";
2
- export interface VuePresetOptions {
1
+ import { B as BuildConfig } from "../../packem_shared/types.d-fhksMqKN.js";
2
+ import '@arethetypeswrong/core';
3
+ import '@visulima/packem-rollup';
4
+ import '@visulima/packem-rollup/oxc';
5
+ import '@visulima/packem-rollup/plugin/native-modules';
6
+ import '@visulima/packem-share/types';
7
+ import '@visulima/packem-share/utils';
8
+ import '@visulima/rollup-plugin-css';
9
+ import 'jiti';
10
+ import 'rollup';
11
+ import 'typedoc';
12
+ import '@visulima/pail';
13
+ interface VuePresetOptions {
14
+ /**
15
+ * Vue plugin options
16
+ */
17
+ pluginOptions?: {
3
18
  /**
4
- * Vue plugin options
5
- */
6
- pluginOptions?: {
7
- /**
8
- * Enable custom elements mode
9
- * @default false
10
- */
11
- customElement?: boolean;
12
- /**
13
- * Exclude patterns for Vue files
14
- */
15
- exclude?: RegExp | RegExp[];
16
- /**
17
- * Include patterns for Vue files
18
- * @default [/\.vue$/]
19
- */
20
- include?: RegExp | RegExp[];
21
- /**
22
- * Template compiler options
23
- */
24
- template?: {
25
- compilerOptions?: {
26
- [key: string]: unknown;
27
- isCustomElement?: (tag: string) => boolean;
28
- };
29
- };
19
+ * Enable custom elements mode
20
+ * @default false
21
+ */
22
+ customElement?: boolean;
23
+ /**
24
+ * Exclude patterns for Vue files
25
+ */
26
+ exclude?: RegExp | RegExp[];
27
+ /**
28
+ * Include patterns for Vue files
29
+ * @default [/\.vue$/]
30
+ */
31
+ include?: RegExp | RegExp[];
32
+ /**
33
+ * Template compiler options
34
+ */
35
+ template?: {
36
+ compilerOptions?: {
37
+ [key: string]: unknown;
38
+ isCustomElement?: (tag: string) => boolean;
39
+ };
30
40
  };
41
+ };
31
42
  }
32
43
  /**
33
- * Vue preset for Packem. Configures Rollup with unplugin-vue.
34
- * @description This preset configures the Vue plugin to handle .vue file compilation.
35
- * @example
36
- * ```typescript
37
- * // Basic usage
38
- * export default defineConfig({
39
- * preset: "vue"
40
- * });
41
- *
42
- * // With custom options
43
- * import { createVuePreset } from "@visulima/packem/config/preset/vue";
44
- * export default defineConfig({
45
- * preset: createVuePreset({
46
- * pluginOptions: {
47
- * customElement: true
48
- * }
49
- * })
50
- * });
51
- * ```
52
- */
53
- export declare const createVuePreset: (options?: VuePresetOptions) => BuildConfig;
44
+ * Vue preset for Packem. Configures Rollup with unplugin-vue.
45
+ * @description This preset configures the Vue plugin to handle .vue file compilation.
46
+ * @example
47
+ * ```typescript
48
+ * // Basic usage
49
+ * export default defineConfig({
50
+ * preset: "vue"
51
+ * });
52
+ *
53
+ * // With custom options
54
+ * import { createVuePreset } from "@visulima/packem/config/preset/vue";
55
+ * export default defineConfig({
56
+ * preset: createVuePreset({
57
+ * pluginOptions: {
58
+ * customElement: true
59
+ * }
60
+ * })
61
+ * });
62
+ * ```
63
+ */
64
+ declare const createVuePreset: (options?: VuePresetOptions) => BuildConfig;
65
+ export { VuePresetOptions, createVuePreset };