babel-plugin-dotenv
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -20,5 +20,5 @@ var dotEnv = require('dotenv'); | ||
if (path.node.source.value === options.replacedModuleName) { | ||
var config = dotEnv.config({ path: sysPath.join(configDir, '.env'), slient: true }) || {}; | ||
var config = dotEnv.config({ path: sysPath.join(configDir, '.env'), silent: true }) || {}; | ||
var platformPath = (process.env.BABEL_ENV === 'development' || process.env.BABEL_ENV === undefined) ? '.env.development' : '.env.production'; | ||
var config = Object.assign(config, dotEnv.config({ path: sysPath.join(configDir, platformPath) })); | ||
var config = Object.assign(config, dotEnv.config({ path: sysPath.join(configDir, platformPath), silent: true })); | ||
@@ -25,0 +25,0 @@ path.node.specifiers.forEach(function(specifier, idx){ |
{ | ||
"name": "babel-plugin-dotenv", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Load environment variables from .env file using import statement", | ||
@@ -18,4 +18,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"babel-core": "^6.14.0", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.14.0", | ||
"babel-runtime": "^5.0.0", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.14.0", | ||
"expect.js": "^0.3.1", | ||
@@ -22,0 +23,0 @@ "istanbul": "^0.4.5", |
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
7594
6