question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript support for config file (vue.config.ts)

See original GitHub issue

What problem does this feature solve?

Type tracking when configured.

What does the proposed API look like?

can config width: vue.config.ts or vue.config.js:

  const VueConf = require('@vue/conf');
  VueConf({
    // baseUrl/assetsDir/devServer/... conf in here
  });

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:47
  • Comments:25 (4 by maintainers)

github_iconTop GitHub Comments

64reactions
ktsncommented, Aug 11, 2018

I’ll work on the vue.config.ts support. 👍

21reactions
yyx990803commented, Aug 10, 2018

I think we could have something like webpack does:

// vue.config.ts

import { Config } from '@vue/cli-service'

const config: Config = {
  // ...
}

export default config

If anyone want to work on this that’d be great. /cc @ktsn @HerringtonDarkholme

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I setup vue.config.js with typescript? - Stack Overflow
It's linter rule. This isn't directly linked to TS or Vue config. The rule can be disabled if it's unwanted (require has its...
Read more >
Using Vue with TypeScript - Vue.js
The base config is abstracted in the @vue/tsconfig package. ... In takeover mode, Volar provides support for both Vue and TS files using...
Read more >
Setup vue.config.js to include typescript files - Get Help
Got a Vue project with Typescript. I got some seperate .ts files that I want to be in the bundle. How would that...
Read more >
TypeScript as Config - VuePress
VuePress supports type prompt and type checking for config file, as well as type ... Creating .vuepress/config.ts with following contents:.
Read more >
Configuration Reference | Vue CLI
vue.config.js is an optional config file that will be automatically loaded by @vue/cli-service if it's present in your project root (next to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found