Skip to content

Tofu-Xx/sfc2esm

Repository files navigation

sfc2esm

logo


English | 简体中文


Convert the Vue SFC source code to the code in browser esm format

API

export declare function sfc2esm(sfcSource: string, { id, appName, mount }: Options): {
  esmCode: string
  cssCode: string
}
export interface Options {
  id?: string
  appName?: string
  mount?: string
}

Who is using this?

setupin

setupin


logo by: vue-sfc2esm

dependencies: @vue/compiler-sfc

About

Code convertor from SFC to ESM | 由SFC到ESM的代码转换器

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors