Skip to content

Commit

Permalink
Allow for updated Rollup config with nested output
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
OverZealous committed Jan 8, 2018
1 parent 0c5ddd8 commit 5cfd7e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ function createPreprocessor(options, preconfig, basePath, emitter, logger) {
})
.then(generated => {
let output = generated.code
if (config.sourcemap === 'inline') {
let sourcemap = config.output && config.output.sourcemap || config.sourcemap
if (sourcemap === 'inline') {
output += `\n//# sourceMappingURL=${generated.map.toUrl()}\n`
}
done(null, output)
Expand Down

0 comments on commit 5cfd7e9

Please sign in to comment.