Comparing version 2.0.0 to 2.1.0
@@ -9,2 +9,3 @@ const resolve = require('./resolve'); | ||
const cwd = pluginOpts.basedir || process.cwd(); | ||
const logFile = pluginOpts.logFile; | ||
let defaultMainField = [ 'browser', 'module', 'main' ]; | ||
@@ -64,3 +65,3 @@ | ||
this.push({ | ||
transform: createTransform({ plainImports }), | ||
transform: createTransform({ plainImports, logFile }), | ||
global: false | ||
@@ -72,3 +73,3 @@ }); | ||
this.push({ | ||
transform: createTransform({ plainImports, filterFile: file => isNodeModule(file, cwd) }), | ||
transform: createTransform({ plainImports, logFile, filterFile: file => isNodeModule(file, cwd) }), | ||
global: true | ||
@@ -75,0 +76,0 @@ }); |
{ | ||
"name": "esmify", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "parse and handle import/export for browserify", | ||
@@ -13,21 +13,21 @@ "main": "./esmify.js", | ||
"dependencies": { | ||
"@babel/core": "^7.1.2", | ||
"@babel/plugin-syntax-async-generators": "^7.0.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.0.0", | ||
"@babel/plugin-syntax-object-rest-spread": "^7.0.0", | ||
"@babel/plugin-transform-modules-commonjs": "^7.1.0", | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-syntax-async-generators": "^7.2.0", | ||
"@babel/plugin-syntax-dynamic-import": "^7.2.0", | ||
"@babel/plugin-syntax-object-rest-spread": "^7.2.0", | ||
"@babel/plugin-transform-modules-commonjs": "^7.2.0", | ||
"babel-plugin-import-to-require": "^1.0.0", | ||
"cached-path-relative": "^1.0.1", | ||
"cached-path-relative": "^1.0.2", | ||
"concat-stream": "^1.6.2", | ||
"duplexer2": "^0.1.4", | ||
"through2": "^2.0.3" | ||
"through2": "^2.0.5" | ||
}, | ||
"devDependencies": { | ||
"brfs": "^2.0.0", | ||
"browserify": "^16.2.2", | ||
"budo": "^11.3.2", | ||
"esm": "^3.0.65", | ||
"glslify": "^6.2.1", | ||
"brfs": "^2.0.1", | ||
"browserify": "^16.2.3", | ||
"budo": "^11.6.0", | ||
"esm": "^3.1.4", | ||
"glslify": "^6.4.1", | ||
"loud-rejection": "^1.6.0", | ||
"tape": "^4.9.1", | ||
"tape": "^4.9.2", | ||
"wcag-contrast": "1.2.0" | ||
@@ -34,0 +34,0 @@ }, |
@@ -32,2 +32,4 @@ const babel = require('@babel/core'); | ||
if (babelOpts.logFile) console.log('Checking', file); | ||
const output = through(); | ||
@@ -66,4 +68,7 @@ const stream = duplexer(concat(code => { | ||
if (babelOpts.logFile) console.log('Transforming', file); | ||
delete settings.filterFile; | ||
delete settings.filterSource; | ||
delete settings.logFile; | ||
delete settings.plainImports; | ||
@@ -70,0 +75,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
12165
179