Skip to content
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

prod build + vue devtools 🤔 #1258

Closed
spencercap opened this issue Dec 25, 2020 · 2 comments
Closed

prod build + vue devtools 🤔 #1258

spencercap opened this issue Dec 25, 2020 · 2 comments

Comments

@spencercap
Copy link

Can vue dev tools connect to a production build via vite build?

I've added this to vite.config.ts

        port: 3003, // this works
        define: {
		__VUE_PROD_DEVTOOLS__: true // no effect
	}

reproduce: start a vanilla vue-vite project + try the expected config option.

@underfin
Copy link
Member

underfin commented Dec 29, 2020

Take a look for this, it hasn't a workaround for now... It should be fixed in vite2.x and the vue-next merged vuejs/core#2906

Edit:
For v1,you can comment this code and install vue at local.The vuejs/core#2906 is also necessary.

if (id === 'vue' || id.startsWith('@vue/')) {
const vuePaths = resolveVue(root)
if (id in vuePaths) {
return (vuePaths as any)[id]
}
}

@underfin
Copy link
Member

underfin commented Jan 7, 2021

The vuejs/core#2906 is already merged at vue-next, please wait the release publish.

@underfin underfin closed this as completed Jan 7, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants