Socket
Socket
Sign inDemoInstall

mcss-alias-loader

Package Overview
Dependencies
5
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

18

index.js

@@ -5,10 +5,14 @@ var loaderUtils = require('loader-utils');

this.cacheable && this.cacheable();
const {
alias
} = loaderUtils.getOptions(this);
const { alias } = loaderUtils.getOptions(this);
// const alias
return content.replace(/@(?:import|abstract)(?:\s+)(?:'|")(\w+)/g, function (_, $1) {
return alias[$1] ? alias[$1] : $1;
})
};
return content.replace(
/@(import|abstract)(?:\s+)('|")(\w+)/g,
function (partten, impt, quote, alia) {
if (alias[alia]) {
return `@${impt} ${quote}${alias[alia]}`;
}
return partten;
}
);
};
{
"name": "mcss-alias-loader",
"version": "0.0.1",
"version": "0.0.2",
"description": "uising webpack alias for mcss",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc