Reimplement input sourcemap merging.

This commit is contained in:
Logan Smyth
2018-04-18 15:44:46 -07:00
parent 9e7fe0ab49
commit cfb386ff03
5 changed files with 330 additions and 80 deletions

View File

@@ -4,7 +4,7 @@
"HelloWorld.vue"
],
"names": [],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA;;QAEA;;SACA;;WAEA,AACA;AAFA;AAGA;;AANA",
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAsFA;AACA,QAAA,YADA;;AAEA,SAAA;AACA,WAAA;AACA,WAAA;AADA,KAAA;AAGA;;AANA,C",
"sourceRoot": "src/components",
"sourcesContent": [
"<template>\n <div class=\"hello\">\n <h1>{{ msg }}</h1>\n <h2>Essential Links</h2>\n <ul>\n <li>\n <a\n href=\"https://vuejs.org\"\n target=\"_blank\"\n >\n Core Docs\n </a>\n </li>\n <li>\n <a\n href=\"https://forum.vuejs.org\"\n target=\"_blank\"\n >\n Forum\n </a>\n </li>\n <li>\n <a\n href=\"https://chat.vuejs.org\"\n target=\"_blank\"\n >\n Community Chat\n </a>\n </li>\n <li>\n <a\n href=\"https://twitter.com/vuejs\"\n target=\"_blank\"\n >\n Twitter\n </a>\n </li>\n <br>\n <li>\n <a\n href=\"http://vuejs-templates.github.io/webpack/\"\n target=\"_blank\"\n >\n Docs for This Template\n </a>\n </li>\n </ul>\n <h2>Ecosystem</h2>\n <ul>\n <li>\n <a\n href=\"http://router.vuejs.org/\"\n target=\"_blank\"\n >\n vue-router\n </a>\n </li>\n <li>\n <a\n href=\"http://vuex.vuejs.org/\"\n target=\"_blank\"\n >\n vuex\n </a>\n </li>\n <li>\n <a\n href=\"http://vue-loader.vuejs.org/\"\n target=\"_blank\"\n >\n vue-loader\n </a>\n </li>\n <li>\n <a\n href=\"https://github.com/vuejs/awesome-vue\"\n target=\"_blank\"\n >\n awesome-vue\n </a>\n </li>\n </ul>\n </div>\n</template>\n\n<script>\nexport default {\n name: 'HelloWorld',\n data () {\n return {\n msg: 'Welcome to Your Vue.js App'\n }\n }\n}\n</script>\n\n<!-- Add \"scoped\" attribute to limit CSS to this component only -->\n<style scoped>\nh1, h2 {\n font-weight: normal;\n}\nul {\n list-style-type: none;\n padding: 0;\n}\nli {\n display: inline-block;\n margin: 0 10px;\n}\na {\n color: #42b983;\n}\n</style>\n"

View File

@@ -1,37 +1,27 @@
[
{
"generated": {
"line": 91,
"column": 0
"line": 92,
"column": 15
},
"original": {
"line": 87,
"column": 0
}
},
{
"generated": {
"line": 92,
"column": 0
},
"original": {
"line": null,
"column": null
}
},
{
"generated": {
"line": 93,
"column": 0
},
"original": {
"line": null,
"column": null
"line": 88,
"column": 0
}
},
{
"generated": {
"line": 93,
"line": 95,
"column": 9
},
"original": {
@@ -41,18 +31,8 @@
},
{
"generated": {
"line": 94,
"column": 9
},
"original": {
"line": null,
"column": null
}
},
{
"generated": {
"line": 95,
"column": 9
"line": 96,
"column": 0
},
"original": {
"line": 90,
@@ -61,21 +41,31 @@
},
{
"generated": {
"line": 96,
"line": 97,
"column": 0
},
"original": {
"line": null,
"column": null
"line": 91,
"column": 0
}
},
{
"generated": {
"line": 97,
"column": 12
"line": 98,
"column": 0
},
"original": {
"line": 92,
"line": 90,
"column": 0
}
},
{
"generated": {
"line": 99,
"column": 0
},
"original": {
"line": 93,
"column": 0
}
}

View File

@@ -1,11 +1,7 @@
{
"version": 3,
"mappings": "AAAA,UAAU,Y;SAAM,A;AAAC",
"mappings": "AAAA,IAAA,MAAU,Y;SAAM,C;AAAC,CAAjB",
"names": [],
"sources": [
"original.js"
],
"sourcesContent": [
"var foo = () => 4;"
]
"sources": ["original.js"],
"sourcesContent": ["var foo = () => 4;"],
"version": 3
}