Supporting multri entry
This commit is contained in:
12
test/multi-entry/fixtures/admin/index.html
Normal file
12
test/multi-entry/fixtures/admin/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module">
|
||||
import {bootstrap} from "../app/app.js"
|
||||
import {adminDeps} from "../app/admin-deps.js";
|
||||
bootstrap(document.getElementById('root'), adminDeps());
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
3
test/multi-entry/fixtures/app/admin-deps.js
Normal file
3
test/multi-entry/fixtures/app/admin-deps.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export function adminDeps(){
|
||||
return "robin!";
|
||||
}
|
||||
6
test/multi-entry/fixtures/app/app.js
Normal file
6
test/multi-entry/fixtures/app/app.js
Normal file
@@ -0,0 +1,6 @@
|
||||
export const bootstrap = (el,deps = [])=>{
|
||||
el.innerHtml = `
|
||||
<div>I'm "annoying" ${"in case we need to test \`string\` escaping."}. Hence this file \'tries\' to include all allowed forms of 'it'</div>
|
||||
<div>Deps: ${deps}</div>
|
||||
`;
|
||||
}
|
||||
11
test/multi-entry/fixtures/index.html
Normal file
11
test/multi-entry/fixtures/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module">
|
||||
import {bootstrap} from "./app/app.js"
|
||||
bootstrap(document.getElementById('root'), "<none>");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user