From: Evan You Date: Mon, 14 Nov 2022 10:21:58 +0000 (+0800) Subject: build: bump jest, puppeteer and use official rollup terser plugin X-Git-Tag: v3.2.46~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d5e30d911b4fa874565a9514a094fcf0a2ff4ca;p=thirdparty%2Fvuejs%2Fcore.git build: bump jest, puppeteer and use official rollup terser plugin --- diff --git a/jest.config.js b/jest.config.js index 248fb6d086..5a75ee7558 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,6 +2,17 @@ module.exports = { testEnvironment: 'jsdom', preset: 'ts-jest', setupFilesAfterEnv: ['./scripts/setupJestEnv.ts'], + transform: { + '^.+\\.tsx?$': [ + 'ts-jest', + { + tsconfig: { + target: 'esnext', + sourceMap: true + } + } + ] + }, globals: { __DEV__: true, __TEST__: true, @@ -15,13 +26,7 @@ module.exports = { __FEATURE_OPTIONS_API__: true, __FEATURE_SUSPENSE__: true, __FEATURE_PROD_DEVTOOLS__: false, - __COMPAT__: true, - 'ts-jest': { - tsconfig: { - target: 'esnext', - sourceMap: true - } - } + __COMPAT__: true }, coverageDirectory: 'coverage', coverageReporters: ['html', 'lcov', 'text'], diff --git a/package.json b/package.json index 10e9619122..8d2b5e1d47 100644 --- a/package.json +++ b/package.json @@ -60,10 +60,10 @@ "@rollup/plugin-json": "^5.0.1", "@rollup/plugin-node-resolve": "^15.0.1", "@rollup/plugin-replace": "^5.0.1", + "@rollup/plugin-terser": "^0.1.0", "@types/hash-sum": "^1.0.0", - "@types/jest": "^27.0.1", + "@types/jest": "^29.2.2", "@types/node": "^16.4.7", - "@types/puppeteer": "^5.0.0", "@typescript-eslint/parser": "^5.23.0", "@vue/consolidate": "0.17.3", "@vue/reactivity": "workspace:*", @@ -79,7 +79,8 @@ "eslint-plugin-jest": "26.1.5", "execa": "^4.0.2", "fs-extra": "^9.0.1", - "jest": "^27.1.0", + "jest": "^29.3.1", + "jest-environment-jsdom": "^29.3.1", "lint-staged": "^10.2.10", "lodash": "^4.17.15", "marked": "^4.0.10", @@ -87,19 +88,18 @@ "npm-run-all": "^4.1.5", "prettier": "^2.7.1", "pug": "^3.0.1", - "puppeteer": "^10.4.0", + "puppeteer": "^19.2.2", "rollup": "~3.2.3", "rollup-plugin-node-builtins": "^2.1.2", "rollup-plugin-node-globals": "^1.4.0", "rollup-plugin-polyfill-node": "^0.11.0", - "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.34.1", "semver": "^7.3.2", "serve": "^12.0.0", - "terser": "^5.15.1", "simple-git-hooks": "^2.8.1", + "terser": "^5.15.1", "todomvc-app-css": "^2.3.0", - "ts-jest": "^27.0.5", + "ts-jest": "^29.0.3", "tslib": "^2.4.0", "typescript": "^4.8.0", "vite": "^3.0.0", diff --git a/packages/compiler-core/__tests__/__snapshots__/codegen.spec.ts.snap b/packages/compiler-core/__tests__/__snapshots__/codegen.spec.ts.snap index c292b03293..036b7c8f95 100644 --- a/packages/compiler-core/__tests__/__snapshots__/codegen.spec.ts.snap +++ b/packages/compiler-core/__tests__/__snapshots__/codegen.spec.ts.snap @@ -48,12 +48,12 @@ exports[`compiler: codegen Element (callExpression + objectExpression + Template " return function render(_ctx, _cache) { with (_ctx) { - return _createElementVNode(\\"div\\", { - id: \\"foo\\", + return _createElementVNode("div", { + id: "foo", [prop]: bar, [foo + bar]: bar }, [ - _createElementVNode(\\"p\\", { \\"some-key\\": \\"foo\\" }) + _createElementVNode("p", { "some-key": "foo" }) ], 16) } }" @@ -63,12 +63,12 @@ exports[`compiler: codegen assets + temps 1`] = ` " return function render(_ctx, _cache) { with (_ctx) { - const _component_Foo = _resolveComponent(\\"Foo\\") - const _component_bar_baz = _resolveComponent(\\"bar-baz\\") - const _component_barbaz = _resolveComponent(\\"barbaz\\") - const _component_Qux = _resolveComponent(\\"Qux\\", true) - const _directive_my_dir_0 = _resolveDirective(\\"my_dir_0\\") - const _directive_my_dir_1 = _resolveDirective(\\"my_dir_1\\") + const _component_Foo = _resolveComponent("Foo") + const _component_bar_baz = _resolveComponent("bar-baz") + const _component_barbaz = _resolveComponent("barbaz") + const _component_Qux = _resolveComponent("Qux", true) + const _directive_my_dir_0 = _resolveDirective("my_dir_0") + const _directive_my_dir_1 = _resolveDirective("my_dir_1") let _temp0, _temp1, _temp2 return null @@ -80,7 +80,7 @@ exports[`compiler: codegen comment 1`] = ` " return function render(_ctx, _cache) { with (_ctx) { - return _createCommentVNode(\\"foo\\") + return _createCommentVNode("foo") } }" `; @@ -135,7 +135,7 @@ return function render(_ctx, _cache) { exports[`compiler: codegen hoists 1`] = ` " const _hoisted_1 = hello -const _hoisted_2 = { id: \\"foo\\" } +const _hoisted_2 = { id: "foo" } return function render(_ctx, _cache) { with (_ctx) { @@ -165,7 +165,7 @@ return function render(_ctx, _cache) { `; exports[`compiler: codegen module mode preamble 1`] = ` -"import { createVNode as _createVNode, resolveDirective as _resolveDirective } from \\"vue\\" +"import { createVNode as _createVNode, resolveDirective as _resolveDirective } from "vue" export function render(_ctx, _cache) { return null @@ -173,7 +173,7 @@ export function render(_ctx, _cache) { `; exports[`compiler: codegen module mode preamble w/ optimizeImports: true 1`] = ` -"import { createVNode, resolveDirective } from \\"vue\\" +"import { createVNode, resolveDirective } from "vue" // Binding optimization for webpack code-split const _createVNode = createVNode, _resolveDirective = resolveDirective @@ -187,7 +187,7 @@ exports[`compiler: codegen static text 1`] = ` " return function render(_ctx, _cache) { with (_ctx) { - return \\"hello\\" + return "hello" } }" `; diff --git a/packages/compiler-core/__tests__/__snapshots__/compile.spec.ts.snap b/packages/compiler-core/__tests__/__snapshots__/compile.spec.ts.snap index a9189ac72a..02c995fe97 100644 --- a/packages/compiler-core/__tests__/__snapshots__/compile.spec.ts.snap +++ b/packages/compiler-core/__tests__/__snapshots__/compile.spec.ts.snap @@ -7,19 +7,19 @@ return function render(_ctx, _cache) { with (_ctx) { const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, Fragment: _Fragment, renderList: _renderList, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass } = _Vue - return (_openBlock(), _createElementBlock(\\"div\\", { - id: \\"foo\\", + return (_openBlock(), _createElementBlock("div", { + id: "foo", class: _normalizeClass(bar.baz) }, [ - _createTextVNode(_toDisplayString(world.burn()) + \\" \\", 1 /* TEXT */), + _createTextVNode(_toDisplayString(world.burn()) + " ", 1 /* TEXT */), ok - ? (_openBlock(), _createElementBlock(\\"div\\", { key: 0 }, \\"yes\\")) + ? (_openBlock(), _createElementBlock("div", { key: 0 }, "yes")) : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [ - _createTextVNode(\\"no\\") + _createTextVNode("no") ], 64 /* STABLE_FRAGMENT */)), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(list, (value, index) => { - return (_openBlock(), _createElementBlock(\\"div\\", null, [ - _createElementVNode(\\"span\\", null, _toDisplayString(value + index), 1 /* TEXT */) + return (_openBlock(), _createElementBlock("div", null, [ + _createElementVNode("span", null, _toDisplayString(value + index), 1 /* TEXT */) ])) }), 256 /* UNKEYED_FRAGMENT */)) ], 2 /* CLASS */)) @@ -31,19 +31,19 @@ exports[`compiler: integration tests function mode w/ prefixIdentifiers: true 1` "const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, Fragment: _Fragment, renderList: _renderList, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass } = Vue return function render(_ctx, _cache) { - return (_openBlock(), _createElementBlock(\\"div\\", { - id: \\"foo\\", + return (_openBlock(), _createElementBlock("div", { + id: "foo", class: _normalizeClass(_ctx.bar.baz) }, [ - _createTextVNode(_toDisplayString(_ctx.world.burn()) + \\" \\", 1 /* TEXT */), + _createTextVNode(_toDisplayString(_ctx.world.burn()) + " ", 1 /* TEXT */), (_ctx.ok) - ? (_openBlock(), _createElementBlock(\\"div\\", { key: 0 }, \\"yes\\")) + ? (_openBlock(), _createElementBlock("div", { key: 0 }, "yes")) : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [ - _createTextVNode(\\"no\\") + _createTextVNode("no") ], 64 /* STABLE_FRAGMENT */)), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.list, (value, index) => { - return (_openBlock(), _createElementBlock(\\"div\\", null, [ - _createElementVNode(\\"span\\", null, _toDisplayString(value + index), 1 /* TEXT */) + return (_openBlock(), _createElementBlock("div", null, [ + _createElementVNode("span", null, _toDisplayString(value + index), 1 /* TEXT */) ])) }), 256 /* UNKEYED_FRAGMENT */)) ], 2 /* CLASS */)) @@ -51,22 +51,22 @@ return function render(_ctx, _cache) { `; exports[`compiler: integration tests module mode 1`] = ` -"import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, Fragment as _Fragment, renderList as _renderList, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from \\"vue\\" +"import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, Fragment as _Fragment, renderList as _renderList, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue" export function render(_ctx, _cache) { - return (_openBlock(), _createElementBlock(\\"div\\", { - id: \\"foo\\", + return (_openBlock(), _createElementBlock("div", { + id: "foo", class: _normalizeClass(_ctx.bar.baz) }, [ - _createTextVNode(_toDisplayString(_ctx.world.burn()) + \\" \\", 1 /* TEXT */), + _createTextVNode(_toDisplayString(_ctx.world.burn()) + " ", 1 /* TEXT */), (_ctx.ok) - ? (_openBlock(), _createElementBlock(\\"div\\", { key: 0 }, \\"yes\\")) + ? (_openBlock(), _createElementBlock("div", { key: 0 }, "yes")) : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [ - _createTextVNode(\\"no\\") + _createTextVNode("no") ], 64 /* STABLE_FRAGMENT */)), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.list, (value, index) => { - return (_openBlock(), _createElementBlock(\\"div\\", null, [ - _createElementVNode(\\"span\\", null, _toDisplayString(value + index), 1 /* TEXT */) + return (_openBlock(), _createElementBlock("div", null, [ + _createElementVNode("span", null, _toDisplayString(value + index), 1 /* TEXT */) ])) }), 256 /* UNKEYED_FRAGMENT */)) ], 2 /* CLASS */)) diff --git a/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap b/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap index 000cedaf86..8a12c8c399 100644 --- a/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap +++ b/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap @@ -1,21 +1,21 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`compiler: parse Errors ABRUPT_CLOSING_OF_EMPTY_COMMENT 1`] = ` -Object { +{ "cached": 0, - "children": Array [ - Object { - "children": Array [ - Object { + "children": [ + { + "children": [ + { "content": "", - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 16, "line": 1, "offset": 15, }, "source": "", - "start": Object { + "start": { "column": 11, "line": 1, "offset": 10, @@ -26,40 +26,40 @@ Object { ], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 27, "line": 1, "offset": 26, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, }, }, "ns": 0, - "props": Array [], + "props": [], "tag": "template", "tagType": 0, "type": 1, }, ], "codegenNode": undefined, - "components": Array [], - "directives": Array [], + "components": [], + "directives": [], "helpers": Set {}, - "hoists": Array [], - "imports": Array [], - "loc": Object { - "end": Object { + "hoists": [], + "imports": [], + "loc": { + "end": { "column": 27, "line": 1, "offset": 26, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, @@ -71,21 +71,21 @@ Object { `; exports[`compiler: parse Errors ABRUPT_CLOSING_OF_EMPTY_COMMENT 1`] = ` -Object { +{ "cached": 0, - "children": Array [ - Object { - "children": Array [ - Object { + "children": [ + { + "children": [ + { "content": "", - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 17, "line": 1, "offset": 16, }, "source": "", - "start": Object { + "start": { "column": 11, "line": 1, "offset": 10, @@ -96,40 +96,40 @@ Object { ], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 28, "line": 1, "offset": 27, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, }, }, "ns": 0, - "props": Array [], + "props": [], "tag": "template", "tagType": 0, "type": 1, }, ], "codegenNode": undefined, - "components": Array [], - "directives": Array [], + "components": [], + "directives": [], "helpers": Set {}, - "hoists": Array [], - "imports": Array [], - "loc": Object { - "end": Object { + "hoists": [], + "imports": [], + "loc": { + "end": { "column": 28, "line": 1, "offset": 27, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, @@ -141,21 +141,21 @@ Object { `; exports[`compiler: parse Errors ABRUPT_CLOSING_OF_EMPTY_COMMENT 1`] = ` -Object { +{ "cached": 0, - "children": Array [ - Object { - "children": Array [ - Object { + "children": [ + { + "children": [ + { "content": "", - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 18, "line": 1, "offset": 17, }, "source": "", - "start": Object { + "start": { "column": 11, "line": 1, "offset": 10, @@ -166,40 +166,40 @@ Object { ], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 29, "line": 1, "offset": 28, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, }, }, "ns": 0, - "props": Array [], + "props": [], "tag": "template", "tagType": 0, "type": 1, }, ], "codegenNode": undefined, - "components": Array [], - "directives": Array [], + "components": [], + "directives": [], "helpers": Set {}, - "hoists": Array [], - "imports": Array [], - "loc": Object { - "end": Object { + "hoists": [], + "imports": [], + "loc": { + "end": { "column": 29, "line": 1, "offset": 28, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, @@ -211,21 +211,21 @@ Object { `; exports[`compiler: parse Errors CDATA_IN_HTML_CONTENT 1`] = ` -Object { +{ "cached": 0, - "children": Array [ - Object { - "children": Array [ - Object { + "children": [ + { + "children": [ + { "content": "[CDATA[cdata]]", - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 28, "line": 1, "offset": 27, }, "source": "", - "start": Object { + "start": { "column": 11, "line": 1, "offset": 10, @@ -236,40 +236,40 @@ Object { ], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 39, "line": 1, "offset": 38, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, }, }, "ns": 0, - "props": Array [], + "props": [], "tag": "template", "tagType": 0, "type": 1, }, ], "codegenNode": undefined, - "components": Array [], - "directives": Array [], + "components": [], + "directives": [], "helpers": Set {}, - "hoists": Array [], - "imports": Array [], - "loc": Object { - "end": Object { + "hoists": [], + "imports": [], + "loc": { + "end": { "column": 39, "line": 1, "offset": 38, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, @@ -281,23 +281,23 @@ Object { `; exports[`compiler: parse Errors CDATA_IN_HTML_CONTENT 1`] = ` -Object { +{ "cached": 0, - "children": Array [ - Object { - "children": Array [ - Object { - "children": Array [ - Object { + "children": [ + { + "children": [ + { + "children": [ + { "content": "cdata", - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 30, "line": 1, "offset": 29, }, "source": "cdata", - "start": Object { + "start": { "column": 25, "line": 1, "offset": 24, @@ -308,21 +308,21 @@ Object { ], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 39, "line": 1, "offset": 38, }, "source": "cdata", - "start": Object { + "start": { "column": 11, "line": 1, "offset": 10, }, }, "ns": 1, - "props": Array [], + "props": [], "tag": "svg", "tagType": 0, "type": 1, @@ -330,40 +330,40 @@ Object { ], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 50, "line": 1, "offset": 49, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, }, }, "ns": 0, - "props": Array [], + "props": [], "tag": "template", "tagType": 0, "type": 1, }, ], "codegenNode": undefined, - "components": Array [], - "directives": Array [], + "components": [], + "directives": [], "helpers": Set {}, - "hoists": Array [], - "imports": Array [], - "loc": Object { - "end": Object { + "hoists": [], + "imports": [], + "loc": { + "end": { "column": 50, "line": 1, "offset": 49, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, @@ -375,39 +375,39 @@ Object { `; exports[`compiler: parse Errors DUPLICATE_ATTRIBUTE 1`] = ` -Object { +{ "cached": 0, - "children": Array [ - Object { - "children": Array [ - Object { - "children": Array [], + "children": [ + { + "children": [ + { + "children": [], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 34, "line": 1, "offset": 33, }, - "source": "
", - "start": Object { + "source": "
", + "start": { "column": 11, "line": 1, "offset": 10, }, }, "ns": 0, - "props": Array [ - Object { - "loc": Object { - "end": Object { + "props": [ + { + "loc": { + "end": { "column": 21, "line": 1, "offset": 20, }, - "source": "id=\\"\\"", - "start": Object { + "source": "id=""", + "start": { "column": 16, "line": 1, "offset": 15, @@ -415,16 +415,16 @@ Object { }, "name": "id", "type": 6, - "value": Object { + "value": { "content": "", - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 21, "line": 1, "offset": 20, }, - "source": "\\"\\"", - "start": Object { + "source": """", + "start": { "column": 19, "line": 1, "offset": 18, @@ -433,15 +433,15 @@ Object { "type": 2, }, }, - Object { - "loc": Object { - "end": Object { + { + "loc": { + "end": { "column": 27, "line": 1, "offset": 26, }, - "source": "id=\\"\\"", - "start": Object { + "source": "id=""", + "start": { "column": 22, "line": 1, "offset": 21, @@ -449,16 +449,16 @@ Object { }, "name": "id", "type": 6, - "value": Object { + "value": { "content": "", - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 27, "line": 1, "offset": 26, }, - "source": "\\"\\"", - "start": Object { + "source": """", + "start": { "column": 25, "line": 1, "offset": 24, @@ -475,40 +475,40 @@ Object { ], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 45, "line": 1, "offset": 44, }, - "source": "", - "start": Object { + "source": "", + "start": { "column": 1, "line": 1, "offset": 0, }, }, "ns": 0, - "props": Array [], + "props": [], "tag": "template", "tagType": 0, "type": 1, }, ], "codegenNode": undefined, - "components": Array [], - "directives": Array [], + "components": [], + "directives": [], "helpers": Set {}, - "hoists": Array [], - "imports": Array [], - "loc": Object { - "end": Object { + "hoists": [], + "imports": [], + "loc": { + "end": { "column": 45, "line": 1, "offset": 44, }, - "source": "", - "start": Object { + "source": "", + "start": { "column": 1, "line": 1, "offset": 0, @@ -520,30 +520,30 @@ Object { `; exports[`compiler: parse Errors END_TAG_WITH_ATTRIBUTES 1`] = ` -Object { +{ "cached": 0, - "children": Array [ - Object { - "children": Array [ - Object { - "children": Array [], + "children": [ + { + "children": [ + { + "children": [], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 28, "line": 1, "offset": 27, }, - "source": "
", - "start": Object { + "source": "
", + "start": { "column": 11, "line": 1, "offset": 10, }, }, "ns": 0, - "props": Array [], + "props": [], "tag": "div", "tagType": 0, "type": 1, @@ -551,40 +551,40 @@ Object { ], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 39, "line": 1, "offset": 38, }, - "source": "", - "start": Object { + "source": "", + "start": { "column": 1, "line": 1, "offset": 0, }, }, "ns": 0, - "props": Array [], + "props": [], "tag": "template", "tagType": 0, "type": 1, }, ], "codegenNode": undefined, - "components": Array [], - "directives": Array [], + "components": [], + "directives": [], "helpers": Set {}, - "hoists": Array [], - "imports": Array [], - "loc": Object { - "end": Object { + "hoists": [], + "imports": [], + "loc": { + "end": { "column": 39, "line": 1, "offset": 38, }, - "source": "", - "start": Object { + "source": "", + "start": { "column": 1, "line": 1, "offset": 0, @@ -596,30 +596,30 @@ Object { `; exports[`compiler: parse Errors END_TAG_WITH_TRAILING_SOLIDUS 1`] = ` -Object { +{ "cached": 0, - "children": Array [ - Object { - "children": Array [ - Object { - "children": Array [], + "children": [ + { + "children": [ + { + "children": [], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 23, "line": 1, "offset": 22, }, "source": "
", - "start": Object { + "start": { "column": 11, "line": 1, "offset": 10, }, }, "ns": 0, - "props": Array [], + "props": [], "tag": "div", "tagType": 0, "type": 1, @@ -627,40 +627,40 @@ Object { ], "codegenNode": undefined, "isSelfClosing": false, - "loc": Object { - "end": Object { + "loc": { + "end": { "column": 34, "line": 1, "offset": 33, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, }, }, "ns": 0, - "props": Array [], + "props": [], "tag": "template", "tagType": 0, "type": 1, }, ], "codegenNode": undefined, - "components": Array [], - "directives": Array [], + "components": [], + "directives": [], "helpers": Set {}, - "hoists": Array [], - "imports": Array [], - "loc": Object { - "end": Object { + "hoists": [], + "imports": [], + "loc": { + "end": { "column": 34, "line": 1, "offset": 33, }, "source": "", - "start": Object { + "start": { "column": 1, "line": 1, "offset": 0, @@ -672,21 +672,21 @@ Object { `; exports[`compiler: parse Errors EOF_BEFORE_TAG_NAME