UNPKG

@morjs/utils

Version:
48 lines (47 loc) 1.72 kB
import { Expression } from '@babel/types'; import { cjsToEsmTransformer } from 'cjstoesm'; import CopyWebpackPlugin from 'copy-webpack-plugin'; import CssMinimizerPlugin from 'css-minimizer-webpack-plugin'; import HtmlMinimizerPlugin from 'html-minimizer-webpack-plugin'; import micromatch from 'micromatch'; import * as pQueue from 'p-queue'; import pRetry from 'p-retry'; import * as postcss from 'postcss'; import posthtml from 'posthtml'; import slash from 'slash'; import * as takin from 'takin'; import { fastGlob } from 'takin'; import TerserPlugin from 'terser-webpack-plugin'; import typescript from 'typescript'; import webpack from 'webpack'; import WebpackChain from 'webpack-chain-5'; import WebpackDevServer from 'webpack-dev-server'; /** * 扩展 posthtml Options 需要允许透传 htmlparser2 参数 */ declare module 'posthtml' { interface Options { sync?: boolean; skipParse?: boolean; recognizeSelfClosing?: boolean; quoteStyle?: 0 | 1 | 2; replaceQuote?: boolean; closingSingleTag?: 'slash' | 'tag' | ''; singleTags?: string[]; recognizeNoValueAttribute?: boolean; } } export * from 'takin'; export * from './babelDeps'; export * from './constants'; export * from './hooks'; export * from './moduleGraph'; export * from './queue'; export * from './types'; export * from './utils'; export * from './webpack'; export { WebpackChain, webpack, WebpackDevServer, fastGlob as glob, posthtml, typescript, micromatch, postcss, slash, /** * @deprecated 请直接引用,而不是从 takin 中引用 */ takin, pRetry, pQueue, cjsToEsmTransformer, HtmlMinimizerPlugin, CssMinimizerPlugin, TerserPlugin, CopyWebpackPlugin, Expression };