esbuild-vue2
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

esbuild-vue2

在 esbuild 中编译vue2.0的文件

OSCS Status

使用方式

import { build } from 'esbuild'

build({
  plugins: [plugin()]
})

插件参数

extractscss

  • type:Boolean
  • default: false

编译时单独编译 vue 文件里的 css

createCompilerOption

  • type: Options
  • default: {}
interface Options {
  script?: ScriptOptions | undefined
  style?: StyleOptions | undefined
  template?: TemplateOptions | undefined
}

引用 @vue/component-compiler 的参数

AssembleOptions

  • type: AssembleOptions
  • default: {}
interface AssembleOptions {
  isWebComponent?: boolean
  normalizer?: string
  styleInjector?: string
  styleInjectorSSR?: string
  styleInjectorShadow?: string
}

引用 @vue/component-compiler 的参数

Dependencies (0)

    Dev Dependencies (20)

    Package Sidebar

    Install

    npm i esbuild-vue2

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    11.3 kB

    Total Files

    12

    Last publish

    Collaborators

    • wulinsheng123