Socket
Socket
Sign inDemoInstall

@lingxiteam/bundle-less-theme-tools

Package Overview
Dependencies
Maintainers
6
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingxiteam/bundle-less-theme-tools - npm Package Compare versions

Comparing version 0.0.1-alpha.8 to 0.0.1-alpha.9

6

index.js

@@ -8,6 +8,6 @@

* @param {String} filePath less 样式文件路径
* @param {Array} modulePaths 记录-文件中含第三方模块化语法导入的less的语句
* @param {String} nodeModulesPath 第三方模块真实存放路径
* @returns
*/
function bundleLessTheme (filePath) {
function bundleLessTheme (filePath, nodeModulesPath) {
// 缓存路径,防止重复导入

@@ -85,3 +85,3 @@ const cacheImportPath = {};

const modulePath = moduleMainEntry.slice(0, moduleNameStartIndex + moduleName.length);
wholePath = path.join(modulePath, importPath.replace(moduleNameMatch, ''));
wholePath = path.join(nodeModulesPath || modulePath, importPath.replace(moduleNameMatch, ''));
} else {

@@ -88,0 +88,0 @@ wholePath = path.join(fileDirectory, importPath);

{
"name": "@lingxiteam/bundle-less-theme-tools",
"version": "0.0.1-alpha.8",
"version": "0.0.1-alpha.9",
"description": "A tool for bundling less theme files.",

@@ -8,3 +8,3 @@ "main": "index.js",

"license": "MIT",
"gitHead": "f547dd8259b5350cff3b6fcbb2abb3f4d665e92c"
"gitHead": "4bbed20b2ebdf98289d083a1a880ffe2c86700a0"
}
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