closure-loader
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -31,3 +31,2 @@ var loaderUtils = require("loader-utils"), | ||
var provideRegExp = /goog\.provide\((['"])(([^.)]+)[^)]*)\1\)/g, | ||
matchCount = 0, | ||
firstMatch, | ||
@@ -46,6 +45,5 @@ matches; | ||
source = source.replace(matches[0], createProvide(matches[2], matches[3])); | ||
matchCount++; | ||
} | ||
if (es6mode && matchCount === 1 && firstMatch) { | ||
if (es6mode && firstMatch) { | ||
source = appendLine(source, 'module.exports.default = ' + firstMatch + ';'); | ||
@@ -52,0 +50,0 @@ source = appendLine(source, 'module.exports.__esModule = true;'); |
{ | ||
"name": "closure-loader", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Webpack loader for google closure library dependencies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
35143
126