Skip to content

Commit

Permalink
fix(plug-in): use absolute paths to reference entry points
Browse files Browse the repository at this point in the history
Closes #52
  • Loading branch information
nikku committed Dec 19, 2014
1 parent 9d0fb16 commit e6d19cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bro.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function Bro(bundleFile) {
log.debug('bundling');

files.forEach(function(f) {
w.require(f, { expose: path.relative(config.basePath, f) });
w.require(f, { expose: f });
});

w.bundle(function(err, content) {
Expand Down Expand Up @@ -276,7 +276,7 @@ function Bro(bundleFile) {
}

deferredBundle(function(err) {
done(err, 'require("' + escape(relativePath) + '");');
done(err, 'require("' + escape(absolutePath) + '");');
});
};

Expand Down

0 comments on commit e6d19cf

Please sign in to comment.