2.3.0 • Published 17 days ago

@dumijs/preset-vue v2.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
17 days ago

@dumijs/preset-vue

dumi Vue3 tech stack support

Features

  • Supports both Single File Component and JSX/TSX
  • Inline demo and external demo support
  • Support CodeSandbox and StackBlitz preview
  • Webpack processing
  • API Table support
  • Support live demo

Install

npm i @dumijs/preset-vue

Options

checkOptions

Vue component metadata parsing options

For example, the following configuration can make the InternalType type skip parsing

vue: {
  checkerOptions: {
    ignore: ['InternalType']
  },
},

For details, please refer to :point_right: MetaCheckerOptions

tsconfigPath

The tsconfig used by the checker, the default value is <project-root>/tsconfig.json

directory

By default, this option is the repository.directory option in package.json.

Mainly used to change the root directory of checker, must be a relative directory.

By default, if your project is in a Monorepo, the root directory of the parser is the Monorepo project directory

compiler

The live demo requires a browser-side compiler, so @babel/standalone needs to be loaded. We provide the babelStandaloneCDN option to change its loading address. The default url is https://cdn.bootcdn.net/ajax/libs/babel-standalone/7.22.17/babel.min.js

vue: {
  compiler: {
    babelStandaloneCDN: 'https://cdn.bootcdn.net/ajax/libs/babel-standalone/7.22.17/babel.min.js'
  },
},