rollup-plugin-esbuild
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -186,13 +186,8 @@ "use strict"; | ||
// src/tsconfig.ts | ||
var import_promises = require("fs/promises"); | ||
var import_joycon = __toESM(require("joycon")); | ||
var joycon = new import_joycon.default(); | ||
joycon.addLoader({ | ||
test: /\.json$/, | ||
load: (file) => (0, import_promises.readFile)(file, "utf8") | ||
}); | ||
var getTsconfig = async (cwd, tsconfig) => { | ||
const { data } = await joycon.load([tsconfig || "tsconfig.json"], cwd); | ||
return data; | ||
}; | ||
var import_get_tsconfig = require("get-tsconfig"); | ||
var cache = /* @__PURE__ */ new Map(); | ||
function getTsconfig(searchPath, configName) { | ||
var _a; | ||
return (_a = (0, import_get_tsconfig.getTsconfig)(searchPath, configName, cache)) == null ? void 0 : _a.config; | ||
} | ||
@@ -297,3 +292,3 @@ // src/index.ts | ||
} | ||
const tsconfigRaw = tsconfig === false ? void 0 : await getTsconfig((0, import_path2.dirname)(id), tsconfig); | ||
const tsconfigRaw = tsconfig === false ? void 0 : getTsconfig(id, tsconfig || "tsconfig.json"); | ||
const result = await (0, import_esbuild4.transform)(code, { | ||
@@ -300,0 +295,0 @@ loader, |
{ | ||
"name": "rollup-plugin-esbuild", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"packageManager": "pnpm@8.7.6", | ||
@@ -41,3 +41,3 @@ "main": "dist/index.js", | ||
"es-module-lexer": "^1.3.1", | ||
"joycon": "^3.1.1" | ||
"get-tsconfig": "^4.7.2" | ||
}, | ||
@@ -44,0 +44,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
5
26124
631
+ Addedget-tsconfig@^4.7.2
+ Addedget-tsconfig@4.8.1(transitive)
+ Addedresolve-pkg-maps@1.0.0(transitive)
- Removedjoycon@^3.1.1
- Removedjoycon@3.1.1(transitive)