Socket
Socket
Sign inDemoInstall

@dumijs/preset-vue

Package Overview
Dependencies
8
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dumijs/preset-vue

Vue support plugins for dumi


Version published
Weekly downloads
24
decreased by-52.94%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@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'
  },
},

Keywords

FAQs

Last updated on 26 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc