Skip to content

Commit 5511363

Browse files
committed
expose buble option
1 parent b422cfc commit 5511363

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/loader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ module.exports = function (content) {
5555
this.sourceMap &&
5656
options.cssSourceMap !== false
5757

58+
var bubleOptions = hasBuble && options.buble ? '?' + JSON.stringify(options.buble) : ''
5859
var defaultLoaders = {
5960
html: templateCompilerPath + '?id=' + moduleId,
6061
css: styleLoaderPath + '!css-loader' + (needCssSourceMap ? '?sourceMap' : ''),
61-
js: hasBuble ? 'buble-loader' : hasBabel ? 'babel-loader' : ''
62+
js: hasBuble ? ('buble-loader' + bubleOptions) : hasBabel ? 'babel-loader' : ''
6263
}
6364

6465
// check if there are custom loaders specified via

0 commit comments

Comments
 (0)