diff --git a/loader.js b/loader.js index a5e5e291..43a101e7 100644 --- a/loader.js +++ b/loader.js @@ -312,7 +312,7 @@ return singleGlobal ? { default: singleGlobal } : moduleGlobal; } - var pluginRegEx = /(\.[^\/\.]+)?!(.*)/; + var pluginRegEx = /(\.[^\/\.]+|.)!(.*)/; var nodeProcess = { nextTick: function(f) { diff --git a/test/test.html b/test/test.html index 89443164..6450ca6e 100644 --- a/test/test.html +++ b/test/test.html @@ -4,11 +4,6 @@