refactor: move compile into compiler-core

This commit is contained in:
Evan You
2019-09-20 12:16:19 -04:00
parent 3e1973f065
commit 8a923f6a52
12 changed files with 106 additions and 77 deletions

View File

@@ -164,7 +164,7 @@ describe('compiler: transform', () => {
const ast = parse(`<div/>`)
const loc = ast.children[0].loc.start
const plugin: Transform = (node, context) => {
context.onError(
context.emitError(
createCompilerError(ErrorCodes.X_INVALID_END_TAG, node.loc.start)
)
}