Skip to content

fix(extension): load devtools-background.js as type="module"#1072

Open
skirtles-code wants to merge 2 commits intovuejs:mainfrom
skirtles-code:chrome-ext-esm
Open

fix(extension): load devtools-background.js as type="module"#1072
skirtles-code wants to merge 2 commits intovuejs:mainfrom
skirtles-code:chrome-ext-esm

Conversation

@skirtles-code
Copy link
Copy Markdown
Contributor

@skirtles-code skirtles-code commented Mar 24, 2026

Since d8e2801, the file devtools-background.js has been built as an ES module, rather than an IIFE.

I'm not really familiar with how extensions work, or what the intent was behind switching to an ES module, but when I try to install a local copy of the extensions they don't work. Adding type="module" seems to be sufficient to get them working.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 24, 2026

Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit b9a2603
🔍 Latest deploy log https://app.netlify.com/projects/vue-devtools-docs/deploys/69c2c000e95b0c0007d60353

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 24, 2026

Open in StackBlitz

@vue/devtools-applet

npm i https://pkg.pr.new/@vue/devtools-applet@1072

@vue/devtools-core

npm i https://pkg.pr.new/@vue/devtools-core@1072

@vue/devtools

npm i https://pkg.pr.new/@vue/devtools@1072

@vue/devtools-api

npm i https://pkg.pr.new/@vue/devtools-api@1072

@vue/devtools-kit

npm i https://pkg.pr.new/@vue/devtools-kit@1072

@vue/devtools-electron

npm i https://pkg.pr.new/@vue/devtools-electron@1072

@vue/devtools-shared

npm i https://pkg.pr.new/@vue/devtools-shared@1072

@vue/devtools-ui

npm i https://pkg.pr.new/@vue/devtools-ui@1072

vite-plugin-vue-devtools

npm i https://pkg.pr.new/vite-plugin-vue-devtools@1072

commit: b9a2603

@skirtles-code skirtles-code changed the title fix(chrome-extension): load devtools-background.js as type="module" fix(extension): load devtools-background.js as type="module" Mar 24, 2026
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.

1 participant