-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from nogic1008/hotfix/jest-transform
[BREAKING CHANGE] remove inline source-map on process() output
- Loading branch information
Showing
4 changed files
with
57 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,140 +1,99 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`generates source maps for .vue files 1`] = ` | ||
"\\"use strict\\"; | ||
Object { | ||
"mappings": ";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AAPA;AASA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AAHA;AAjBA;;;;AAvBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA", | ||
"names": Array [], | ||
"sources": Array [ | ||
"Basic.vue", | ||
], | ||
"sourcesContent": Array [ | ||
"<template> | ||
<div class=\\"hello\\"> | ||
<h1 :class=\\"headingClasses\\">{{ msg }}</h1> | ||
</div> | ||
</template> | ||
Object.defineProperty(exports, \\"__esModule\\", { | ||
value: true | ||
}); | ||
exports[\\"default\\"] = void 0; | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
var _default = { | ||
<style module=\\"css\\"> | ||
.testA { | ||
background-color: red; | ||
} | ||
</style> | ||
<style module> | ||
.testB { | ||
background-color: blue; | ||
} | ||
</style> | ||
<style> | ||
.testC { | ||
background-color: blue; | ||
} | ||
</style> | ||
<script> | ||
export default { | ||
name: 'basic', | ||
computed: { | ||
headingClasses: function headingClasses() { | ||
return { | ||
red: this.isCrazy, | ||
blue: !this.isCrazy, | ||
shadow: this.isCrazy | ||
}; | ||
} | ||
} | ||
}, | ||
data: function data() { | ||
return { | ||
msg: 'Welcome to Your Vue.js App', | ||
isCrazy: false | ||
}; | ||
} | ||
}, | ||
methods: { | ||
toggleClass: function toggleClass() { | ||
this.isCrazy = !this.isCrazy; | ||
this.isCrazy = !this.isCrazy | ||
} | ||
} | ||
}; | ||
exports[\\"default\\"] = _default; | ||
; | ||
var __options__ = typeof exports.default === 'function' ? exports.default.options : exports.default | ||
var render = function() { | ||
var _vm = this | ||
var _h = _vm.$createElement | ||
/* istanbul ignore next */ | ||
var _c = _vm._self._c || _h | ||
return _c(\\"div\\", { staticClass: \\"hello\\" }, [ | ||
_c(\\"h1\\", { class: _vm.headingClasses }, [_vm._v(_vm._s(_vm.msg))]) | ||
]) | ||
} | ||
var staticRenderFns = [] | ||
render._withStripped = true | ||
__options__.render = render | ||
__options__.staticRenderFns = staticRenderFns | ||
;(function() { | ||
var beforeCreate = __options__.beforeCreate | ||
var styleFn = function () { if(!this['css']) { | ||
this['css'] = {}; | ||
} | ||
this['css'] = Object.assign( | ||
this['css'], {\\"testA\\":\\"testA\\"}); | ||
if(!this['$style']) { | ||
this['$style'] = {}; | ||
</script> | ||
", | ||
], | ||
"version": 3, | ||
} | ||
this['$style'] = Object.assign( | ||
this['$style'], {\\"testB\\":\\"testB\\"}); | ||
} | ||
__options__.beforeCreate = beforeCreate ? [].concat(beforeCreate, styleFn) : [styleFn] | ||
})() | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2ljLnZ1ZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO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gICAgICAgc2hhZG93OiB0aGlzLmlzQ3JhenlcbiAgICAgIH1cbiAgICB9XG4gIH0sXG4gIGRhdGE6IGZ1bmN0aW9uIGRhdGEoKSB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG1zZzogJ1dlbGNvbWUgdG8gWW91ciBWdWUuanMgQXBwJyxcbiAgICAgIGlzQ3Jhenk6IGZhbHNlXG4gICAgfVxuICB9LFxuICBtZXRob2RzOiB7XG4gICAgdG9nZ2xlQ2xhc3M6IGZ1bmN0aW9uIHRvZ2dsZUNsYXNzKCkge1xuICAgICAgdGhpcy5pc0NyYXp5ID0gIXRoaXMuaXNDcmF6eVxuICAgIH1cbiAgfVxufVxuPC9zY3JpcHQ+XG4iXX0=" | ||
`; | ||
|
||
exports[`generates source maps using src attributes 1`] = ` | ||
"\\"use strict\\"; | ||
Object.defineProperty(exports, \\"__esModule\\", { | ||
value: true | ||
}); | ||
exports[\\"default\\"] = void 0; | ||
var _default = { | ||
Object { | ||
"mappings": ";;;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAHA;AAKA;AAPA;AASA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AAHA;AAjBA", | ||
"names": Array [], | ||
"sources": Array [ | ||
"SourceMapsSrc.vue", | ||
], | ||
"sourcesContent": Array [ | ||
"export default { | ||
name: 'basic', | ||
computed: { | ||
headingClasses: function headingClasses() { | ||
return { | ||
red: this.isCrazy, | ||
blue: !this.isCrazy, | ||
shadow: this.isCrazy | ||
}; | ||
} | ||
} | ||
}, | ||
data: function data() { | ||
return { | ||
msg: 'Welcome to Your Vue.js App', | ||
isCrazy: false | ||
}; | ||
} | ||
}, | ||
methods: { | ||
toggleClass: function toggleClass() { | ||
this.isCrazy = !this.isCrazy; | ||
this.isCrazy = !this.isCrazy | ||
} | ||
} | ||
}; | ||
exports[\\"default\\"] = _default; | ||
; | ||
var __options__ = typeof exports.default === 'function' ? exports.default.options : exports.default | ||
var render = function() { | ||
var _vm = this | ||
var _h = _vm.$createElement | ||
/* istanbul ignore next */ | ||
var _c = _vm._self._c || _h | ||
return _c(\\"div\\", { staticClass: \\"hello\\" }, [ | ||
_c(\\"h1\\", { class: _vm.headingClasses }, [_vm._v(_vm._s(_vm.msg))]) | ||
]) | ||
} | ||
var staticRenderFns = [] | ||
render._withStripped = true | ||
__options__.render = render | ||
__options__.staticRenderFns = staticRenderFns | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNvdXJjZU1hcHNTcmMudnVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUhBO0FBS0E7QUFQQTtBQVNBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSEE7QUFqQkEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCB7XG4gIG5hbWU6ICdiYXNpYycsXG4gIGNvbXB1dGVkOiB7XG4gICAgaGVhZGluZ0NsYXNzZXM6IGZ1bmN0aW9uIGhlYWRpbmdDbGFzc2VzKCkge1xuICAgICAgcmV0dXJuIHtcbiAgICAgICAgcmVkOiB0aGlzLmlzQ3JhenksXG4gICAgICAgIGJsdWU6ICF0aGlzLmlzQ3JhenksXG4gICAgICAgIHNoYWRvdzogdGhpcy5pc0NyYXp5XG4gICAgICB9XG4gICAgfVxuICB9LFxuICBkYXRhOiBmdW5jdGlvbiBkYXRhKCkge1xuICAgIHJldHVybiB7XG4gICAgICBtc2c6ICdXZWxjb21lIHRvIFlvdXIgVnVlLmpzIEFwcCcsXG4gICAgICBpc0NyYXp5OiBmYWxzZVxuICAgIH1cbiAgfSxcbiAgbWV0aG9kczoge1xuICAgIHRvZ2dsZUNsYXNzOiBmdW5jdGlvbiB0b2dnbGVDbGFzcygpIHtcbiAgICAgIHRoaXMuaXNDcmF6eSA9ICF0aGlzLmlzQ3JhenlcbiAgICB9XG4gIH1cbn1cbiJdfQ==" | ||
", | ||
], | ||
"version": 3, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters