1.0.1 • Published 2 years ago

esbuild-vue2 v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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 的参数