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

msx-loader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msx-loader - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

32

index.js

@@ -1,6 +0,34 @@

var msx = require('msx')
var loaderUtils = require('loader-utils');
var msx = require('msx');
module.exports = function(source) {
this.cacheable();
return msx.transform(source);
var params = loaderUtils.parseQuery(this.query);
if (params.harmony == 'false') {
params.harmony = false;
}
if (params.precompile == 'false') {
params.precompile = false;
}
var whitelist = {
harmony: true,
precompile: true
};
var unknownParams = [];
for (var i in params) {
if (!whitelist[i])
unknownParams.push(i);
}
if (unknownParams.length) {
var warn = unknownParams.length === 1 ?
'msx-loader got this undocumented option: ' :
'msx-loader got these undocumented options: ';
warn += unknownParams.join(', ');
this.emitWarning(warn);
}
return msx.transform(source, params);
};

5

package.json
{
"name": "msx-loader",
"version": "0.1.0",
"version": "0.2.0",
"description": "MSX loader for webpack",
"main": "index.js",
"dependencies": {
"msx": "0.1.3"
"msx": "0.3.0",
"loader-utils": "0.2.6"
},

@@ -9,0 +10,0 @@ "scripts": {

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