Skip to content

Commit

Permalink
feat: compile
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Jan 10, 2022
1 parent a811026 commit be69524
Show file tree
Hide file tree
Showing 17 changed files with 1,027 additions and 283 deletions.
8 changes: 8 additions & 0 deletions example/compiler-base/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
template: `{{msg}}`,
setup() {
return {
msg: "vue3 - compiler",
};
},
};
18 changes: 18 additions & 0 deletions example/compiler-base/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<div id="app"></div>
<script type="module">
import { createApp } from "../../lib/mini-vue.esm.js";
import App from "./App.js";

const rootContainer = document.querySelector("#app");
createApp(App).mount(rootContainer);
</script>
</body>
</html>
Loading

0 comments on commit be69524

Please sign in to comment.