@rushstack/module-minifier 0.1.48 → 0.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module-minifier.d.ts +8 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This library wraps terser in convenient handles for parallelization.
|
|
3
|
+
* It powers `@rushstack/webpack4-module-minifier-plugin` and `@rushstack/webpack5-module-minifier-plugin`
|
|
4
|
+
* but has no coupling with webpack.
|
|
5
|
+
*
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
*/
|
|
8
|
+
|
|
1
9
|
/// <reference types="node" />
|
|
2
10
|
|
|
3
11
|
import { MessagePort } from 'worker_threads';
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This library wraps terser in convenient handles for parallelization.
|
|
3
|
+
* It powers `@rushstack/webpack4-module-minifier-plugin` and `@rushstack/webpack5-module-minifier-plugin`
|
|
4
|
+
* but has no coupling with webpack.
|
|
5
|
+
*
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
*/
|
|
1
8
|
export type { MinifyOptions } from 'terser';
|
|
2
9
|
export type { ILocalMinifierOptions } from './LocalMinifier';
|
|
3
10
|
export { LocalMinifier } from './LocalMinifier';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,qBAAqB,IAAI,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,YAAY,EACV,mBAAmB,EACnB,2BAA2B,EAC3B,8BAA8B,EAC9B,0BAA0B,EAC1B,yBAAyB,EACzB,gCAAgC,EAChC,eAAe,EACf,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AAEH,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,YAAY,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,qBAAqB,IAAI,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,YAAY,EACV,mBAAmB,EACnB,2BAA2B,EAC3B,8BAA8B,EAC9B,0BAA0B,EAC1B,yBAAyB,EACzB,gCAAgC,EAChC,eAAe,EACf,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;AAa3D,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AAEtB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAE5B,2DAAqD;AAA5C,mHAAA,aAAa,OAAA;AAEtB,uDAAqF;AAA5E,0HAAA,qBAAqB,OAA0B;AAExD,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AAcrB,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\n/**\n * This library wraps terser in convenient handles for parallelization.\n * It powers `@rushstack/webpack4-module-minifier-plugin` and `@rushstack/webpack5-module-minifier-plugin`\n * but has no coupling with webpack.\n *\n * @packageDocumentation\n */\n\nexport type { MinifyOptions } from 'terser';\n\nexport type { ILocalMinifierOptions } from './LocalMinifier';\nexport { LocalMinifier } from './LocalMinifier';\n\nexport { MessagePortMinifier } from './MessagePortMinifier';\n\nexport { getIdentifier } from './MinifiedIdentifier';\n\nexport { minifySingleFileAsync as _minifySingleFileAsync } from './MinifySingleFile';\n\nexport { NoopMinifier } from './NoopMinifier';\n\nexport type {\n IMinifierConnection,\n IModuleMinificationCallback,\n IModuleMinificationErrorResult,\n IModuleMinificationRequest,\n IModuleMinificationResult,\n IModuleMinificationSuccessResult,\n IModuleMinifier,\n IModuleMinifierFunction\n} from './types';\n\nexport type { IWorkerPoolMinifierOptions } from './WorkerPoolMinifier';\nexport { WorkerPoolMinifier } from './WorkerPoolMinifier';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/module-minifier",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.49",
|
|
4
4
|
"description": "Wrapper for terser to support bulk parallel minification.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "dist/module-minifier.d.ts",
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@types/node": "12.20.24",
|
|
15
|
-
"@rushstack/worker-pool": "0.1.47",
|
|
16
15
|
"serialize-javascript": "6.0.0",
|
|
17
16
|
"source-map": "~0.7.3",
|
|
18
|
-
"terser": "5.16.1"
|
|
17
|
+
"terser": "5.16.1",
|
|
18
|
+
"@rushstack/worker-pool": "0.1.48"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
+
"@types/heft-jest": "1.0.1",
|
|
22
|
+
"@types/serialize-javascript": "5.0.2",
|
|
21
23
|
"@rushstack/eslint-config": "3.1.1",
|
|
22
24
|
"@rushstack/heft": "0.49.3",
|
|
23
|
-
"@rushstack/heft-node-rig": "1.
|
|
24
|
-
"@types/heft-jest": "1.0.1",
|
|
25
|
-
"@types/serialize-javascript": "5.0.2"
|
|
25
|
+
"@rushstack/heft-node-rig": "1.12.0"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "heft build --clean",
|