diff --git a/index.js b/index.js index fc64dd9..abd8811 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ var GulpBrowserBrowserify; } cb(null, file); }; - plugins.browserify(file) + plugins.browserify(file, { basedir: file.base }) .bundle(bundleCallback); }); }; diff --git a/ts/modulebrowserify.ts b/ts/modulebrowserify.ts index 3539b48..ec3f532 100644 --- a/ts/modulebrowserify.ts +++ b/ts/modulebrowserify.ts @@ -11,7 +11,7 @@ module GulpBrowserBrowserify { } cb(null,file); }; - plugins.browserify(file) + plugins.browserify(file, { basedir: file.base }) .bundle(bundleCallback) }); };