Skip to content

Commit

Permalink
Update source_maps example to fit recent changes
Browse files Browse the repository at this point in the history
	Error: bundle() no longer accepts option arguments.
  • Loading branch information
HaNdTriX committed Sep 25, 2014
1 parent c7a918f commit 3ffbbc3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions example/source_maps/build.js
Expand Up @@ -4,7 +4,10 @@ var browserify = require('../..'),
bundlePath = path.join(__dirname, 'js', 'build', 'bundle.js');

browserify()
.require(require.resolve('./js/main.js'), { entry: true })
.bundle({ debug: true })
.require(require.resolve('./js/main.js'), {
entry: true,
debug: true
})
.bundle()
.on('error', function (err) { console.error(err); })
.pipe(fs.createWriteStream(bundlePath));

0 comments on commit 3ffbbc3

Please sign in to comment.