Skip to content

Commit

Permalink
update compile
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Jan 13, 2022
1 parent a0d791d commit f48afde
Show file tree
Hide file tree
Showing 13 changed files with 413 additions and 32 deletions.
128 changes: 120 additions & 8 deletions lib/mini-vue.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/mini-vue.cjs.js.map

Large diffs are not rendered by default.

128 changes: 120 additions & 8 deletions lib/mini-vue.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/mini-vue.esm.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/compiler-core/__tests__/codegen.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { baseParse } from "../src/parse";
import { transform } from "../src/transform";
import { transformElement } from "../src/transforms/transformElement";
import { transformExpression } from "../src/transforms/transformExpression";
import { transformText } from "../src/transforms/transformText";

test("interpolation module", () => {
const ast = baseParse("{{hello}}");
Expand All @@ -17,7 +18,7 @@ test("interpolation module", () => {
test("element and interpolation", () => {
const ast = baseParse("<div>hi,{{msg}}</div>");
transform(ast, {
nodeTransforms: [transformExpression, transformElement],
nodeTransforms: [transformText,transformExpression, transformElement],
});

const { code } = generate(ast);
Expand Down
Loading

0 comments on commit f48afde

Please sign in to comment.