Skip to content

Repro ts target issue #249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions e2e/__projects__/basic/__snapshots__/test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ exports[\\"default\\"] = _default;
;
\\"use strict\\";
Object.defineProperty(exports, \\"__esModule\\", { value: true });
var vue_1 = require(\\"vue\\");
var _hoisted_1 = { class: \\"hello\\" };
const vue_1 = require(\\"vue\\");
const _hoisted_1 = { class: \\"hello\\" };
function render(_ctx, _cache) {
return (vue_1.openBlock(), vue_1.createBlock(\\"div\\", _hoisted_1, [
vue_1.createVNode(\\"h1\\", { class: _ctx.headingClasses }, vue_1.toDisplayString(_ctx.msg), 3 /* TEXT, CLASS */)
Expand Down Expand Up @@ -81,8 +81,8 @@ exports[\\"default\\"] = _default;
;
\\"use strict\\";
Object.defineProperty(exports, \\"__esModule\\", { value: true });
var vue_1 = require(\\"vue\\");
var _hoisted_1 = { class: \\"hello\\" };
const vue_1 = require(\\"vue\\");
const _hoisted_1 = { class: \\"hello\\" };
function render(_ctx, _cache) {
return (vue_1.openBlock(), vue_1.createBlock(\\"div\\", _hoisted_1, [
vue_1.createVNode(\\"h1\\", { class: _ctx.headingClasses }, vue_1.toDisplayString(_ctx.msg), 3 /* TEXT, CLASS */)
Expand Down
5 changes: 3 additions & 2 deletions e2e/__projects__/basic/components/TypeScript.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import TypeScriptChild from './TypeScriptChild.vue'
export default {
export default defineComponent({
computed: {
exclamationMarks(): string {
return 'Parent'
Expand All @@ -18,5 +19,5 @@ export default {
components: {
TypeScriptChild
}
}
})
</script>
5 changes: 3 additions & 2 deletions e2e/__projects__/basic/components/TypeScriptChild.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
</template>

<script lang="ts">
export default {
import { defineComponent } from 'vue'
export default defineComponent({
computed: {
exclamationMarks(): string {
return 'Child'
}
}
}
})
</script>
4 changes: 2 additions & 2 deletions e2e/__projects__/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"test": "jest --no-cache --coverage test.js"
},
"dependencies": {
"vue": "3.0.0-alpha.10"
"vue": "^3.0.0-beta.18"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@vue/compiler-sfc": "3.0.0-alpha.10",
"@vue/compiler-sfc": "^3.0.0-beta.18",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-vue-jsx": "^3.7.0",
Expand Down
18 changes: 2 additions & 16 deletions e2e/__projects__/basic/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "es6"],
"module": "es2015",
"moduleResolution": "node",
"types": ["vue-typescript-import-dts", "node"],
"isolatedModules": false,
"experimentalDecorators": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"suppressImplicitAnyIndexErrors": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"allowJs": true
"target": "es6",
"esModuleInterop": true
}
}
Loading