unplugin-isolated-decl 0.6.4 → 0.6.5

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/dist/esbuild.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_src_index = require('./src_index-aktHg0-4.cjs');
2
+ const require_src_index = require('./src_index-BzyMNf8g.cjs');
3
3
  require('./transformer-9aaNC01N.cjs');
4
4
 
5
5
  //#region src/esbuild.ts
package/dist/esbuild.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./transformer-GSFmnEOV.js";
2
- import { IsolatedDecl } from "./src_index--re26uDb.js";
2
+ import { IsolatedDecl } from "./src_index-yD9cu-PW.js";
3
3
 
4
4
  //#region src/esbuild.ts
5
5
  var esbuild_default = IsolatedDecl.esbuild;
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_src_index = require('./src_index-aktHg0-4.cjs');
2
+ const require_src_index = require('./src_index-BzyMNf8g.cjs');
3
3
  require('./transformer-9aaNC01N.cjs');
4
4
 
5
5
  Object.defineProperty(exports, 'IsolatedDecl', {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./transformer-GSFmnEOV.js";
2
- import { IsolatedDecl, lowestCommonAncestor } from "./src_index--re26uDb.js";
2
+ import { IsolatedDecl, lowestCommonAncestor } from "./src_index-yD9cu-PW.js";
3
3
 
4
4
  export { IsolatedDecl, lowestCommonAncestor };
package/dist/rolldown.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_src_index = require('./src_index-aktHg0-4.cjs');
2
+ const require_src_index = require('./src_index-BzyMNf8g.cjs');
3
3
  require('./transformer-9aaNC01N.cjs');
4
4
 
5
5
  //#region src/rolldown.ts
package/dist/rolldown.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./transformer-GSFmnEOV.js";
2
- import { IsolatedDecl } from "./src_index--re26uDb.js";
2
+ import { IsolatedDecl } from "./src_index-yD9cu-PW.js";
3
3
 
4
4
  //#region src/rolldown.ts
5
5
  var rolldown_default = IsolatedDecl.rolldown;
package/dist/rollup.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_src_index = require('./src_index-aktHg0-4.cjs');
2
+ const require_src_index = require('./src_index-BzyMNf8g.cjs');
3
3
  require('./transformer-9aaNC01N.cjs');
4
4
 
5
5
  //#region src/rollup.ts
package/dist/rollup.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./transformer-GSFmnEOV.js";
2
- import { IsolatedDecl } from "./src_index--re26uDb.js";
2
+ import { IsolatedDecl } from "./src_index-yD9cu-PW.js";
3
3
 
4
4
  //#region src/rollup.ts
5
5
  var rollup_default = IsolatedDecl.rollup;
@@ -54,12 +54,9 @@ const IsolatedDecl = createUnplugin((rawOptions = {}) => {
54
54
  outputFiles[stripExt(filename)] = source;
55
55
  }
56
56
  const rollup = { renderStart(outputOptions, inputOptions) {
57
- let outBase = "";
58
- let input = inputOptions.input;
59
- input = typeof input === "string" ? [input] : input;
60
- if (Array.isArray(input)) {
61
- outBase = lowestCommonAncestor(...input);
62
- }
57
+ const { input } = inputOptions;
58
+ const normalizedInput = typeof input === "string" ? [input] : Array.isArray(input) ? input : Object.values(input);
59
+ const outBase = lowestCommonAncestor(...normalizedInput);
63
60
  if (typeof outputOptions.entryFileNames !== "string") {
64
61
  return this.error("entryFileNames must be a string");
65
62
  }
@@ -30,12 +30,9 @@ const IsolatedDecl = createUnplugin((rawOptions = {}) => {
30
30
  outputFiles[stripExt(filename)] = source;
31
31
  }
32
32
  const rollup = { renderStart(outputOptions, inputOptions) {
33
- let outBase = "";
34
- let input = inputOptions.input;
35
- input = typeof input === "string" ? [input] : input;
36
- if (Array.isArray(input)) {
37
- outBase = lowestCommonAncestor(...input);
38
- }
33
+ const { input } = inputOptions;
34
+ const normalizedInput = typeof input === "string" ? [input] : Array.isArray(input) ? input : Object.values(input);
35
+ const outBase = lowestCommonAncestor(...normalizedInput);
39
36
  if (typeof outputOptions.entryFileNames !== "string") {
40
37
  return this.error("entryFileNames must be a string");
41
38
  }
package/dist/vite.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const require_src_index = require('./src_index-aktHg0-4.cjs');
2
+ const require_src_index = require('./src_index-BzyMNf8g.cjs');
3
3
  require('./transformer-9aaNC01N.cjs');
4
4
 
5
5
  //#region src/vite.ts
package/dist/vite.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./transformer-GSFmnEOV.js";
2
- import { IsolatedDecl } from "./src_index--re26uDb.js";
2
+ import { IsolatedDecl } from "./src_index-yD9cu-PW.js";
3
3
 
4
4
  //#region src/vite.ts
5
5
  var vite_default = IsolatedDecl.vite;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-isolated-decl",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "A blazing-fast tool for generating isolated declarations, powered by Oxc.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -84,9 +84,9 @@
84
84
  }
85
85
  },
86
86
  "dependencies": {
87
- "@rollup/pluginutils": "^5.1.0",
87
+ "@rollup/pluginutils": "^5.1.1",
88
88
  "magic-string": "^0.30.11",
89
- "oxc-parser": "^0.29.0",
89
+ "oxc-parser": "^0.30.0",
90
90
  "unplugin": "^1.14.1"
91
91
  },
92
92
  "devDependencies": {
@@ -96,18 +96,18 @@
96
96
  "@types/node": "^22.5.5",
97
97
  "@typescript-eslint/typescript-estree": "^8.6.0",
98
98
  "bumpp": "^9.5.2",
99
- "esbuild": "^0.23.1",
100
- "eslint": "^9.10.0",
99
+ "esbuild": "^0.24.0",
100
+ "eslint": "^9.11.0",
101
101
  "fast-glob": "^3.3.2",
102
- "oxc-transform": "^0.29.0",
102
+ "oxc-transform": "^0.30.0",
103
103
  "prettier": "^3.3.3",
104
104
  "rolldown": "nightly",
105
- "rollup": "^4.21.3",
105
+ "rollup": "^4.22.4",
106
106
  "rollup-plugin-esbuild": "^6.1.1",
107
107
  "tsdown": "^0.2.16",
108
108
  "tsx": "^4.19.1",
109
109
  "typescript": "^5.6.2",
110
- "vite": "^5.4.6",
110
+ "vite": "^5.4.7",
111
111
  "vitest": "^2.1.1"
112
112
  },
113
113
  "engines": {