Skip to content

Commit

Permalink
Merge pull request #276 from nogic1008/hotfix/transform-next
Browse files Browse the repository at this point in the history
fix: convert SourceMapGenerator to RawSourceMap in next branch
  • Loading branch information
lmiller1990 authored Sep 17, 2020
2 parents 416c38e + 6a48f76 commit bb5be76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ module.exports = function(src, filename, config) {

return {
code: output.code,
map
map: map && map.toJSON()
}
}
5 changes: 3 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ const getBabelOptions = function loadBabelOptions(filename, options = {}) {
const getTsJestConfig = function getTsJestConfig(config) {
const createTransformer = require('ts-jest').createTransformer
const tr = createTransformer()
const { typescript } = tr.configsFor(config)
const configSet = tr.configsFor(config)
const tsConfig = configSet.typescript || configSet.parsedTsConfig
// Force es5 to prevent const vue_1 = require('vue') from conflicting
return { compilerOptions: { ...typescript.options, target: 'es5' } }
return { compilerOptions: { ...tsConfig.options, target: 'es5' } }
}

function isValidTransformer(transformer) {
Expand Down

0 comments on commit bb5be76

Please sign in to comment.