Skip to content

Conversation

hrysd
Copy link

@hrysd hrysd commented Jul 12, 2018

This PR is to support Src Imports in .vue

example code

const parser = require('vue-parser')

const content = `<template>
  <div class='hoge'>
  </div>
</template>
<script lang='ts' src='./index.ts'></script>
`;

console.log(parser.parse(content, 'script', {lang: ['ts']}, {emptyExport: true}))

Before

// tslint:disable
//
//
//
                                             // tslint:enable

After

// tslint:disable
//
//
//
export { default } from './index'

@ktsn
Copy link

ktsn commented Jul 14, 2018

Hello, @prograhammer !

Could you take a look this PR so that we can move forward vue-cli v3 RC process by solving TypeStrong/fork-ts-checker-webpack-plugin#111 and vuejs/vue-cli#1104?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants