@elliemae/pui-cli 8.60.2 → 8.61.0
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/build/docs/404.html +2 -2
- package/build/docs/api/functions/loadRoutes/index.html +2 -2
- package/build/docs/api/index.html +2 -2
- package/build/docs/api/type-aliases/LIB_NAME/index.html +2 -2
- package/build/docs/api/variables/babelConfig/index.html +2 -2
- package/build/docs/api/variables/commitlintConfig/index.html +2 -2
- package/build/docs/api/variables/eslintBaseConfig/index.html +2 -2
- package/build/docs/api/variables/eslintConfig/index.html +2 -2
- package/build/docs/api/variables/jestConfig/index.html +2 -2
- package/build/docs/api/variables/jestNodeConfig/index.html +2 -2
- package/build/docs/api/variables/lintStagedConfig/index.html +2 -2
- package/build/docs/api/variables/prettierConfig/index.html +2 -2
- package/build/docs/api/variables/stylelintConfig/index.html +2 -2
- package/build/docs/api/variables/vitestConfig/index.html +2 -2
- package/build/docs/assets/js/04ee7372.eb3eba67.js +1 -0
- package/build/docs/assets/js/{main.8c66192c.js → main.b803b389.js} +2 -2
- package/build/docs/assets/js/{runtime~main.da6a4745.js → runtime~main.cc39bdb0.js} +1 -1
- package/build/docs/index.html +2 -2
- package/build/docs/ssl-certificate-setup/index.html +2 -2
- package/build/docs/usage-guide/index.html +34 -3
- package/dist/cjs/webpack/helpers.js +26 -22
- package/dist/cjs/webpack/prop-types-shim.js +86 -0
- package/dist/cjs/webpack/webpack.dev.babel.js +9 -1
- package/dist/cjs/webpack/webpack.prod.babel.js +22 -1
- package/dist/esm/webpack/helpers.js +26 -22
- package/dist/esm/webpack/prop-types-shim.js +66 -0
- package/dist/esm/webpack/webpack.dev.babel.js +9 -1
- package/dist/esm/webpack/webpack.prod.babel.js +21 -1
- package/dist/types/lib/webpack/helpers.d.ts +12 -1
- package/dist/types/lib/webpack/prop-types-shim.d.ts +356 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/build/docs/assets/js/04ee7372.2e1e1e1d.js +0 -1
- /package/build/docs/assets/js/{main.8c66192c.js.LICENSE.txt → main.b803b389.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
2
3
|
import HtmlWebpackPlugin from "html-webpack-plugin";
|
|
3
4
|
import { GenerateSW } from "workbox-webpack-plugin";
|
|
4
5
|
import MiniCssExtractPlugin from "mini-css-extract-plugin";
|
|
@@ -12,6 +13,8 @@ import {
|
|
|
12
13
|
isGoogleTagManagerEnabled,
|
|
13
14
|
getCompressionPlugins
|
|
14
15
|
} from "./helpers.js";
|
|
16
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
17
|
+
const propTypesShim = path.resolve(__dirname, "prop-types-shim.js");
|
|
15
18
|
const getProdConfig = ({ latestVersion = true } = {}) => {
|
|
16
19
|
const { buildPath } = getPaths(latestVersion);
|
|
17
20
|
return {
|
|
@@ -39,13 +42,25 @@ const getProdConfig = ({ latestVersion = true } = {}) => {
|
|
|
39
42
|
})
|
|
40
43
|
],
|
|
41
44
|
runtimeChunk: true,
|
|
45
|
+
// Three-tier chunking strategy (opt-in via SPLIT_FRAMEWORK_CHUNK=true):
|
|
46
|
+
// emui – @elliemae packages (design system, SDK)
|
|
47
|
+
// framework – React core + router (changes rarely, great cache hit)
|
|
48
|
+
// vendors – everything else from node_modules
|
|
42
49
|
splitChunks: {
|
|
43
50
|
chunks: "all",
|
|
44
51
|
cacheGroups: {
|
|
45
52
|
emui: {
|
|
46
53
|
name: "emui",
|
|
47
54
|
test: /[\\/]node_modules[\\/](@elliemae)[\\/]/,
|
|
48
|
-
priority: 1
|
|
55
|
+
priority: process.env.SPLIT_FRAMEWORK_CHUNK === "true" ? 3 : 1
|
|
56
|
+
},
|
|
57
|
+
...process.env.SPLIT_FRAMEWORK_CHUNK === "true" && {
|
|
58
|
+
framework: {
|
|
59
|
+
name: "framework",
|
|
60
|
+
test: /[\\/]node_modules[\\/](react|react-dom|scheduler|react-router|react-router-dom|history|react-is)[\\/]/,
|
|
61
|
+
priority: 2,
|
|
62
|
+
enforce: true
|
|
63
|
+
}
|
|
49
64
|
},
|
|
50
65
|
vendors: {
|
|
51
66
|
name: "vendors",
|
|
@@ -73,6 +88,11 @@ const getProdConfig = ({ latestVersion = true } = {}) => {
|
|
|
73
88
|
})
|
|
74
89
|
],
|
|
75
90
|
devtool: "source-map",
|
|
91
|
+
resolve: {
|
|
92
|
+
alias: {
|
|
93
|
+
"prop-types": propTypesShim
|
|
94
|
+
}
|
|
95
|
+
},
|
|
76
96
|
performance: {
|
|
77
97
|
assetFilter: (assetFilename) => !/(\.map$)|(^(main\.|favicon\.))/.test(assetFilename)
|
|
78
98
|
}
|
|
@@ -6,7 +6,18 @@ export declare const excludeNodeModulesExcept: (modules: string[]) => (modulePat
|
|
|
6
6
|
export declare const getLibraryName: () => string;
|
|
7
7
|
export declare const getLibraryVariableName: () => string[];
|
|
8
8
|
export declare const mapToFolder: (dependencies: string[], folder: string) => {};
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Build the `resolve.alias` map that ensures only a single copy of
|
|
11
|
+
* core dependencies is bundled, even in monorepos with hoisted packages.
|
|
12
|
+
*
|
|
13
|
+
* `lodash-es` is explicitly aliased to `lodash` so that transitive
|
|
14
|
+
* imports of `lodash-es` (e.g. from design-system packages) resolve to
|
|
15
|
+
* the same CommonJS lodash build, avoiding a duplicate ~70 kB gzip hit.
|
|
16
|
+
* @returns {Record<string, string>} alias map for webpack resolve.alias
|
|
17
|
+
*/
|
|
18
|
+
export declare const getAlias: () => {
|
|
19
|
+
'lodash-es': string;
|
|
20
|
+
};
|
|
10
21
|
export declare const getLibraryAlias: (name: string, alias: string) => {
|
|
11
22
|
[x: string]: string;
|
|
12
23
|
};
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
export default propTypes;
|
|
2
|
+
/**
|
|
3
|
+
* @file Production shim for the `prop-types` library.
|
|
4
|
+
*
|
|
5
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
6
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
7
|
+
* the Webpack config. Every validator — including chained forms like
|
|
8
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
9
|
+
* that returns itself.
|
|
10
|
+
*
|
|
11
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
12
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
13
|
+
* @returns {Function} no-op shim function
|
|
14
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
15
|
+
*/
|
|
16
|
+
export function array(): Function;
|
|
17
|
+
export namespace array {
|
|
18
|
+
export { shim as isRequired };
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @file Production shim for the `prop-types` library.
|
|
22
|
+
*
|
|
23
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
24
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
25
|
+
* the Webpack config. Every validator — including chained forms like
|
|
26
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
27
|
+
* that returns itself.
|
|
28
|
+
*
|
|
29
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
30
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
31
|
+
* @returns {Function} no-op shim function
|
|
32
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
33
|
+
*/
|
|
34
|
+
export function array(): Function;
|
|
35
|
+
export namespace array { }
|
|
36
|
+
/**
|
|
37
|
+
* @file Production shim for the `prop-types` library.
|
|
38
|
+
*
|
|
39
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
40
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
41
|
+
* the Webpack config. Every validator — including chained forms like
|
|
42
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
43
|
+
* that returns itself.
|
|
44
|
+
*
|
|
45
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
46
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
47
|
+
* @returns {Function} no-op shim function
|
|
48
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
49
|
+
*/
|
|
50
|
+
export function array(): Function;
|
|
51
|
+
export namespace array { }
|
|
52
|
+
/**
|
|
53
|
+
* @file Production shim for the `prop-types` library.
|
|
54
|
+
*
|
|
55
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
56
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
57
|
+
* the Webpack config. Every validator — including chained forms like
|
|
58
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
59
|
+
* that returns itself.
|
|
60
|
+
*
|
|
61
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
62
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
63
|
+
* @returns {Function} no-op shim function
|
|
64
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
65
|
+
*/
|
|
66
|
+
export function array(): Function;
|
|
67
|
+
export namespace array { }
|
|
68
|
+
/**
|
|
69
|
+
* @file Production shim for the `prop-types` library.
|
|
70
|
+
*
|
|
71
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
72
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
73
|
+
* the Webpack config. Every validator — including chained forms like
|
|
74
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
75
|
+
* that returns itself.
|
|
76
|
+
*
|
|
77
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
78
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
79
|
+
* @returns {Function} no-op shim function
|
|
80
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
81
|
+
*/
|
|
82
|
+
export function array(): Function;
|
|
83
|
+
export namespace array { }
|
|
84
|
+
/**
|
|
85
|
+
* @file Production shim for the `prop-types` library.
|
|
86
|
+
*
|
|
87
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
88
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
89
|
+
* the Webpack config. Every validator — including chained forms like
|
|
90
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
91
|
+
* that returns itself.
|
|
92
|
+
*
|
|
93
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
94
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
95
|
+
* @returns {Function} no-op shim function
|
|
96
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
97
|
+
*/
|
|
98
|
+
export function array(): Function;
|
|
99
|
+
export namespace array { }
|
|
100
|
+
/**
|
|
101
|
+
* @file Production shim for the `prop-types` library.
|
|
102
|
+
*
|
|
103
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
104
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
105
|
+
* the Webpack config. Every validator — including chained forms like
|
|
106
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
107
|
+
* that returns itself.
|
|
108
|
+
*
|
|
109
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
110
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
111
|
+
* @returns {Function} no-op shim function
|
|
112
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
113
|
+
*/
|
|
114
|
+
export function array(): Function;
|
|
115
|
+
export namespace array { }
|
|
116
|
+
/**
|
|
117
|
+
* @file Production shim for the `prop-types` library.
|
|
118
|
+
*
|
|
119
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
120
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
121
|
+
* the Webpack config. Every validator — including chained forms like
|
|
122
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
123
|
+
* that returns itself.
|
|
124
|
+
*
|
|
125
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
126
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
127
|
+
* @returns {Function} no-op shim function
|
|
128
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
129
|
+
*/
|
|
130
|
+
export function array(): Function;
|
|
131
|
+
export namespace array { }
|
|
132
|
+
/**
|
|
133
|
+
* @file Production shim for the `prop-types` library.
|
|
134
|
+
*
|
|
135
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
136
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
137
|
+
* the Webpack config. Every validator — including chained forms like
|
|
138
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
139
|
+
* that returns itself.
|
|
140
|
+
*
|
|
141
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
142
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
143
|
+
* @returns {Function} no-op shim function
|
|
144
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
145
|
+
*/
|
|
146
|
+
export function array(): Function;
|
|
147
|
+
export namespace array { }
|
|
148
|
+
/**
|
|
149
|
+
* @file Production shim for the `prop-types` library.
|
|
150
|
+
*
|
|
151
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
152
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
153
|
+
* the Webpack config. Every validator — including chained forms like
|
|
154
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
155
|
+
* that returns itself.
|
|
156
|
+
*
|
|
157
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
158
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
159
|
+
* @returns {Function} no-op shim function
|
|
160
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
161
|
+
*/
|
|
162
|
+
export function array(): Function;
|
|
163
|
+
export namespace array { }
|
|
164
|
+
/**
|
|
165
|
+
* @file Production shim for the `prop-types` library.
|
|
166
|
+
*
|
|
167
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
168
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
169
|
+
* the Webpack config. Every validator — including chained forms like
|
|
170
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
171
|
+
* that returns itself.
|
|
172
|
+
*
|
|
173
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
174
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
175
|
+
* @returns {Function} no-op shim function
|
|
176
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
177
|
+
*/
|
|
178
|
+
export function array(): Function;
|
|
179
|
+
export namespace array { }
|
|
180
|
+
/**
|
|
181
|
+
* @file Production shim for the `prop-types` library.
|
|
182
|
+
*
|
|
183
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
184
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
185
|
+
* the Webpack config. Every validator — including chained forms like
|
|
186
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
187
|
+
* that returns itself.
|
|
188
|
+
*
|
|
189
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
190
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
191
|
+
* @returns {Function} no-op shim function
|
|
192
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
193
|
+
*/
|
|
194
|
+
export function array(): Function;
|
|
195
|
+
export namespace array { }
|
|
196
|
+
/**
|
|
197
|
+
* @file Production shim for the `prop-types` library.
|
|
198
|
+
*
|
|
199
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
200
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
201
|
+
* the Webpack config. Every validator — including chained forms like
|
|
202
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
203
|
+
* that returns itself.
|
|
204
|
+
*
|
|
205
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
206
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
207
|
+
* @returns {Function} no-op shim function
|
|
208
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
209
|
+
*/
|
|
210
|
+
export function array(): Function;
|
|
211
|
+
export namespace array { }
|
|
212
|
+
/**
|
|
213
|
+
* @file Production shim for the `prop-types` library.
|
|
214
|
+
*
|
|
215
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
216
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
217
|
+
* the Webpack config. Every validator — including chained forms like
|
|
218
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
219
|
+
* that returns itself.
|
|
220
|
+
*
|
|
221
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
222
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
223
|
+
* @returns {Function} no-op shim function
|
|
224
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
225
|
+
*/
|
|
226
|
+
export function array(): Function;
|
|
227
|
+
export namespace array { }
|
|
228
|
+
/**
|
|
229
|
+
* @file Production shim for the `prop-types` library.
|
|
230
|
+
*
|
|
231
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
232
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
233
|
+
* the Webpack config. Every validator — including chained forms like
|
|
234
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
235
|
+
* that returns itself.
|
|
236
|
+
*
|
|
237
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
238
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
239
|
+
* @returns {Function} no-op shim function
|
|
240
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
241
|
+
*/
|
|
242
|
+
export function array(): Function;
|
|
243
|
+
export namespace array { }
|
|
244
|
+
/**
|
|
245
|
+
* @file Production shim for the `prop-types` library.
|
|
246
|
+
*
|
|
247
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
248
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
249
|
+
* the Webpack config. Every validator — including chained forms like
|
|
250
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
251
|
+
* that returns itself.
|
|
252
|
+
*
|
|
253
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
254
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
255
|
+
* @returns {Function} no-op shim function
|
|
256
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
257
|
+
*/
|
|
258
|
+
export function array(): Function;
|
|
259
|
+
export namespace array { }
|
|
260
|
+
/**
|
|
261
|
+
* @file Production shim for the `prop-types` library.
|
|
262
|
+
*
|
|
263
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
264
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
265
|
+
* the Webpack config. Every validator — including chained forms like
|
|
266
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
267
|
+
* that returns itself.
|
|
268
|
+
*
|
|
269
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
270
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
271
|
+
* @returns {Function} no-op shim function
|
|
272
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
273
|
+
*/
|
|
274
|
+
export function array(): Function;
|
|
275
|
+
export namespace array { }
|
|
276
|
+
/**
|
|
277
|
+
* @file Production shim for the `prop-types` library.
|
|
278
|
+
*
|
|
279
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
280
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
281
|
+
* the Webpack config. Every validator — including chained forms like
|
|
282
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
283
|
+
* that returns itself.
|
|
284
|
+
*
|
|
285
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
286
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
287
|
+
* @returns {Function} no-op shim function
|
|
288
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
289
|
+
*/
|
|
290
|
+
export function array(): Function;
|
|
291
|
+
export namespace array { }
|
|
292
|
+
/**
|
|
293
|
+
* @file Production shim for the `prop-types` library.
|
|
294
|
+
*
|
|
295
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
296
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
297
|
+
* the Webpack config. Every validator — including chained forms like
|
|
298
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
299
|
+
* that returns itself.
|
|
300
|
+
*
|
|
301
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
302
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
303
|
+
* @returns {Function} no-op shim function
|
|
304
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
305
|
+
*/
|
|
306
|
+
export function array(): Function;
|
|
307
|
+
export namespace array { }
|
|
308
|
+
/**
|
|
309
|
+
* @file Production shim for the `prop-types` library.
|
|
310
|
+
*
|
|
311
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
312
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
313
|
+
* the Webpack config. Every validator — including chained forms like
|
|
314
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
315
|
+
* that returns itself.
|
|
316
|
+
*
|
|
317
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
318
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
319
|
+
* @returns {Function} no-op shim function
|
|
320
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
321
|
+
*/
|
|
322
|
+
export function array(): Function;
|
|
323
|
+
export namespace array { }
|
|
324
|
+
/**
|
|
325
|
+
* @file Production shim for the `prop-types` library.
|
|
326
|
+
*
|
|
327
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
328
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
329
|
+
* the Webpack config. Every validator — including chained forms like
|
|
330
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
331
|
+
* that returns itself.
|
|
332
|
+
*
|
|
333
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
334
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
335
|
+
* @returns {Function} no-op shim function
|
|
336
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
337
|
+
*/
|
|
338
|
+
export function array(): Function;
|
|
339
|
+
export namespace array { }
|
|
340
|
+
declare const propTypes: any;
|
|
341
|
+
/**
|
|
342
|
+
* @file Production shim for the `prop-types` library.
|
|
343
|
+
*
|
|
344
|
+
* Replaces the full validation library with no-op stubs so that it can be
|
|
345
|
+
* completely eliminated from the production bundle via `resolve.alias` in
|
|
346
|
+
* the Webpack config. Every validator — including chained forms like
|
|
347
|
+
* `PropTypes.string.isRequired` — resolves to a single reusable function
|
|
348
|
+
* that returns itself.
|
|
349
|
+
*
|
|
350
|
+
* Compatible with both CommonJS (`require('prop-types')`) and ESM
|
|
351
|
+
* (`import PropTypes from 'prop-types'`) consumption patterns.
|
|
352
|
+
* @returns {Function} no-op shim function
|
|
353
|
+
* @see webpack.prod.babel.ts — alias `prop-types` → this file
|
|
354
|
+
*/
|
|
355
|
+
declare function shim(): Function;
|
|
356
|
+
declare namespace shim { }
|