Socket
Socket
Sign inDemoInstall

ngc-webpack

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngc-webpack - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

package.json
{
"name": "ngc-webpack",
"version": "1.0.7",
"version": "1.0.8",
"description": "A wrapper for the angular compiler-cli with webpack integration",

@@ -5,0 +5,0 @@ "author": "Shlomi Assaf <shlomiasaf@gmail.com>",

@@ -5,2 +5,21 @@ "use strict";

var plugin_1 = require('./plugin');
/**
* Resolve the config to an object.
* If it's a fn, invoke.
*
* Also check if it's a mocked ES6 Module in cases where TS file is used that uses "export default"
* @param config
* @returns {any}
*/
function resolveConfig(config) {
if (typeof config === 'function') {
return config();
}
else if (config.__esModule === true && !!config.default) {
return resolveConfig(config.default);
}
else {
return config;
}
}
var WebpackWrapper = (function () {

@@ -13,3 +32,3 @@ function WebpackWrapper(webpackConfigPath) {

var config = require(this.webpackConfigPath);
this.config = typeof config === 'function' ? config() : config;
this.config = resolveConfig(config);
}

@@ -16,0 +35,0 @@ catch (err) {

Sorry, the diff of this file is not supported yet

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