Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@warp-ds/esbuild-plugin

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@warp-ds/esbuild-plugin - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

release/warp-ds-esbuild-plugin-1.0.3.tgz

7

CHANGELOG.md

@@ -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 @@

2

package.json
{
"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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc