module-definition
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -26,2 +26,3 @@ 'use strict'; | ||
let hasES6Export = false; | ||
let hasDynamicImport = false; | ||
@@ -54,3 +55,3 @@ // Walker accepts as AST to avoid reparsing | ||
if (hasES6Import || hasES6Export) { | ||
if (hasES6Import || hasES6Export || hasDynamicImport) { | ||
type = 'es6'; | ||
@@ -57,0 +58,0 @@ walker.stopWalking(); |
{ | ||
"name": "module-definition", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "Determines if a file is using a CommonJS or AMD module definition", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"ast-module-types": "^2.4.0", | ||
"ast-module-types": "^2.6.0", | ||
"node-source-walk": "^4.0.0" | ||
@@ -23,0 +23,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5294
111
Updatedast-module-types@^2.6.0