
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@eckidevs/bun-plugin-vue
Advanced tools
A simple Vue plugin for [Bun](https://bun.sh) build, dev server etc. Made to be able to load SFC's into bun's bundler.
A simple Vue plugin for Bun build, dev server etc. Made to be able to load SFC's into bun's bundler.
[!IMPORTANT] This module is only compatible with the Bun Runtime.
bun add -D @eckidevs/bun-plugin-vue
If you want to have Vue's types, add a vue-shim.d.ts
file to the root of your project:
// vue-shim.d.ts
declare module '*.vue' {
import Vue from 'vue';
export default Vue;
}
The following is a quickstart, but see the examples
directory for full examples.
import vuePlugin from '@eckidevs/bun-plugin-vue'
Bun.build({
// index.html Imports main.ts where App.vue is setup
entrypoints: ['./index.html'],
outdir: './dist',
plugins: [vuePlugin()],
})
First create the local plugin file:
// vue-plugin.ts
import vuePlugin from '@eckidevs/bun-plugin-vue'
export default vuePlugin()
Then update bunfig.toml
[serve.static]
plugins = ["./vue-plugin.ts"]
You might encouter the following console message in the browser (in development):
Feature flags __VUE_OPTIONS_API__, __VUE_PROD_DEVTOOLS__, __VUE_PROD_HYDRATION_MISMATCH_DETAILS__
This is because the define
option in bun's config is not yet supported in the dev server. You could suppress it by adding in your HTML:
<script>
globalThis.__VUE_OPTIONS_API__ = true;
globalThis.__VUE_PROD_DEVTOOLS__ = false;
globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = false;
</script>
That is not the correct fix though, it needs to be replaced in the code at compile time. This will be fixed in a future version of Bun.
FAQs
A simple Vue plugin for [Bun](https://bun.sh) build, dev server etc. Made to be able to load SFC's into bun's bundler.
The npm package @eckidevs/bun-plugin-vue receives a total of 5 weekly downloads. As such, @eckidevs/bun-plugin-vue popularity was classified as not popular.
We found that @eckidevs/bun-plugin-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.