@visulima/packem 2.0.0-alpha.44 → 2.0.0-alpha.46

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.
@@ -0,0 +1,4 @@
1
+ var s=Object.defineProperty;var a=(r,e)=>s(r,"name",{value:e,configurable:!0});import{createFilter as l}from"@rollup/pluginutils";import{f as p}from"./index-CUp9WuCG.js";import{transform as d}from"oxc-transform";var v=Object.defineProperty,g=a((r,e)=>v(r,"name",{value:e,configurable:!0}),"t"),b=Object.defineProperty,x=g((r,e)=>b(r,"name",{value:e,configurable:!0}),"a"),R=Object.defineProperty,j=x((r,e)=>R(r,"name",{value:e,configurable:!0}),"m");const y=j(({exclude:r,include:e,...c})=>{const m=l(e,r??p);return{name:"packem:oxc-transform",async transform(u,t){if(!m(t))return;const n=await d(t,u,{...c,sourcemap:!0});if(!n)return;const{code:f,errors:o=[],map:i}=n;return o&&o.length>0?this.error({message:[`
2
+ transform errors:`,...o].join(`
3
+
4
+ `),pluginCode:"ERR_TRANSFORM"}):{code:f,map:i}}}},"oxcTransformPlugin");y.NAME="oxc";export{y as s};
@@ -1 +1 @@
1
- import{n as f}from"../../../packem_shared/oxcTransformPlugin-DfVQouIB-Cpfv95eA.js";export{f as default};
1
+ import{s as f}from"../../../packem_shared/oxcTransformPlugin-BGmQroQ4-D4RYvg8H.js";export{f as default};
package/dist/types.d.ts CHANGED
@@ -52,6 +52,8 @@ export interface AttwOptions extends CheckPackageOptions {
52
52
  */
53
53
  export interface BuildConfig extends DeepPartial<Omit<BuildOptions, "entries">> {
54
54
  entries?: (BuildEntry | string)[];
55
+ envFile?: string;
56
+ envPrefix?: string;
55
57
  hooks?: Partial<BuildHooks<InternalBuildOptions>>;
56
58
  preset?: BuildPreset | "none" | (NonNullable<unknown> & string);
57
59
  }
@@ -0,0 +1,14 @@
1
+ import { createDefu } from "defu";
2
+ /**
3
+ * Creates a custom defu instance that properly merges hooks objects instead of overwriting them.
4
+ * This is necessary because defu's default behavior overwrites objects, but hooks need to be merged
5
+ * so that hooks from both presets and user configs are preserved.
6
+ * @returns A custom defu function that merges hooks objects
7
+ * @example
8
+ * ```typescript
9
+ * const customDefu = createDefuWithHooksMerger();
10
+ * const merged = customDefu(userConfig, presetConfig, autoPreset);
11
+ * // hooks from all configs are now merged instead of overwritten
12
+ * ```
13
+ */
14
+ export declare const createDefuWithHooksMerger: () => ReturnType<typeof createDefu>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/packem",
3
- "version": "2.0.0-alpha.44",
3
+ "version": "2.0.0-alpha.46",
4
4
  "description": "A fast and modern bundler for Node.js and TypeScript.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -187,11 +187,11 @@
187
187
  "@visulima/fs": "4.0.4",
188
188
  "@visulima/humanizer": "2.0.3",
189
189
  "@visulima/package": "4.1.4",
190
- "@visulima/packem-rollup": "1.0.0-alpha.32",
191
- "@visulima/packem-share": "1.0.0-alpha.15",
190
+ "@visulima/packem-rollup": "1.0.0-alpha.34",
191
+ "@visulima/packem-share": "1.0.0-alpha.17",
192
192
  "@visulima/pail": "3.2.0",
193
193
  "@visulima/path": "1.4.0",
194
- "@visulima/rollup-plugin-css": "1.0.0-alpha.12",
194
+ "@visulima/rollup-plugin-css": "1.0.0-alpha.14",
195
195
  "@visulima/source-map": "2.0.3",
196
196
  "@visulima/tabular": "^3.1.3",
197
197
  "@visulima/tsconfig": "2.1.0",
@@ -201,12 +201,12 @@
201
201
  "defu": "6.1.4",
202
202
  "fastest-levenshtein": "1.0.16",
203
203
  "hookable": "5.5.3",
204
- "html-minifier-next": "^4.7.0",
204
+ "html-minifier-next": "^4.9.2",
205
205
  "jiti": "2.6.0",
206
206
  "magic-string": "0.30.19",
207
207
  "mlly": "1.8.0",
208
208
  "picomatch": "4.0.3",
209
- "rollup": "^4.53.3",
209
+ "rollup": "^4.53.5",
210
210
  "semver": "7.7.2",
211
211
  "tinyexec": "1.0.1",
212
212
  "tinyglobby": "0.2.15"
@@ -214,8 +214,8 @@
214
214
  "peerDependencies": {
215
215
  "@arethetypeswrong/core": ">=0.18.2",
216
216
  "@swc/core": ">=1.11.29",
217
- "@tailwindcss/node": "^4.1.17",
218
- "@tailwindcss/oxide": "^4.1.17",
217
+ "@tailwindcss/node": "^4.1.18",
218
+ "@tailwindcss/oxide": "^4.1.18",
219
219
  "cssnano": ">=7.0.6",
220
220
  "esbuild": ">=0.20.2",
221
221
  "icss-utils": ">=5.1.0",
@@ -230,16 +230,16 @@
230
230
  "postcss-modules-scope": ">=3.2.0",
231
231
  "postcss-modules-values": ">=4.0.0",
232
232
  "postcss-value-parser": ">=4.2.0",
233
+ "rollup-plugin-svelte": ">=7",
233
234
  "sass": ">=1.43.4",
234
235
  "sass-embedded": ">=1.79.4",
235
236
  "stylus": ">=0.63.0",
236
- "unplugin-vue": ">=7",
237
- "rollup-plugin-svelte": ">=7",
238
237
  "sucrase": ">=3.35.0",
239
238
  "typedoc": ">=0.26.0",
240
239
  "typedoc-plugin-markdown": ">=4.2.0",
241
240
  "typedoc-plugin-rename-defaults": ">=0.7.0",
242
- "typescript": ">=4.5 || >=5.0"
241
+ "typescript": ">=4.5 || >=5.0",
242
+ "unplugin-vue": ">=7"
243
243
  },
244
244
  "peerDependenciesMeta": {
245
245
  "@arethetypeswrong/core": {
@@ -1 +0,0 @@
1
- import{d as a}from"./isolatedDeclarationsOxcTransformer-WbfE6cGu-NeZOx2Y7.js";import{z as s}from"./oxcResolvePlugin-Ccef6pyL-D14z9S9i.js";import{n as x}from"./oxcTransformPlugin-DfVQouIB-Cpfv95eA.js";export{a as isolatedDeclarationsOxcTransformer,s as oxcResolvePlugin,x as oxcTransformPlugin};