
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
unplugin-skypin
Advanced tools
Bringing Skypack's power to platforms supported by Unplugin!
Vite
|
Rollup
|
Nuxt
|
Webpack 4-5
Inspired by rollup-plugin-skypin.
packages (Type: string[], Default: []): Declare the package imports that should be changed here. This is done manually opposed to automatically because Unplugin performs some low-level operations that can involve accessing dependencies that were never intended to be. Packages are able to prefetched through this method too, so there are extra performance benefits.minify (Type: boolean, Default: true): Whether to use Skypack's minified asset.replace (Type: function(id: string) => boolean|string, Default: () => true): Uses a returned string as the package id. Returning a boolean value simply toggles Skypack URL substitution.// vite.config.{m}js
import skypin from 'unplugin-skypin/vite'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [
skypin({
packages: [
/* imports to change here */
],
/* other options */
}),
],
})
// rollup.config.{m}js
import skypin from 'unplugin-skypin/rollup'
export default {
input: 'src/index.js',
output: {
dir: 'dist',
format: 'esm',
},
plugins: [
skypin({
packages: [
/* imports to change here */
],
/* other options */
}),
],
}
// webpack.config.{c}js
module.exports = {
/* ... */
plugins: [
require('unplugin-skypin/webpack').default({ /* options */ })
]
}
// nuxt.config.{m}js
export default {
buildModules: [
['unplugin-skypin/nuxt', { /* options */ }],
],
}
This module works for both Nuxt 2 and Nuxt Vite
// vue.config.{c}js
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-skypin/webpack').default({ /* options */ }),
],
},
}
pnpm i
Check the package.json for the available scripts.
FAQs
Skypin plugin support across all Unplugin platforms.
The npm package unplugin-skypin receives a total of 20 weekly downloads. As such, unplugin-skypin popularity was classified as not popular.
We found that unplugin-skypin demonstrated a not healthy version release cadence and project activity because the last version was released 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.