Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@series-one/webpack-dts-plugin

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@series-one/webpack-dts-plugin

DTS 文件转换插件

  • 2.5.18
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Webpack Dts Plugin

DTS 文件转换插件

BACKGROUND

webpack 编译后非原本文件,这时如果项目需要导出 d.ts 则需要通过配置 tsconfig.json。 该插件能直接输出 d.ts 产物文件。

原理

通过 typescript 编译 d.ts 文件。 通过 ts-patch 让编译支持别名。

FEATURE

  • 默认支持 tsconfig.json 别名转义
  • 与 webpack 产物共同维护

INSTALL

# local install
$ yarn add --dev @series-one/webpack-dts-plugin
# global install
$ yarn global add @series-one/webpack-dts-plugin

USAGE

import { OneWebpackDTSPlugin } from '@series-one/webpack-dts-plugin'

export default {
  plugins: [
    new OneWebpackDTSPlugin({
      rootDir: path.join(__dirname, './src'),
    }),
  ],
}

CONTRIBUTING

可以通过 Git 对项目进行贡献; 若没有本项目组权限, 项目需要权限申请, 请通过 OA Git 项目权限申请流程进行申请, 用户角色为 Developer

CONTRIBUTORS

FAQs

Package last updated on 04 Sep 2023

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc