From 0550d4517900ba9d1620d110376a3fcfe4e3c24f Mon Sep 17 00:00:00 2001 From: Stefan Penner Date: Sat, 19 Mar 2016 13:43:58 -0700 Subject: [PATCH] [BUGFIX release] fix prod-build issue --- lib/babel-build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/babel-build.js b/lib/babel-build.js index 295ae7682b5..a66b5d49cc5 100644 --- a/lib/babel-build.js +++ b/lib/babel-build.js @@ -26,7 +26,9 @@ function babelOptions(libraryName, _options) { getModuleId: function (name) { return name.replace(/\/index$/g, ''); }, - resolveModuleSource: moduleResolve + resolveModuleSource: function(source, fileName) { + return moduleResolve.call(this, source, libraryName + '/' + fileName); + } }; Object.keys(_options).forEach(function(opt) {