Socket
Book a DemoInstallSign in
Socket

business-utils

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

business-utils

直接运行下方命令,即可打包生成。

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

BusinessUtils

直接运行下方命令,即可打包生成。

$ npm run build

pacakge 的一些配置如下:

{
  "version": "0.0.0",
  "name": "business-utils",
  "main": "lib/index.js",
  "module": "es/index.js",
  "files": ["dist", "lib", "es"]
}

支持 webpack 和 vite 的 es 模式,同时支持 umd 格式,打包在 dist 文件夹中。 umd 模式配置需要留意 vite.lib.config.ts 文件的 EXTERNALGLOBAL 配置。 如果用不到 umd 的用法,可根据实际情况移除 npm run build:lib所涉及到的逻辑。

FAQs

Package last updated on 24 Jul 2022

Did you know?

Socket

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