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

@babel/plugin-transform-modules-commonjs

Package Overview
Dependencies
Maintainers
6
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-modules-commonjs - npm Package Compare versions

Comparing version 7.12.13 to 7.13.0

10

lib/index.js

@@ -21,6 +21,7 @@ "use strict";

var _default = (0, _helperPluginUtils.declare)((api, options) => {
var _api$assumption, _api$assumption2;
api.assertVersion(7);
const transformImportCall = (0, _utils.createDynamicImportTransform)(api);
const {
loose,
strictNamespace = false,

@@ -35,2 +36,4 @@ mjsStrictNamespace = true,

} = options;
const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : options.loose;
const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : options.loose;

@@ -149,3 +152,4 @@ if (typeof lazy !== "boolean" && typeof lazy !== "function" && (!Array.isArray(lazy) || !lazy.every(item => typeof item === "string"))) {

exportName: "exports",
loose,
constantReexports,
enumerableModuleMeta,
strict,

@@ -187,3 +191,3 @@ strictMode,

headers.push(header);
headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, loose));
headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports));
}

@@ -190,0 +194,0 @@

{
"name": "@babel/plugin-transform-modules-commonjs",
"version": "7.12.13",
"version": "7.13.0",
"description": "This plugin transforms ES2015 modules to CommonJS",

@@ -16,4 +16,4 @@ "repository": {

"dependencies": {
"@babel/helper-module-transforms": "^7.12.13",
"@babel/helper-plugin-utils": "^7.12.13",
"@babel/helper-module-transforms": "^7.13.0",
"@babel/helper-plugin-utils": "^7.13.0",
"@babel/helper-simple-access": "^7.12.13",

@@ -29,3 +29,3 @@ "babel-plugin-dynamic-import-node": "^2.3.3"

"devDependencies": {
"@babel/core": "7.12.13",
"@babel/core": "7.13.0",
"@babel/helper-plugin-test-runner": "7.12.13",

@@ -32,0 +32,0 @@ "@babel/plugin-syntax-object-rest-spread": "^7.8.0"

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