Socket
Socket
Sign inDemoInstall

babel-plugin-transform-cjs-system-wrapper

Package Overview
Dependencies
1
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.6.1

test/fixtures/es-module/actual.js

4

lib/index.js

@@ -25,2 +25,4 @@ 'use strict';

var buildEsModule = (0, _babelTemplate2.default)('\n Object.defineProperty(module.exports, \'__esModule\', { value: true });\n ');
return {

@@ -166,2 +168,4 @@ pre: function pre() {

if (opts.esModule) path.node.body.push(buildEsModule());
var factory = buildFactory({

@@ -168,0 +172,0 @@ BODY: path.node.body

2

package.json
{
"name": "babel-plugin-transform-cjs-system-wrapper",
"version": "0.6.0",
"version": "0.6.1",
"description": "Wraps CommonJS scripts into System.registerDynamic(...",

@@ -5,0 +5,0 @@ "repository": {

@@ -65,2 +65,3 @@ # babel-plugin-transform-cjs-system-wrapper

"deps": ["bar"],
"esModule": true,
"globals": {

@@ -93,2 +94,3 @@ "f": "foo"

deps: ['bar'], // optional (default: []),
esModule: true, // optional (default: false)
map: function(dep) {

@@ -95,0 +97,0 @@ return mappedDep

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc