WIP: Basic working version. Will import .html files and resolve its dependencies. But it will generate invalid html when sourcemaps are enabled, assets like <link..> do not yet work...
This commit is contained in:
@@ -10,29 +10,65 @@ Generated by [AVA](https://avajs.dev).
|
||||
|
||||
[
|
||||
{
|
||||
code: `(function (factory) {␊
|
||||
typeof define === 'function' && define.amd ? define(factory) :␊
|
||||
factory();␊
|
||||
})((function () { 'use strict';␊
|
||||
␊=-u
|
||||
code: `<html><head>␊
|
||||
<meta data-test="a">␊
|
||||
</head>␊
|
||||
<body>␊
|
||||
<script src="batman-f8ac73ff.js" type="module"></script>␊
|
||||
␊
|
||||
␊
|
||||
␊
|
||||
}));␊
|
||||
</body></html>␊
|
||||
//# sourceMappingURL=index.html.map␊
|
||||
`,
|
||||
fileName: 'batman.js',
|
||||
map: null,
|
||||
fileName: 'index.html',
|
||||
map: SourceMap {
|
||||
file: 'index.html',
|
||||
mappings: '',
|
||||
names: [],
|
||||
sources: [],
|
||||
sourcesContent: [],
|
||||
version: 3,
|
||||
},
|
||||
source: undefined,
|
||||
},
|
||||
{
|
||||
code: `const notSoIifi = ()=>{␊
|
||||
return \`I'm "annoying" ${"in case we need to test \\\`string\\\` escaping.''"}\`;␊
|
||||
};␊
|
||||
console.log(notSoIifi());␊
|
||||
␊
|
||||
export { notSoIifi };␊
|
||||
//# sourceMappingURL=batman-f8ac73ff.js.map␊
|
||||
`,
|
||||
fileName: 'batman-f8ac73ff.js',
|
||||
map: SourceMap {
|
||||
file: 'batman-f8ac73ff.js',
|
||||
mappings: 'AAAY,MAAC,SAAS,GAAG,IAAI;AAC7B,IAAI,OAAO,CAAC,eAAe,EAAE,gDAAgD,CAAC,CAAC,CAAC;AAChF,EAAC;AACD,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;;;;',
|
||||
names: [],
|
||||
sources: [
|
||||
'../batman.js',
|
||||
],
|
||||
sourcesContent: [
|
||||
`export const notSoIifi = ()=>{␊
|
||||
return \`I'm "annoying" ${"in case we need to test \\\`string\\\` escaping.''"}\`;␊
|
||||
}␊
|
||||
console.log(notSoIifi());␊
|
||||
`,
|
||||
],
|
||||
version: 3,
|
||||
},
|
||||
source: undefined,
|
||||
},
|
||||
{
|
||||
code: undefined,
|
||||
fileName: 'index.html',
|
||||
fileName: 'batman-f8ac73ff.js.map',
|
||||
map: undefined,
|
||||
source: `<html>␊
|
||||
<meta data-test="a"/>␊
|
||||
<body>␊
|
||||
<script src="./batman.js" type="module"></script>␊
|
||||
</body>␊
|
||||
</html>␊
|
||||
`,
|
||||
source: '{"version":3,"file":"batman-f8ac73ff.js","sources":["../batman.js"],"sourcesContent":["export const notSoIifi = ()=>{\\n return `I\'m \\"annoying\\" ${\\"in case we need to test \\\\`string\\\\` escaping.\'\'\\"}`;\\n}\\nconsole.log(notSoIifi());\\n"],"names":[],"mappings":"AAAY,MAAC,SAAS,GAAG,IAAI;AAC7B,IAAI,OAAO,CAAC,eAAe,EAAE,gDAAgD,CAAC,CAAC,CAAC;AAChF,EAAC;AACD,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;;;;"}',
|
||||
},
|
||||
{
|
||||
code: undefined,
|
||||
fileName: 'index.html.map',
|
||||
map: undefined,
|
||||
source: '{"version":3,"file":"index.html","sources":[],"sourcesContent":[],"names":[],"mappings":""}',
|
||||
},
|
||||
]
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user