Skip to content

Support Src Imports #5

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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