Skip to content

Commit

Permalink
Fix source path in source map
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme authored and jlmakes committed Feb 20, 2021
1 parent cec17f7 commit 335b439
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ function createPreprocessor(preconfig, config, emitter, logger) {
cache: cache.get(originalPath),
})

options.output = Object.assign({}, options.output, {
dir: path.dirname(originalPath)
})

let bundle = await rollup.rollup(options)
cache.set(originalPath, bundle.cache)

Expand Down

0 comments on commit 335b439

Please sign in to comment.