@warp-ds/esbuild-plugin
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,8 @@ | ||
## [1.0.3](https://github.com/warp-ds/esbuild-plugin/compare/v1.0.2...v1.0.3) (2024-08-12) | ||
### Bug Fixes | ||
* improve loader detection ([#3](https://github.com/warp-ds/esbuild-plugin/issues/3)) ([68f825b](https://github.com/warp-ds/esbuild-plugin/commit/68f825bd91fe87506e882bffd588aeac678d8ffd)) | ||
## [1.0.2](https://github.com/warp-ds/esbuild-plugin/compare/v1.0.1...v1.0.2) (2024-08-12) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@warp-ds/esbuild-plugin", | ||
"type": "module", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -6,0 +6,0 @@ "main": "./src/plugin.js", |
@@ -62,3 +62,3 @@ import path from "node:path"; | ||
* @param {boolean} [options.minify] | ||
* @returns object | ||
* @returns {import('esbuild').Plugin} | ||
*/ | ||
@@ -70,3 +70,2 @@ export default ({ | ||
} = {}) => { | ||
/** @type {import('esbuild').Plugin}*/ | ||
return { | ||
@@ -82,3 +81,2 @@ name: "warp-esbuild-plugin", | ||
let trees = []; | ||
// On resolve build up a import tree hierarchy of which files | ||
@@ -94,3 +92,3 @@ // import which files in the module structure | ||
trees.push(tree); | ||
return {}; | ||
return null; | ||
} | ||
@@ -105,3 +103,3 @@ | ||
return {}; | ||
return null; | ||
}); | ||
@@ -134,7 +132,12 @@ | ||
let maybeLoader = ext.replace(".", ""); | ||
if (maybeLoader === "mjs" || maybeLoader === "cjs") { | ||
maybeLoader = "js"; | ||
} | ||
if (maybeLoader === "mts" || maybeLoader === "cts") { | ||
maybeLoader = "ts"; | ||
} | ||
return { | ||
contents, | ||
loader: /** @type {import('esbuild').Loader} */ ( | ||
ext.replace(".", "") | ||
), | ||
loader: /** @type {import('esbuild').Loader} */ (maybeLoader), | ||
}; | ||
@@ -141,0 +144,0 @@ }); |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
39793
772
1