-
Notifications
You must be signed in to change notification settings - Fork 689
Expand file tree
/
Copy pathConstants.ts
More file actions
57 lines (52 loc) · 2.36 KB
/
Constants.ts
File metadata and controls
57 lines (52 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
/**
* Prefix to wrap `function (module, __webpack_exports__, __webpack_require__) { ... }` so that the minifier doesn't delete it.
* Public because alternate Minifier implementations may wish to know about it.
* @public
*/
export const MODULE_WRAPPER_PREFIX: '__MINIFY_MODULE__(' = '__MINIFY_MODULE__(';
/**
* Suffix to wrap `function (module, __webpack_exports__, __webpack_require__) { ... }` so that the minifier doesn't delete it.
* Public because alternate Minifier implementations may wish to know about it.
* @public
*/
export const MODULE_WRAPPER_SUFFIX: ');' = ');';
/**
* Prefix to wrap ECMAScript method shorthand `(module, __webpack_exports__, __webpack_require__) { ... }` so that the minifier doesn't delete it.
* Used when webpack emits modules using shorthand syntax.
* Combined with the suffix, creates: `__MINIFY_MODULE__({__DEFAULT_ID__(params){body}});`
* Public because alternate Minifier implementations may wish to know about it.
* @public
*/
export const MODULE_WRAPPER_SHORTHAND_PREFIX: '__MINIFY_MODULE__({__DEFAULT_ID__' =
'__MINIFY_MODULE__({__DEFAULT_ID__';
/**
* Suffix to wrap ECMAScript method shorthand `(module, __webpack_exports__, __webpack_require__) { ... }` so that the minifier doesn't delete it.
* Used when webpack emits modules using shorthand syntax.
* Combined with the prefix, creates: `__MINIFY_MODULE__({__DEFAULT_ID__(params){body}});`
* Public because alternate Minifier implementations may wish to know about it.
* @public
*/
export const MODULE_WRAPPER_SHORTHAND_SUFFIX: '});' = '});';
/**
* Token preceding a module id in the emitted asset so the minifier can operate on the Webpack runtime or chunk boilerplate in isolation
* @public
*/
export const CHUNK_MODULE_TOKEN: '__WEBPACK_CHUNK_MODULE__' = '__WEBPACK_CHUNK_MODULE__';
/**
* RegExp for replacing chunk module placeholders
* Matches the void expression format
* @public
*/
export const CHUNK_MODULE_REGEX: RegExp = /\(\)\{void "__WEBPACK_CHUNK_MODULE__([A-Za-z0-9$_]+)"\}/g;
/**
* Stage # to use when this should be the first tap in the hook
* @public
*/
export const STAGE_BEFORE: -10000 = -10000;
/**
* Stage # to use when this should be the last tap in the hook
* @public
*/
export const STAGE_AFTER: 100 = 100;