Skip to content

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

License

Notifications You must be signed in to change notification settings

Tofu-Xx/sfc2esm

Repository files navigation

sfc2esm

logo


English | 简体中文


About various Vue SFC source code conversion methods

API

export interface Options {
  id?: string
  appName?: string
}
export declare function useXxx2x({ id, appName }?: Options): {
  scr2app: (scriptSource: string, setup?: boolean) => string
  tem2render: (templateSource: string) => string
  sty2css: (styleSource: string, scoped?: boolean) => string
  sfc2x: (sfcSource: string, mount?: string) => {
    esm: string
    app: string
    render: string
    css: 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

No packages published