From e6b5c372c71bd0bbd41b59a5dfe5ef413891fbbe Mon Sep 17 00:00:00 2001 From: Aaron Jensen Date: Mon, 5 Oct 2015 08:25:40 -0700 Subject: [PATCH] Add BABEL_ENV || NODE_ENV to default cacheIdentifier --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index a65b7bd6..554c4b2b 100644 --- a/index.js +++ b/index.js @@ -33,6 +33,7 @@ module.exports = function(source, inputSourceMap) { 'babel-loader': pkg.version, 'babel-core': babel.version, babelrc: babelrc || '', + env: process.env.BABEL_ENV || process.env.NODE_ENV, }), }; var globalOptions = this.options.babel || {};