@visulima/packem-rollup 1.0.0-alpha.70 → 1.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## @visulima/packem-rollup [1.0.0-alpha.71](https://github.com/visulima/packem/compare/@visulima/packem-rollup@1.0.0-alpha.70...@visulima/packem-rollup@1.0.0-alpha.71) (2026-06-03)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **packem:** replace node-resolve with oxc resolver & isolate DTS cache per entry-set ([#206](https://github.com/visulima/packem/issues/206)) ([b2eb482](https://github.com/visulima/packem/commit/b2eb4822b44393add900d1d2272bc886b13ce738))
6
+
7
+
8
+ ### Dependencies
9
+
10
+ * **@visulima/rollup-plugin-dts:** upgraded to 1.0.0-alpha.32
11
+
1
12
  ## @visulima/packem-rollup [1.0.0-alpha.70](https://github.com/visulima/packem/compare/@visulima/packem-rollup@1.0.0-alpha.69...@visulima/packem-rollup@1.0.0-alpha.70) (2026-06-03)
2
13
 
3
14
 
package/dist/index.d.ts CHANGED
@@ -10,8 +10,6 @@ export { type Alias, type ResolverObject as AliasResolverObject, type ResolvedAl
10
10
  import { RollupCommonJSOptions } from '@rollup/plugin-commonjs';
11
11
  export { type RollupCommonJSOptions, default as commonjs } from '@rollup/plugin-commonjs';
12
12
  import { RollupJsonOptions } from '@rollup/plugin-json';
13
- import { RollupNodeResolveOptions } from '@rollup/plugin-node-resolve';
14
- export { type RollupNodeResolveOptions, default as nodeResolve } from '@rollup/plugin-node-resolve';
15
13
  import { RollupReplaceOptions } from '@rollup/plugin-replace';
16
14
  export { type RollupReplaceOptions, default as replace } from '@rollup/plugin-replace';
17
15
  import { RollupWasmOptions } from '@rollup/plugin-wasm';
@@ -664,15 +662,41 @@ interface RollupDynamicImportVariablesOptions {
664
662
  */
665
663
  warnOnError?: boolean;
666
664
  }
667
- interface ExtendedRollupNodeResolveOptions extends RollupNodeResolveOptions {
665
+ /**
666
+ * Legacy `@rollup/plugin-node-resolve` option keys. Module resolution is now
667
+ * handled by the oxc resolver, but these keys are still accepted and mapped onto
668
+ * the equivalent oxc-resolver options at build time so existing configs (and the
669
+ * svelte/solid presets) keep working. Prefer the native oxc keys
670
+ * (`conditionNames`, `aliasFields`, …) in new configs.
671
+ */
672
+ interface LegacyNodeResolveOptions {
673
+ /** Node-resolve `allowExportsFolderMapping`; ignored by the oxc resolver (dropped at build time). */
674
+ allowExportsFolderMapping?: boolean;
675
+ /** Node-resolve `browser`; maps to the `"browser"` condition + the `browser` alias field. */
676
+ browser?: boolean;
677
+ /** Node-resolve `exportConditions`; maps to (and is prepended onto) `conditionNames`. */
678
+ exportConditions?: string[];
679
+ /**
680
+ * Node-resolve `preferBuiltins`. Node builtins are externalized by the externals
681
+ * plugin, so this is dropped before reaching the oxc resolver; it is retained as a
682
+ * config key only because the build runtime still sets it from `runtime`.
683
+ */
684
+ preferBuiltins?: boolean;
685
+ }
686
+ /**
687
+ * Module-resolution options, passed to the oxc-resolver-backed resolve plugin.
688
+ * Accepts the native oxc-resolver options plus a few legacy node-resolve keys
689
+ * ({@link LegacyNodeResolveOptions}) that are mapped onto their oxc equivalents.
690
+ */
691
+ type ResolveOptions = LegacyNodeResolveOptions & OXCResolveOptions & {
668
692
  /**
669
- * Controls how unresolved import warnings from the node-resolve plugin are handled.
670
- * - `"error"` (default): Treat unresolved imports as errors, causing the build to fail
671
- * - `"warn"`: Treat unresolved imports as warnings, allowing the build to continue
693
+ * Controls how unresolved imports are handled.
694
+ * - `"error"` (default): treat unresolved imports as errors, failing the build.
695
+ * - `"warn"`: emit a warning and continue.
672
696
  * @default "error"
673
697
  */
674
698
  unresolvedImportBehavior?: "error" | "warn";
675
- }
699
+ };
676
700
  interface PackemRollupOptions {
677
701
  alias?: RollupAliasOptions | false;
678
702
  babel?: BabelPluginConfig | false;
@@ -690,9 +714,6 @@ interface PackemRollupOptions {
690
714
  dts?: Options$2;
691
715
  dynamicVars?: RollupDynamicImportVariablesOptions | false;
692
716
  esbuild?: Options$3 | false;
693
- experimental?: {
694
- resolve?: OXCResolveOptions | false;
695
- };
696
717
  json?: RollupJsonOptions | false;
697
718
  jsxRemoveAttributes?: JSXRemoveAttributesPlugin | false;
698
719
  license?: LicenseOptions | false;
@@ -714,7 +735,7 @@ interface PackemRollupOptions {
714
735
  raw?: RawLoaderOptions | false;
715
736
  replace?: Omit<RollupReplaceOptions, "cwd"> | false;
716
737
  requireCJS?: Options | false;
717
- resolve?: ExtendedRollupNodeResolveOptions | false;
738
+ resolve?: ResolveOptions | false;
718
739
  resolveExternals?: ResolveExternalsPluginOptions;
719
740
  shebang?: Partial<ShebangOptions> | false;
720
741
  shim?: EsmShimCjsSyntaxOptions | false;
@@ -733,4 +754,4 @@ type RollupPlugins = {
733
754
  plugin: Plugin;
734
755
  type?: "build" | "dts";
735
756
  }[];
736
- export { type ExtendedRollupNodeResolveOptions, type JSXRemoveAttributesPlugin, type PackemRollupOptions, type RollupPlugins };
757
+ export { type JSXRemoveAttributesPlugin, type LegacyNodeResolveOptions, type PackemRollupOptions, type ResolveOptions, type RollupPlugins };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{default as o}from"./plugins/chunk-splitter/index.js";import{default as a}from"./packem_shared/browserslistToEsbuild-HD6SaWPt.js";import{jsxRemoveAttributes as s}from"./plugins/jsx-remove-attributes.js";import{preserveDirectivesPlugin as l}from"./plugins/preserve-directives.js";import{pureNewExpressionPlugin as u}from"./plugins/pure-new-expression-plugin.js";import{default as x}from"@rollup/plugin-alias";import{default as n}from"@rollup/plugin-commonjs";import{default as v}from"@rollup/plugin-dynamic-import-vars";import{default as g}from"@rollup/plugin-inject";import{default as h}from"@rollup/plugin-node-resolve";import{default as w}from"@rollup/plugin-replace";import{default as T}from"@rollup/plugin-wasm";import{importTrace as N,patchErrorWithTrace as R}from"rollup-plugin-import-trace";import{default as z}from"rollup-plugin-polyfill-node";import{PluginPure as D}from"rollup-plugin-pure";import{default as S}from"rollup-plugin-visualizer";export{x as alias,a as browserslistToEsbuild,o as chunkSplitter,n as commonjs,v as dynamicImportVars,N as importTrace,g as inject,s as jsxRemoveAttributes,h as nodeResolve,R as patchErrorWithTrace,z as polyfillNode,l as preserveDirectivesPlugin,u as pureNewExpressionPlugin,D as purePlugin,w as replace,S as visualizer,T as wasm};
1
+ import{default as o}from"./plugins/chunk-splitter/index.js";import{default as a}from"./packem_shared/browserslistToEsbuild-HD6SaWPt.js";import{jsxRemoveAttributes as s}from"./plugins/jsx-remove-attributes.js";import{preserveDirectivesPlugin as l}from"./plugins/preserve-directives.js";import{pureNewExpressionPlugin as u}from"./plugins/pure-new-expression-plugin.js";import{default as x}from"@rollup/plugin-alias";import{default as c}from"@rollup/plugin-commonjs";import{default as P}from"@rollup/plugin-dynamic-import-vars";import{default as v}from"@rollup/plugin-inject";import{default as h}from"@rollup/plugin-replace";import{default as w}from"@rollup/plugin-wasm";import{importTrace as T,patchErrorWithTrace as y}from"rollup-plugin-import-trace";import{default as k}from"rollup-plugin-polyfill-node";import{PluginPure as A}from"rollup-plugin-pure";import{default as I}from"rollup-plugin-visualizer";export{x as alias,a as browserslistToEsbuild,o as chunkSplitter,c as commonjs,P as dynamicImportVars,T as importTrace,v as inject,s as jsxRemoveAttributes,y as patchErrorWithTrace,k as polyfillNode,l as preserveDirectivesPlugin,u as pureNewExpressionPlugin,A as purePlugin,h as replace,I as visualizer,w as wasm};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/packem-rollup",
3
- "version": "1.0.0-alpha.70",
3
+ "version": "1.0.0-alpha.71",
4
4
  "description": "Rollup plugins for packem",
5
5
  "keywords": [
6
6
  "visulima",
@@ -86,7 +86,6 @@
86
86
  "@rollup/plugin-dynamic-import-vars": "2.1.5",
87
87
  "@rollup/plugin-inject": "5.0.5",
88
88
  "@rollup/plugin-json": "6.1.0",
89
- "@rollup/plugin-node-resolve": "16.0.3",
90
89
  "@rollup/plugin-replace": "6.0.3",
91
90
  "@rollup/plugin-wasm": "6.2.2",
92
91
  "@rollup/pluginutils": "5.4.0",
@@ -95,7 +94,7 @@
95
94
  "@visulima/package": "5.0.0-alpha.23",
96
95
  "@visulima/packem-share": "1.0.0-alpha.48",
97
96
  "@visulima/path": "3.0.0-alpha.10",
98
- "@visulima/rollup-plugin-dts": "1.0.0-alpha.31",
97
+ "@visulima/rollup-plugin-dts": "1.0.0-alpha.32",
99
98
  "clean-css": "^5.3.3",
100
99
  "html-minifier-next": "6.2.7",
101
100
  "magic-string": "0.30.21",