Closed lavarsicious closed 10 years ago
Hi @lavarsicious, thanks for the issue!
So the sourceMaps
option is just to make it easier (via a top-level config) to set browserify.debug
to true.
But you're right, it looks like just specifying sourceMaps: true
will not work since the browserify
config will overwrite that.
I'm working on a fix right now.
Published as 2.0.7.
Hello,
I've been having an issue getting the sourceMaps option to work. After digging around a bit I ended up getting it to work properly by explicitly setting browserify.debug = true in the moonboots config.
https://github.com/HenrikJoreteg/moonboots/blob/master/readme.md#options
sourceMaps
(optional, boolean, default: false) - set to true to enable sourcemaps (sets browserify.debug to true)Looking into it further, index.js:49 sets browserify.debug = this.config.sourceMaps prior to hydrating this.config on lines 51-53 with the options passed into the constructor, thus this.config.sourceMaps will always equal false when line 49 is executed.
https://github.com/HenrikJoreteg/moonboots/blob/master/index.js#L48-L53
Is the sourceMaps option used to do anything other than set browserify.debug? Is it needed if you can just include { browserify: { debug: true } } as part of the options passed to the constructor?
Thanks for the great work!