@visulima/packem 2.0.0-alpha.7 → 2.0.0-alpha.71

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 (75) hide show
  1. package/CHANGELOG.md +937 -2
  2. package/LICENSE.md +552 -2582
  3. package/README.md +59 -32
  4. package/dist/builder/typedoc/index.d.ts +10 -23
  5. package/dist/builder/typedoc/index.js +3 -3
  6. package/dist/cli/index.js +47 -37
  7. package/dist/config/index.d.ts +54 -24
  8. package/dist/config/preset/preact.d.ts +30 -0
  9. package/dist/config/preset/preact.js +2 -0
  10. package/dist/config/preset/react.d.ts +71 -0
  11. package/dist/config/preset/react.js +1 -0
  12. package/dist/config/preset/solid.d.ts +113 -0
  13. package/dist/config/preset/solid.js +1 -0
  14. package/dist/config/preset/svelte.d.ts +83 -0
  15. package/dist/config/preset/svelte.js +1 -0
  16. package/dist/config/preset/vue.d.ts +65 -0
  17. package/dist/config/preset/vue.js +1 -0
  18. package/dist/index.d.ts +53 -30
  19. package/dist/index.js +1 -1
  20. package/dist/packem_shared/create-or-update-key-storage-Ddq46eG8.js +1 -0
  21. package/dist/packem_shared/index-CBiZaA3V.js +88 -0
  22. package/dist/packem_shared/types.d-CRug-s8c.d.ts +440 -0
  23. package/dist/rollup/plugins/css/loaders/less.d.ts +1 -1
  24. package/dist/rollup/plugins/css/loaders/less.js +1 -1
  25. package/dist/rollup/plugins/css/loaders/lightningcss.d.ts +1 -1
  26. package/dist/rollup/plugins/css/loaders/lightningcss.js +1 -1
  27. package/dist/rollup/plugins/css/loaders/postcss.d.ts +1 -1
  28. package/dist/rollup/plugins/css/loaders/postcss.js +1 -1
  29. package/dist/rollup/plugins/css/loaders/sass.d.ts +1 -1
  30. package/dist/rollup/plugins/css/loaders/sass.js +1 -1
  31. package/dist/rollup/plugins/css/loaders/sourcemap.d.ts +1 -8
  32. package/dist/rollup/plugins/css/loaders/sourcemap.js +1 -1
  33. package/dist/rollup/plugins/css/loaders/stylus.d.ts +1 -1
  34. package/dist/rollup/plugins/css/loaders/stylus.js +1 -1
  35. package/dist/rollup/plugins/css/loaders/tailwindcss.d.ts +1 -0
  36. package/dist/rollup/plugins/css/loaders/tailwindcss.js +1 -0
  37. package/dist/rollup/plugins/css/minifiers/cssnano.d.ts +1 -1
  38. package/dist/rollup/plugins/css/minifiers/cssnano.js +1 -1
  39. package/dist/rollup/plugins/css/minifiers/lightningcss.d.ts +1 -1
  40. package/dist/rollup/plugins/css/minifiers/lightningcss.js +1 -1
  41. package/dist/rollup/plugins/esbuild/index.d.ts +1 -24
  42. package/dist/rollup/plugins/esbuild/index.js +1 -1
  43. package/dist/rollup/plugins/oxc/oxc-transformer.d.ts +1 -20
  44. package/dist/rollup/plugins/oxc/oxc-transformer.js +1 -1
  45. package/dist/rollup/plugins/sucrase/index.d.ts +1 -19
  46. package/dist/rollup/plugins/sucrase/index.js +1 -1
  47. package/dist/rollup/plugins/swc/swc-plugin.d.ts +1 -26
  48. package/dist/rollup/plugins/swc/swc-plugin.js +1 -1
  49. package/files.d.ts +37 -0
  50. package/package.json +83 -45
  51. package/dist/packem_shared/browserslistToEsbuild-C0IWmbNe-C6xPL1oW.js +0 -1
  52. package/dist/packem_shared/create-or-update-key-storage-GwAIWW7R.js +0 -3
  53. package/dist/packem_shared/default-B6X7-Lx3.js +0 -1
  54. package/dist/packem_shared/default-B_dUKZ_J.js +0 -1
  55. package/dist/packem_shared/default-C3sdXf4G.js +0 -1
  56. package/dist/packem_shared/default-DR5Fia_R.js +0 -1
  57. package/dist/packem_shared/default-DqRcOUe1.js +0 -1
  58. package/dist/packem_shared/esbuildPlugin-BAwyhG6L-yty60jMl.js +0 -3
  59. package/dist/packem_shared/index-C-T6BXtW.js +0 -138
  60. package/dist/packem_shared/index-CUp9WuCG.js +0 -1
  61. package/dist/packem_shared/index-zikl8Yu3.d.ts +0 -5229
  62. package/dist/packem_shared/isolatedDeclarationsOxcTransformer-WbfE6cGu-NeZOx2Y7.js +0 -1
  63. package/dist/packem_shared/isolatedDeclarationsSwcTransformer-Ch2AgtWC-B-0lOgFf.js +0 -1
  64. package/dist/packem_shared/isolatedDeclarationsTypescriptTransformer-DkuEkofo-Cwe3ODMG.js +0 -3
  65. package/dist/packem_shared/oxcResolvePlugin-BJpi-eSG-BsYx9cDO.js +0 -1
  66. package/dist/packem_shared/oxcTransformPlugin-DfVQouIB-Cpfv95eA.js +0 -4
  67. package/dist/packem_shared/resolveTypescriptMjsCtsPlugin-DcZrZTmM-BEkYWTsH.js +0 -6
  68. package/dist/packem_shared/swcPlugin-Boip4lWG-CwJ-HVJc.js +0 -1
  69. package/dist/packem_shared/types-Dn9KmF6u.d.ts +0 -163
  70. package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.d.ts +0 -25
  71. package/dist/rollup/plugins/oxc/isolated-declarations-oxc-transformer.js +0 -1
  72. package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.d.ts +0 -20
  73. package/dist/rollup/plugins/swc/isolated-declarations-swc-transformer.js +0 -1
  74. package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.d.ts +0 -24
  75. package/dist/rollup/plugins/typescript/isolated-declarations-typescript-transformer.js +0 -1
@@ -0,0 +1,440 @@
1
+ import { CheckPackageOptions } from '@arethetypeswrong/core';
2
+ import { PackemRollupOptions, TransformerFn, TransformerName } from '@visulima/packem-rollup';
3
+ import { InternalOXCTransformPluginConfig } from '@visulima/packem-rollup/oxc';
4
+ import { NativeModulesOptions } from '@visulima/packem-rollup/plugin/native-modules';
5
+ import { Environment, Runtime, BuildContext, Format, BuildHooks, Mode } from '@visulima/packem-share/types';
6
+ import { FileCache } from '@visulima/packem-share/utils';
7
+ import { StyleOptions } from '@visulima/rollup-plugin-css';
8
+ import { JitiOptions } from 'jiti';
9
+ import 'rollup';
10
+ import { TypeDocOptions } from 'typedoc';
11
+ import '@visulima/pail';
12
+ type ExePlatform = "darwin" | "linux" | "win";
13
+ type ExeArch = "arm64" | "x64";
14
+ interface ExeTarget {
15
+ arch: ExeArch;
16
+ /**
17
+ * Node.js version to use for the executable.
18
+ *
19
+ * Accepts a valid semver string (e.g., `"25.7.0"`), or the special values
20
+ * `"latest"` / `"latest-lts"` which resolve the version automatically from
21
+ * {@link https://nodejs.org/dist/index.json}.
22
+ *
23
+ * The minimum required version is 25.7.0, which is when stable SEA support landed in Node.js.
24
+ */
25
+ nodeVersion: "latest" | "latest-lts" | (string & {}) | `${string}.${string}.${string}`;
26
+ platform: ExePlatform;
27
+ }
28
+ interface ExeExtensionOptions {
29
+ /**
30
+ * Cross-platform targets for building executables.
31
+ * When specified, builds an executable for each target platform/arch combination
32
+ * by downloading and caching the corresponding Node.js binary from nodejs.org.
33
+ * @example
34
+ * ```ts
35
+ * targets: [
36
+ * { platform: "linux", arch: "x64", nodeVersion: "25.7.0" },
37
+ * { platform: "darwin", arch: "arm64", nodeVersion: "25.7.0" },
38
+ * { platform: "win", arch: "x64", nodeVersion: "25.7.0" },
39
+ * ]
40
+ * ```
41
+ */
42
+ targets?: ExeTarget[];
43
+ }
44
+ interface ExeChunk {
45
+ path: string;
46
+ type?: string;
47
+ }
48
+ interface SeaConfig {
49
+ /** Optional, embedded asset mappings. */
50
+ assets?: Record<string, string>;
51
+ /** @default true */
52
+ disableExperimentalSEAWarning?: boolean;
53
+ /** Extra Node.js CLI arguments embedded into the executable. */
54
+ execArgv?: string[];
55
+ /** @default "env" */
56
+ execArgvExtension?: "cli" | "env" | "none";
57
+ /** Optional; if not specified, uses the current Node.js binary. */
58
+ executable?: string;
59
+ main?: string;
60
+ mainFormat?: "commonjs" | "module";
61
+ output?: string;
62
+ /** @default false */
63
+ useCodeCache?: boolean;
64
+ /** @default false */
65
+ useSnapshot?: boolean;
66
+ }
67
+ interface ExeOptions extends ExeExtensionOptions {
68
+ /**
69
+ * Output file name without any suffix or extension.
70
+ * For example, do not include `.exe`, platform suffixes, or architecture suffixes.
71
+ */
72
+ fileName?: ((chunk: ExeChunk) => string) | string;
73
+ /**
74
+ * Output directory for executables.
75
+ * @default "build"
76
+ */
77
+ outDir?: string;
78
+ /**
79
+ * Node.js SEA configuration passthrough.
80
+ * @see https://nodejs.org/api/single-executable-applications.html#generating-single-executable-applications-with---build-sea
81
+ */
82
+ seaConfig?: Omit<SeaConfig, "main" | "mainFormat" | "output">;
83
+ }
84
+ type Node10CompatibilityOptions = {
85
+ typeScriptVersion?: string;
86
+ writeToPackageJson?: boolean;
87
+ };
88
+ type MaybeFalsy<T> = T | false | null | undefined;
89
+ /**
90
+ * User-facing configuration for externals classification, mirrored at
91
+ * `packem.config.ts` → `rollup.resolveExternals`.
92
+ */
93
+ type ResolveExternalsPluginOptions = {
94
+ /**
95
+ * Mark node built-in modules like `path`, `fs`... as external.
96
+ *
97
+ * Set to `false` to use shims/polyfills instead.
98
+ * @default true
99
+ */
100
+ builtins?: boolean;
101
+ /**
102
+ * `node:` prefix handling for imports of Node builtins:
103
+ * - `'add'` turns `'path'` into `'node:path'`
104
+ * - `'strip'` turns `'node:path'` into `'path'`
105
+ * - `'ignore'` leaves names as written
106
+ * @default "add"
107
+ */
108
+ builtinsPrefix?: "add" | "ignore" | "strip";
109
+ /** Mark `dependencies` as external. @default true */
110
+ deps?: boolean;
111
+ /** Mark `devDependencies` as external. @default false */
112
+ devDeps?: boolean;
113
+ /**
114
+ * Force exclude these ids from the external list, regardless of other
115
+ * settings. @default []
116
+ */
117
+ exclude?: MaybeFalsy<RegExp | string>[];
118
+ /** Mark `optionalDependencies` as external. @default true */
119
+ optDeps?: boolean;
120
+ /** Mark `peerDependencies` as external. @default true */
121
+ peerDeps?: boolean;
122
+ };
123
+ type DeepPartial<T> = { [P in keyof T]?: DeepPartial<T[P]> };
124
+ interface AttwOptions extends CheckPackageOptions {
125
+ /**
126
+ * Ignore the scripts on pack
127
+ * @default false
128
+ */
129
+ ignoreScripts?: boolean;
130
+ /**
131
+ * The level of the check.
132
+ *
133
+ * The available levels are:
134
+ * - `error`: fails the build
135
+ * - `warn`: warns the build
136
+ * @default 'warn'
137
+ */
138
+ level?: "error" | "warn";
139
+ /**
140
+ * Specify the package manager to use for --pack
141
+ * Bun does not support --json option on the pack command, if you choose bun you will get a error.
142
+ * @default 'auto'
143
+ */
144
+ pm?: "pnpm" | "yarn" | "npm" | "bun" | "auto";
145
+ /**
146
+ * Profiles select a set of resolution modes to require/ignore. All are evaluated but failures outside
147
+ * of those required are ignored.
148
+ *
149
+ * The available profiles are:
150
+ * - `strict`: requires all resolutions
151
+ * - `node16`: ignores node10 resolution failures
152
+ * - `esmOnly`: ignores CJS resolution failures
153
+ * @default 'strict'
154
+ */
155
+ profile?: "strict" | "node16" | "esmOnly";
156
+ }
157
+ /**
158
+ * In addition to basic `entries`, `presets`, and `hooks`,
159
+ * there are also all the properties of `BuildOptions` except for BuildOption's `entries`.
160
+ */
161
+ interface BuildConfig extends DeepPartial<Omit<BuildOptions, "entries">> {
162
+ entries?: (BuildEntry | string)[];
163
+ envFile?: string;
164
+ envPrefix?: string;
165
+ hooks?: Partial<BuildHooks<InternalBuildOptions>>;
166
+ preset?: BuildPreset | "none" | (NonNullable<unknown> & string);
167
+ }
168
+ type BuildPreset = BuildConfig | (() => BuildConfig);
169
+ /**
170
+ * Function type for dynamic build configuration.
171
+ * Allows configuration to be generated based on environment and mode.
172
+ * @param environment The build environment (development/production)
173
+ * @param mode The build mode (build/watch)
174
+ * @returns Build configuration object or Promise resolving to one
175
+ * @public
176
+ */
177
+ type BuildConfigFunction = (environment: Environment, mode: Mode) => BuildConfig | Promise<BuildConfig>;
178
+ type BuildEntry = {
179
+ /** Whether to generate CommonJS output for this entry */
180
+ cjs?: boolean;
181
+ /** TypeScript declaration file generation mode */
182
+ declaration?: boolean | "compatible" | "node16";
183
+ /** Whether to generate .d.cts declaration file without triggering CJS JS build */
184
+ declarationCjs?: boolean;
185
+ /**
186
+ * Set of declaration file extensions package.json's exports map references for
187
+ * this entry (e.g. `{ "d.mts", "d.cts" }`). Derived by infer-entries from the
188
+ * actual type file paths in exports; used by the DTS build to emit exactly the
189
+ * files package.json consumers will resolve. Takes precedence over the global
190
+ * `emitCJS`/`emitESM` + `declaration` flags when present.
191
+ */
192
+ declarationExtensions?: Set<"d.cts" | "d.mts" | "d.ts">;
193
+ /** Whether to generate .d.mts declaration file without triggering ESM JS build */
194
+ declarationEsm?: boolean;
195
+ /** Build environment for this entry */
196
+ environment?: Environment;
197
+ /** Whether to generate ESM output for this entry */
198
+ esm?: boolean;
199
+ /** Whether this entry should be marked as executable */
200
+ executable?: true;
201
+ /** Set of export keys to include for this entry */
202
+ exportKey?: Set<string>;
203
+ /** Alternative filename for the output file */
204
+ fileAlias?: string;
205
+ /** Input file path for this entry */
206
+ input: string;
207
+ /** Whether the input is a glob pattern */
208
+ isGlob?: boolean;
209
+ /** Name identifier for this entry */
210
+ name?: string;
211
+ /** Output directory for this entry */
212
+ outDir?: string;
213
+ /** Runtime environment for this entry */
214
+ runtime?: Runtime;
215
+ };
216
+ interface BuildOptions {
217
+ /** Path alias mappings for module resolution */
218
+ alias: Record<string, string>;
219
+ /** Whether to analyze bundle size and dependencies */
220
+ analyze?: boolean;
221
+ /** Browser targets for transpilation (e.g., ['chrome 58', 'firefox 57']) */
222
+ browserTargets?: string[];
223
+ /** Custom builder functions for different build types */
224
+ builder?: Record<string, (context: BuildContext<BuildOptions>, cachePath: string | undefined, fileCache: FileCache, logged: boolean) => Promise<void>>;
225
+ /** Whether to enable CommonJS interop for ESM modules */
226
+ cjsInterop?: boolean;
227
+ /** Whether to clean the output directory before building */
228
+ clean: boolean;
229
+ /** Whether to enable debug mode with verbose logging */
230
+ debug: boolean;
231
+ /**
232
+ * `compatible` means "src/gather.ts" will generate "dist/index.d.mts", "dist/index.d.cts" and "dist/index.d.ts".
233
+ * `node16` means "src/gather.ts" will generate "dist/index.d.mts" and "dist/index.d.cts".
234
+ * `true` is equivalent to `compatible`.
235
+ * `false` will disable declaration generation.
236
+ * `undefined` will auto-detect based on "package.json". If "package.json" has "types" field, it will be `"compatible"`, otherwise `false`.
237
+ */
238
+ declaration?: boolean | "compatible" | "node16" | undefined;
239
+ /**
240
+ * If `true`, only generate declaration files.
241
+ * If `false` or `undefined`, generate both declaration and source files.
242
+ */
243
+ dtsOnly?: boolean;
244
+ /** Whether to emit CommonJS output */
245
+ emitCJS?: boolean;
246
+ /** Whether to emit ESM output */
247
+ emitESM?: boolean;
248
+ /** Build entry points */
249
+ entries: BuildEntry[];
250
+ /**
251
+ * Bundle the build output into a single standalone executable via Node.js SEA.
252
+ * Set to `true` to build for the current platform, or pass an options object
253
+ * for fine-grained control (cross-platform targets, SEA config, custom output name).
254
+ *
255
+ * Requires Node.js >= 25.7.0 at build time. Not supported in Bun or Deno.
256
+ * Automatically enforces a single entry point.
257
+ */
258
+ exe?: boolean | ExeOptions;
259
+ /** Experimental features configuration */
260
+ experimental?: {
261
+ /**
262
+ * If `true`, the `oxc resolve` plugin will be used instead of the default `@rollup/plugin-node-resolve` and `@rollup/plugin-alias`.
263
+ */
264
+ oxcResolve?: boolean;
265
+ };
266
+ /** External dependencies that should not be bundled */
267
+ externals: (RegExp | string)[];
268
+ /** Whether to fail the build on warnings */
269
+ failOnWarn?: boolean;
270
+ /** Whether to enable file caching for faster rebuilds */
271
+ fileCache?: boolean;
272
+ /**
273
+ * Array of export keys to ignore during entry inference.
274
+ * Useful for excluding exports that only contain images or other non-JavaScript assets.
275
+ * @example ["images", "assets", "icons"]
276
+ */
277
+ ignoreExportKeys?: string[];
278
+ /**
279
+ * Jiti options, where [jiti](https://github.com/unjs/jiti) is used to load the entry files.
280
+ * @default { alias: {}, debug: false, interopDefault: true }
281
+ */
282
+ jiti: Omit<JitiOptions & {
283
+ absoluteJitiPath?: boolean;
284
+ }, "onError" | "transform">;
285
+ /** Signal to use when killing child processes */
286
+ killSignal?: KillSignal;
287
+ /** Whether to minify the output */
288
+ minify?: boolean | undefined;
289
+ /** Name of the build */
290
+ name: string;
291
+ /** Node.js 10 compatibility options */
292
+ node10Compatibility?: Node10CompatibilityOptions | false;
293
+ /** Command to run or function to execute after successful build */
294
+ onSuccess?: string | (() => Promise<(() => Promise<void> | void) | undefined | void>);
295
+ /** Timeout for the onSuccess command in milliseconds */
296
+ onSuccessTimeout?: number;
297
+ /** Output directory for build artifacts */
298
+ outDir: string;
299
+ /** Custom file extensions for different output formats */
300
+ outputExtensionMap?: Record<Format, string>;
301
+ /** Rollup-specific build options */
302
+ rollup: RollupBuildOptions;
303
+ /** Root directory of the project */
304
+ rootDir: string;
305
+ /** Target runtime environment */
306
+ runtime?: "browser" | "node";
307
+ /** Source directory containing the source files */
308
+ sourceDir: string;
309
+ /** Whether to generate source maps */
310
+ sourcemap: boolean;
311
+ /** Transformer function for processing source files */
312
+ transformer: TransformerFn;
313
+ /** TypeDoc configuration for generating documentation */
314
+ typedoc: TypeDocumentOptions | false;
315
+ /**
316
+ * If `true`, enables unbundle mode which preserves the source file structure.
317
+ * Instead of bundling everything into a single file, each module is output as a separate file
318
+ * maintaining the original directory structure.
319
+ * @default false
320
+ * @example
321
+ * ```typescript
322
+ * // With unbundle: true
323
+ * // src/index.ts exports from './a/indexA', './b/indexB'
324
+ * // Output: dist/index.js, dist/a/indexA.js, dist/b/indexB.js
325
+ * ```
326
+ */
327
+ unbundle?: boolean;
328
+ /** Validation options for the build */
329
+ validation?: ValidationOptions | false;
330
+ }
331
+ interface InternalBuildOptions extends BuildOptions {
332
+ /** Rollup options with internal OXC configuration */
333
+ rollup: BuildOptions["rollup"] & {
334
+ nativeModules?: NativeModulesOptions | false;
335
+ oxc?: InternalOXCTransformPluginConfig;
336
+ };
337
+ /** Name of the transformer being used */
338
+ transformerName: TransformerName | undefined;
339
+ }
340
+ /** Valid kill signals for terminating child processes */
341
+ type KillSignal = "SIGKILL" | "SIGTERM";
342
+ interface RollupBuildOptions extends PackemRollupOptions {
343
+ /** CSS processing options or false to disable */
344
+ css?: StyleOptions | false;
345
+ /** External dependency resolution plugin options */
346
+ resolveExternals?: ResolveExternalsPluginOptions;
347
+ }
348
+ type TypeDocumentOptions = Partial<Omit<TypeDocOptions, "entryPoints" | "hideGenerator" | "out" | "preserveWatchOutput" | "watch">> & {
349
+ /**
350
+ * The format of the output.
351
+ * @default "html"
352
+ */
353
+ format?: "html" | "inline" | "json" | "markdown";
354
+ /**
355
+ * The name of the JSON file.
356
+ */
357
+ jsonFileName?: string;
358
+ /**
359
+ * A marker to replace the content within the file on the correct location.
360
+ * @default "TYPEDOC" This marker need to be placed in the readme &lt;!-- TYPEDOC -->&lt;!-- TYPEDOC -->
361
+ */
362
+ marker?: string;
363
+ /**
364
+ * The path of the output directory.
365
+ */
366
+ output?: string;
367
+ /**
368
+ * The path of the README file.
369
+ */
370
+ readmePath?: string;
371
+ };
372
+ type ValidationOptions = {
373
+ /**
374
+ * Run `arethetypeswrong` after bundling.
375
+ * Requires `@arethetypeswrong/core` to be installed.
376
+ * @default false
377
+ * @see https://github.com/arethetypeswrong/arethetypeswrong.github.io
378
+ */
379
+ attw?: boolean | AttwOptions;
380
+ /** Bundle size validation options */
381
+ bundleLimit?: {
382
+ /** Allow the build to succeed even if limits are exceeded */
383
+ allowFail?: boolean;
384
+ /**
385
+ * Bundle size limit in bytes, or string with unit (e.g., "1MB", "500KB")
386
+ * @example
387
+ * - "1MB"
388
+ * - "500KB"
389
+ * - 1048576 // 1MB in bytes
390
+ */
391
+ limit?: number | `${number}${"B" | "GB" | "KB" | "MB" | "TB"}`;
392
+ /** Size limits for specific files or globs */
393
+ limits?: Record<string, number | `${number}${"B" | "GB" | "KB" | "MB" | "TB"}`>;
394
+ };
395
+ /** Dependency validation options */
396
+ dependencies: {
397
+ /** Hoisted dependency validation with exclusions */
398
+ hoisted: {
399
+ exclude: string[];
400
+ } | false;
401
+ /** Unused dependency validation with exclusions */
402
+ unused: {
403
+ exclude: string[];
404
+ } | false;
405
+ } | false;
406
+ /** Package.json validation options */
407
+ packageJson?: {
408
+ /** Allowed file extensions in exports field */
409
+ allowedExportExtensions?: string[];
410
+ /** Whether to validate the bin field */
411
+ bin?: boolean;
412
+ /** Whether to validate dependencies */
413
+ dependencies?: boolean;
414
+ /** Whether to validate the engines field */
415
+ engines?: boolean;
416
+ /** Whether to validate the exports field */
417
+ exports?: boolean;
418
+ /**
419
+ * Additional custom conditions to consider valid in exports field validation.
420
+ * These will be added to the standard and community conditions.
421
+ * @example ["custom", "my-bundler"]
422
+ */
423
+ extraConditions?: string[];
424
+ /** Whether to validate the files field */
425
+ files?: boolean;
426
+ /** Whether to validate the main field */
427
+ main?: boolean;
428
+ /** Whether to validate the module field */
429
+ module?: boolean;
430
+ /** Whether to validate the name field */
431
+ name?: boolean;
432
+ /** Whether to validate the sideEffects field */
433
+ sideEffects?: boolean;
434
+ /** Whether to validate the types field */
435
+ types?: boolean;
436
+ /** Whether to validate the typesVersions field */
437
+ typesVersions?: boolean;
438
+ };
439
+ };
440
+ export { BuildConfig as B, InternalBuildOptions as I, RollupBuildOptions as R, BuildEntry as a, BuildOptions as b, BuildConfigFunction as c, BuildPreset as d };
@@ -1 +1 @@
1
- export { default } from '@visulima/rollup-css-plugin/loader/less';
1
+ export { default } from '@visulima/rollup-plugin-css/loader/less';
@@ -1 +1 @@
1
- import{default as o}from"@visulima/rollup-css-plugin/loader/less";export{o as default};
1
+ import{default as o}from"@visulima/rollup-plugin-css/loader/less";export{o as default};
@@ -1 +1 @@
1
- export { default } from '@visulima/rollup-css-plugin/loader/lightningcss';
1
+ export { default } from '@visulima/rollup-plugin-css/loader/lightningcss';
@@ -1 +1 @@
1
- import{default as o}from"@visulima/rollup-css-plugin/loader/lightningcss";export{o as default};
1
+ import{default as o}from"@visulima/rollup-plugin-css/loader/lightningcss";export{o as default};
@@ -1 +1 @@
1
- export { default } from '@visulima/rollup-css-plugin/loader/postcss';
1
+ export { default } from '@visulima/rollup-plugin-css/loader/postcss';
@@ -1 +1 @@
1
- import{default as o}from"@visulima/rollup-css-plugin/loader/postcss";export{o as default};
1
+ import{default as o}from"@visulima/rollup-plugin-css/loader/postcss";export{o as default};
@@ -1 +1 @@
1
- export { default } from '@visulima/rollup-css-plugin/loader/sass';
1
+ export { default } from '@visulima/rollup-plugin-css/loader/sass';
@@ -1 +1 @@
1
- import{default as o}from"@visulima/rollup-css-plugin/loader/sass";export{o as default};
1
+ import{default as o}from"@visulima/rollup-plugin-css/loader/sass";export{o as default};
@@ -1,8 +1 @@
1
- export { default } from '@visulima/rollup-css-plugin/loader/sourcemap';
2
- import '@visulima/rollup-css-plugin/loader/less';
3
- import '@visulima/rollup-css-plugin/loader/postcss';
4
- import '@visulima/rollup-css-plugin/loader/sass';
5
- import '@visulima/rollup-css-plugin/loader/stylus';
6
- import '@visulima/rollup-css-plugin/loader/lightningcss';
7
- import '@visulima/rollup-css-plugin/minifier/cssnano';
8
- import '@visulima/rollup-css-plugin/minifier/lightningcss';
1
+ export { default } from '@visulima/rollup-plugin-css/loader/sourcemap';
@@ -1 +1 @@
1
- import{default as o}from"@visulima/rollup-css-plugin/loader/sourcemap";export{o as default};
1
+ import{default as o}from"@visulima/rollup-plugin-css/loader/sourcemap";export{o as default};
@@ -1 +1 @@
1
- export { default } from '@visulima/rollup-css-plugin/loader/stylus';
1
+ export { default } from '@visulima/rollup-plugin-css/loader/stylus';
@@ -1 +1 @@
1
- import{default as o}from"@visulima/rollup-css-plugin/loader/stylus";export{o as default};
1
+ import{default as o}from"@visulima/rollup-plugin-css/loader/stylus";export{o as default};
@@ -0,0 +1 @@
1
+ export { default } from '@visulima/rollup-plugin-css/loader/tailwindcss';
@@ -0,0 +1 @@
1
+ import{default as o}from"@visulima/rollup-plugin-css/loader/tailwindcss";export{o as default};
@@ -1 +1 @@
1
- export { default } from '@visulima/rollup-css-plugin/minifier/cssnano';
1
+ export { default } from '@visulima/rollup-plugin-css/minifier/cssnano';
@@ -1 +1 @@
1
- import{default as o}from"@visulima/rollup-css-plugin/minifier/cssnano";export{o as default};
1
+ import{default as o}from"@visulima/rollup-plugin-css/minifier/cssnano";export{o as default};
@@ -1 +1 @@
1
- export { default } from '@visulima/rollup-css-plugin/minifier/lightningcss';
1
+ export { default } from '@visulima/rollup-plugin-css/minifier/lightningcss';
@@ -1 +1 @@
1
- import{default as o}from"@visulima/rollup-css-plugin/minifier/lightningcss";export{o as default};
1
+ import{default as o}from"@visulima/rollup-plugin-css/minifier/lightningcss";export{o as default};
@@ -1,24 +1 @@
1
- import { T as TransformerFn } from '../../../packem_shared/index-zikl8Yu3.js';
2
- export { e as EsbuildPluginConfig } from '../../../packem_shared/index-zikl8Yu3.js';
3
- import '@rollup/plugin-alias';
4
- import '@rollup/plugin-commonjs';
5
- import '@rollup/plugin-json';
6
- import '@rollup/plugin-node-resolve';
7
- import '@rollup/plugin-replace';
8
- import '@rollup/plugin-wasm';
9
- import '@rollup/pluginutils';
10
- import 'rollup';
11
- import 'rollup-plugin-dts';
12
- import 'rollup-plugin-polyfill-node';
13
- import 'rollup-plugin-pure';
14
- import 'rollup-plugin-visualizer';
15
- import 'esbuild';
16
- import '@visulima/package';
17
- import '@visulima/colorize';
18
- import 'oxc-resolver';
19
- import 'oxc-transform';
20
- import 'sucrase';
21
-
22
- declare const _default: TransformerFn;
23
-
24
- export { _default as default };
1
+ export { type EsbuildPluginConfig, esbuildPlugin as default } from '@visulima/packem-rollup/esbuild';
@@ -1 +1 @@
1
- import{_ as f}from"../../../packem_shared/esbuildPlugin-BAwyhG6L-yty60jMl.js";export{f as default};
1
+ import{esbuildPlugin as u}from"@visulima/packem-rollup/esbuild";export{u as default};
@@ -1,20 +1 @@
1
- export { o as default, default as isolatedDeclarationsOxcTransformer } from './isolated-declarations-oxc-transformer.js';
2
- import '../../../packem_shared/index-zikl8Yu3.js';
3
- import '@rollup/plugin-alias';
4
- import '@rollup/plugin-commonjs';
5
- import '@rollup/plugin-json';
6
- import '@rollup/plugin-node-resolve';
7
- import '@rollup/plugin-replace';
8
- import '@rollup/plugin-wasm';
9
- import '@rollup/pluginutils';
10
- import 'rollup';
11
- import 'rollup-plugin-dts';
12
- import 'rollup-plugin-polyfill-node';
13
- import 'rollup-plugin-pure';
14
- import 'rollup-plugin-visualizer';
15
- import 'esbuild';
16
- import '@visulima/package';
17
- import '@visulima/colorize';
18
- import 'oxc-resolver';
19
- import 'oxc-transform';
20
- import 'sucrase';
1
+ export { oxcTransformPlugin as default } from '@visulima/packem-rollup/oxc';
@@ -1 +1 @@
1
- import{n as f}from"../../../packem_shared/oxcTransformPlugin-DfVQouIB-Cpfv95eA.js";export{f as default};
1
+ import{oxcTransformPlugin as a}from"@visulima/packem-rollup/oxc";export{a as default};
@@ -1,19 +1 @@
1
- export { h as SucrasePluginConfig, s as default } from '../../../packem_shared/index-zikl8Yu3.js';
2
- import '@rollup/plugin-alias';
3
- import '@rollup/plugin-commonjs';
4
- import '@rollup/plugin-json';
5
- import '@rollup/plugin-node-resolve';
6
- import '@rollup/plugin-replace';
7
- import '@rollup/plugin-wasm';
8
- import '@rollup/pluginutils';
9
- import 'rollup';
10
- import 'rollup-plugin-dts';
11
- import 'rollup-plugin-polyfill-node';
12
- import 'rollup-plugin-pure';
13
- import 'rollup-plugin-visualizer';
14
- import 'esbuild';
15
- import '@visulima/package';
16
- import '@visulima/colorize';
17
- import 'oxc-resolver';
18
- import 'oxc-transform';
19
- import 'sucrase';
1
+ export { type SucrasePluginConfig, sucrasePlugin as default } from '@visulima/packem-rollup/sucrase';
@@ -1 +1 @@
1
- import{sucrasePlugin as r}from"../../../packem_shared/default-B_dUKZ_J.js";export{r as default};
1
+ import{sucrasePlugin as r}from"@visulima/packem-rollup/sucrase";export{r as default};
@@ -1,26 +1 @@
1
- import { T as TransformerFn, f as IsolatedDeclarationsResult } from '../../../packem_shared/index-zikl8Yu3.js';
2
- export { S as SwcPluginConfig } from '../../../packem_shared/index-zikl8Yu3.js';
3
- import '@rollup/plugin-alias';
4
- import '@rollup/plugin-commonjs';
5
- import '@rollup/plugin-json';
6
- import '@rollup/plugin-node-resolve';
7
- import '@rollup/plugin-replace';
8
- import '@rollup/plugin-wasm';
9
- import '@rollup/pluginutils';
10
- import 'rollup';
11
- import 'rollup-plugin-dts';
12
- import 'rollup-plugin-polyfill-node';
13
- import 'rollup-plugin-pure';
14
- import 'rollup-plugin-visualizer';
15
- import 'esbuild';
16
- import '@visulima/package';
17
- import '@visulima/colorize';
18
- import 'oxc-resolver';
19
- import 'oxc-transform';
20
- import 'sucrase';
21
-
22
- declare const _default: TransformerFn;
23
-
24
- declare const isolatedDeclarationsSwcTransformer: (id: string, code: string, sourceMap?: boolean) => Promise<IsolatedDeclarationsResult>;
25
-
26
- export { _default as default, isolatedDeclarationsSwcTransformer as i };
1
+ export { type SwcPluginConfig, swcPlugin as default } from '@visulima/packem-rollup/swc';
@@ -1 +1 @@
1
- import{t as e}from"../../../packem_shared/swcPlugin-Boip4lWG-CwJ-HVJc.js";export{e as default};
1
+ import{swcPlugin as f}from"@visulima/packem-rollup/swc";export{f as default};