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

esbuild-plugin-less

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-plugin-less - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

build/cjs.js

@@ -1,1 +0,1 @@

var h=Object.create,a=Object.defineProperty,d=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,u=Object.getOwnPropertyNames,v=Object.getOwnPropertyDescriptor;var p=s=>a(s,"__esModule",{value:!0});var w=(s,e)=>{p(s);for(var t in e)a(s,t,{get:e[t],enumerable:!0})},L=(s,e,t)=>{if(p(s),e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!f.call(s,r)&&r!=="default"&&a(s,r,{get:()=>e[r],enumerable:!(t=v(e,r))||t.enumerable});return s},n=s=>s&&s.__esModule?s:L(a(s!=null?h(d(s)):{},"default",{value:s,enumerable:!0}),s);w(exports,{lessLoader:()=>P});var o=n(require("path")),l=n(require("fs")),i=n(require("less")),c="less";function P(s={}){return{name:"less-loader",setup:e=>{e.onResolve({filter:/\.less$/},t=>({path:o.resolve(process.cwd(),o.relative(process.cwd(),t.resolveDir),t.path),namespace:c})),e.onLoad({filter:/.*/,namespace:c},async t=>{let r=await l.promises.readFile(t.path,"utf-8"),m=o.dirname(t.path);return{contents:(await i.default.render(r,{...s,paths:[...s.paths||[],m]})).css,loader:"css"}})}}}
var f=Object.create,o=Object.defineProperty,d=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,v=Object.getOwnPropertyNames,w=Object.getOwnPropertyDescriptor;var l=e=>o(e,"__esModule",{value:!0});var L=(e,s)=>{l(e);for(var t in s)o(e,t,{get:s[t],enumerable:!0})},D=(e,s,t)=>{if(l(e),s&&typeof s=="object"||typeof s=="function")for(let a of v(s))!u.call(e,a)&&a!=="default"&&o(e,a,{get:()=>s[a],enumerable:!(t=w(s,a))||t.enumerable});return e},p=e=>e&&e.__esModule?e:D(o(e!=null?f(d(e)):{},"default",{value:e,enumerable:!0}),e);L(exports,{lessLoader:()=>P});var r=p(require("path")),i=p(require("fs")),c=p(require("less")),h="less";function P(e={}){return{name:"less-loader",setup:s=>{s.onResolve({filter:/\.less$/},t=>({path:r.resolve(process.cwd(),r.relative(process.cwd(),t.resolveDir),t.path),namespace:h})),s.onLoad({filter:/.*/,namespace:h},async t=>{let a=await i.promises.readFile(t.path,"utf-8"),n=r.dirname(t.path),m=r.basename(t.path);return{contents:(await c.default.render(a,{filename:m,rootpath:n,paths:[...e.paths||[],n],...e})).css,loader:"css",resolveDir:n}})}}}

@@ -1,1 +0,1 @@

import{dirname as n,relative as p,resolve as l}from"path";import{promises as i}from"fs";import c from"less";var r="less";function m(e={}){return{name:"less-loader",setup:t=>{t.onResolve({filter:/\.less$/},s=>({path:l(process.cwd(),p(process.cwd(),s.resolveDir),s.path),namespace:r})),t.onLoad({filter:/.*/,namespace:r},async s=>{let o=await i.readFile(s.path,"utf-8"),a=n(s.path);return{contents:(await c.render(o,{...e,paths:[...e.paths||[],a]})).css,loader:"css"}})}}}export{m as lessLoader};
import{basename as p,dirname as l,relative as i,resolve as c}from"path";import{promises as h}from"fs";import m from"less";var a="less";function f(t={}){return{name:"less-loader",setup:r=>{r.onResolve({filter:/\.less$/},e=>({path:c(process.cwd(),i(process.cwd(),e.resolveDir),e.path),namespace:a})),r.onLoad({filter:/.*/,namespace:a},async e=>{let o=await h.readFile(e.path,"utf-8"),s=l(e.path),n=p(e.path);return{contents:(await m.render(o,{filename:n,rootpath:s,paths:[...t.paths||[],s],...t})).css,loader:"css",resolveDir:s}})}}}export{f as lessLoader};
{
"name": "esbuild-plugin-less",
"version": "0.0.6",
"version": "0.0.7",
"description": "esbuild plugin for less files",

@@ -44,3 +44,3 @@ "repository": "https://github.com/iam-medvedev/esbuild-plugin-less.git",

"@types/less": "^3.0.2",
"less": "^4.1.0"
"less": "^4.1.1"
},

@@ -47,0 +47,0 @@ "keywords": [

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