unplugin-stencil

所属分类:构建工具
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2024-03-29 18:27:49
上 传 者sh-1993
说明:  封装Vite、Webpack、Rollup等的Stencil编译器的解插件
(An Unplugin that wraps Stencil compiler for Vite, Webpack, Rollup, and more)

文件列表:
.vscode/
playground/
scripts/
src/
test/
.editorconfig
.npmrc
.nvmrc
LICENSE
eslint.config.js
package.json
pnpm-lock.yaml
pnpm-workspace.yaml
tsconfig.json
tsup.config.ts

# Stencil Unplugin [![NPM version](https://img.shields.io/npm/v/unplugin-stencil?color=a1b858&label=)](https://www.npmjs.com/package/unplugin-stencil) An unplugin that wraps the [Stencil](https://stenciljs.com/) compiler to be used within Astro, Esbuild, Nuxt, Rollup, rspack, Vite and Webpack etc. environments. ## Install To install this unplugin, run: ```bash npm i unplugin-stencil ```
Vite
```ts // vite.config.ts import stencil from 'unplugin-stencil/vite' export default defineConfig({ plugins: [ stencil({ /* Stencil configuration overwrites */ }), ], }) ```
Rollup
```ts // rollup.config.js import Starter from 'unplugin-stencil/rollup' export default { plugins: [ Starter({ /* options */ }), ], } ```
Webpack
```ts // webpack.config.js module.exports = { /* ... */ plugins: [ require('unplugin-stencil/webpack')({ /* options */ }) ] } ```
Nuxt
```ts // nuxt.config.js export default defineNuxtConfig({ modules: [ ['unplugin-stencil/nuxt', { /* options */ }], ], }) ``` > This module works for both Nuxt 2 and [Nuxt Vite](https://github.com/nuxt/vite)
Vue CLI
```ts // vue.config.js module.exports = { configureWebpack: { plugins: [ require('unplugin-stencil/webpack')({ /* options */ }), ], }, } ```
esbuild
```ts // esbuild.config.js import { build } from 'esbuild' import Starter from 'unplugin-stencil/esbuild' build({ plugins: [Starter()], }) ```

近期下载者

相关文件


收藏者