@rspack/core 1.0.10 → 1.0.12
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/compiled/browserslist/index.js +94 -49
- package/compiled/browserslist/package.json +1 -1
- package/dist/builtin-plugin/css-extract/utils.d.ts +1 -0
- package/dist/config/types.d.ts +309 -0
- package/dist/config/zod.d.ts +22 -534
- package/dist/cssExtractHmr.js +224 -0
- package/dist/cssExtractLoader.js +277 -0
- package/dist/index.js +23255 -31
- package/dist/{builtin-plugin/css-extract/hmr/hotModuleReplacement.d.ts → runtime/cssExtractHmr.d.ts} +1 -0
- package/dist/runtime/moduleFederationDefaultRuntime.d.ts +2 -0
- package/dist/stats/statsFactoryUtils.d.ts +1 -0
- package/package.json +8 -5
- package/compiled/json-parse-even-better-errors/index.d.ts +0 -1
- package/compiled/json-parse-even-better-errors/index.js +0 -193
- package/compiled/json-parse-even-better-errors/package.json +0 -1
- package/compiled/neo-async/index.d.ts +0 -685
- package/compiled/neo-async/index.js +0 -9207
- package/compiled/neo-async/license +0 -22
- package/compiled/neo-async/package.json +0 -1
- package/compiled/zod-validation-error/index.d.ts +0 -41
- package/compiled/zod-validation-error/index.js +0 -335
- package/compiled/zod-validation-error/license +0 -9
- package/compiled/zod-validation-error/package.json +0 -1
- package/dist/Chunk.js +0 -118
- package/dist/ChunkGraph.js +0 -27
- package/dist/ChunkGroup.js +0 -76
- package/dist/Compilation.js +0 -854
- package/dist/Compiler.js +0 -925
- package/dist/ContextModuleFactory.js +0 -36
- package/dist/DependenciesBlock.js +0 -30
- package/dist/Dependency.js +0 -43
- package/dist/Entrypoint.js +0 -21
- package/dist/ErrorHelpers.js +0 -62
- package/dist/ExecuteModulePlugin.js +0 -46
- package/dist/FileSystem.js +0 -34
- package/dist/FileSystemInfo.js +0 -2
- package/dist/Module.js +0 -226
- package/dist/ModuleTypeConstants.js +0 -92
- package/dist/MultiCompiler.js +0 -440
- package/dist/MultiStats.js +0 -161
- package/dist/MultiWatching.js +0 -62
- package/dist/NormalModule.js +0 -97
- package/dist/NormalModuleFactory.js +0 -43
- package/dist/Resolver.js +0 -39
- package/dist/ResolverFactory.js +0 -61
- package/dist/RspackError.js +0 -21
- package/dist/RuleSetCompiler.js +0 -10
- package/dist/RuntimeGlobals.js +0 -357
- package/dist/RuntimeModule.js +0 -58
- package/dist/Stats.js +0 -161
- package/dist/Template.js +0 -206
- package/dist/Watching.js +0 -290
- package/dist/builtin-loader/index.js +0 -17
- package/dist/builtin-loader/lightningcss/index.js +0 -175
- package/dist/builtin-loader/swc/index.js +0 -5
- package/dist/builtin-loader/swc/pluginImport.js +0 -35
- package/dist/builtin-loader/swc/react.js +0 -7
- package/dist/builtin-loader/swc/types.js +0 -2
- package/dist/builtin-plugin/APIPlugin.js +0 -6
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.js +0 -6
- package/dist/builtin-plugin/AssetModulesPlugin.js +0 -6
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.js +0 -6
- package/dist/builtin-plugin/BannerPlugin.js +0 -22
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.js +0 -12
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.js +0 -6
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.js +0 -6
- package/dist/builtin-plugin/ContextReplacementPlugin.js +0 -43
- package/dist/builtin-plugin/CopyRspackPlugin.js +0 -21
- package/dist/builtin-plugin/CssModulesPlugin.js +0 -6
- package/dist/builtin-plugin/DataUriPlugin.js +0 -6
- package/dist/builtin-plugin/DefinePlugin.js +0 -44
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.js +0 -6
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.js +0 -6
- package/dist/builtin-plugin/DynamicEntryPlugin.js +0 -36
- package/dist/builtin-plugin/ElectronTargetPlugin.js +0 -6
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.js +0 -6
- package/dist/builtin-plugin/EnableLibraryPlugin.js +0 -39
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.js +0 -6
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.js +0 -6
- package/dist/builtin-plugin/EntryPlugin.js +0 -34
- package/dist/builtin-plugin/EvalDevToolModulePlugin.js +0 -6
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.js +0 -16
- package/dist/builtin-plugin/ExternalsPlugin.js +0 -51
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.js +0 -6
- package/dist/builtin-plugin/FileUriPlugin.js +0 -6
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.js +0 -6
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.js +0 -6
- package/dist/builtin-plugin/HotModuleReplacementPlugin.js +0 -18
- package/dist/builtin-plugin/HtmlRspackPlugin.js +0 -285
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.js +0 -11
- package/dist/builtin-plugin/IgnorePlugin.js +0 -20
- package/dist/builtin-plugin/InferAsyncModulesPlugin.js +0 -6
- package/dist/builtin-plugin/JavascriptModulesPlugin.js +0 -55
- package/dist/builtin-plugin/JsLoaderRspackPlugin.js +0 -9
- package/dist/builtin-plugin/JsonModulesPlugin.js +0 -6
- package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.js +0 -30
- package/dist/builtin-plugin/LimitChunkCountPlugin.js +0 -8
- package/dist/builtin-plugin/MangleExportsPlugin.js +0 -6
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.js +0 -6
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.js +0 -6
- package/dist/builtin-plugin/ModuleConcatenationPlugin.js +0 -6
- package/dist/builtin-plugin/NamedChunkIdsPlugin.js +0 -6
- package/dist/builtin-plugin/NamedModuleIdsPlugin.js +0 -6
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.js +0 -6
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.js +0 -6
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.js +0 -6
- package/dist/builtin-plugin/NodeTargetPlugin.js +0 -6
- package/dist/builtin-plugin/ProgressPlugin.js +0 -15
- package/dist/builtin-plugin/ProvidePlugin.js +0 -14
- package/dist/builtin-plugin/RealContentHashPlugin.js +0 -6
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.js +0 -6
- package/dist/builtin-plugin/RuntimeChunkPlugin.js +0 -6
- package/dist/builtin-plugin/RuntimePlugin.js +0 -6
- package/dist/builtin-plugin/SideEffectsFlagPlugin.js +0 -6
- package/dist/builtin-plugin/SizeLimitsPlugin.js +0 -9
- package/dist/builtin-plugin/SourceMapDevToolPlugin.js +0 -14
- package/dist/builtin-plugin/SplitChunksPlugin.js +0 -92
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.js +0 -80
- package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.js +0 -6
- package/dist/builtin-plugin/WebWorkerTemplatePlugin.js +0 -6
- package/dist/builtin-plugin/WorkerPlugin.js +0 -31
- package/dist/builtin-plugin/base.js +0 -58
- package/dist/builtin-plugin/css-extract/hmr/hotModuleReplacement.js +0 -182
- package/dist/builtin-plugin/css-extract/hmr/normalizeUrl.d.ts +0 -2
- package/dist/builtin-plugin/css-extract/hmr/normalizeUrl.js +0 -31
- package/dist/builtin-plugin/css-extract/index.js +0 -105
- package/dist/builtin-plugin/css-extract/loader.js +0 -204
- package/dist/builtin-plugin/css-extract/utils.js +0 -51
- package/dist/builtin-plugin/index.js +0 -84
- package/dist/builtin-plugin/lazy-compilation/backend.js +0 -139
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.js +0 -6
- package/dist/builtin-plugin/lazy-compilation/plugin.js +0 -60
- package/dist/config/adapter.js +0 -691
- package/dist/config/adapterRuleUse.js +0 -107
- package/dist/config/browserslistTargetHandler.js +0 -345
- package/dist/config/defaults.js +0 -876
- package/dist/config/index.js +0 -20
- package/dist/config/normalization.js +0 -299
- package/dist/config/target.js +0 -318
- package/dist/config/types.js +0 -3
- package/dist/config/zod.js +0 -1030
- package/dist/container/ContainerPlugin.js +0 -50
- package/dist/container/ContainerReferencePlugin.js +0 -49
- package/dist/container/ModuleFederationPlugin.js +0 -137
- package/dist/container/ModuleFederationPluginV1.js +0 -63
- package/dist/container/ModuleFederationRuntimePlugin.js +0 -6
- package/dist/container/options.js +0 -48
- package/dist/error/ConcurrentCompilationError.js +0 -20
- package/dist/exports.js +0 -183
- package/dist/lib/AbstractMethodError.js +0 -51
- package/dist/lib/Cache.js +0 -111
- package/dist/lib/CacheFacade.js +0 -321
- package/dist/lib/Dependency.js +0 -11
- package/dist/lib/EntryOptionPlugin.js +0 -89
- package/dist/lib/EnvironmentPlugin.js +0 -57
- package/dist/lib/HookWebpackError.js +0 -83
- package/dist/lib/IgnoreWarningsPlugin.js +0 -35
- package/dist/lib/LoaderOptionsPlugin.js +0 -74
- package/dist/lib/LoaderTargetPlugin.js +0 -37
- package/dist/lib/ModuleFilenameHelpers.js +0 -83
- package/dist/lib/NormalModuleReplacementPlugin.js +0 -85
- package/dist/lib/WebpackError.js +0 -20
- package/dist/lib/cache/MemoryCachePlugin.js +0 -40
- package/dist/lib/cache/getLazyHashedEtag.js +0 -73
- package/dist/lib/cache/mergeEtags.js +0 -74
- package/dist/lib/formatLocation.js +0 -64
- package/dist/loader-runner/LoaderLoadingError.js +0 -19
- package/dist/loader-runner/index.js +0 -735
- package/dist/loader-runner/loadLoader.js +0 -64
- package/dist/logging/Logger.js +0 -143
- package/dist/logging/createConsoleLogger.js +0 -176
- package/dist/logging/runtime.js +0 -37
- package/dist/logging/truncateArgs.js +0 -81
- package/dist/node/NodeEnvironmentPlugin.js +0 -50
- package/dist/node/NodeTemplatePlugin.js +0 -26
- package/dist/node/NodeWatchFileSystem.js +0 -144
- package/dist/node/nodeConsole.js +0 -146
- package/dist/rspack.js +0 -123
- package/dist/rspackOptionsApply.js +0 -274
- package/dist/sharing/ConsumeSharedPlugin.js +0 -69
- package/dist/sharing/ProvideSharedPlugin.js +0 -50
- package/dist/sharing/SharePlugin.js +0 -66
- package/dist/sharing/ShareRuntimePlugin.js +0 -26
- package/dist/sharing/utils.js +0 -8
- package/dist/stats/DefaultStatsFactoryPlugin.js +0 -1173
- package/dist/stats/DefaultStatsPresetPlugin.js +0 -305
- package/dist/stats/DefaultStatsPrinterPlugin.js +0 -1069
- package/dist/stats/StatsFactory.js +0 -167
- package/dist/stats/StatsPrinter.js +0 -142
- package/dist/stats/statsFactoryUtils.js +0 -341
- package/dist/util/ArrayQueue.js +0 -108
- package/dist/util/AssetInfo.js +0 -39
- package/dist/util/IterableHelpers.js +0 -35
- package/dist/util/MergeCaller.js +0 -24
- package/dist/util/SizeFormatHelpers.js +0 -24
- package/dist/util/SplitChunkSize.js +0 -18
- package/dist/util/assertNotNil.js +0 -9
- package/dist/util/assetCondition.js +0 -2
- package/dist/util/bindingVersionCheck.js +0 -124
- package/dist/util/cleverMerge.js +0 -504
- package/dist/util/comparators.js +0 -108
- package/dist/util/createHash.js +0 -161
- package/dist/util/createReadonlyMap.js +0 -29
- package/dist/util/fake.js +0 -28
- package/dist/util/fs.js +0 -120
- package/dist/util/hash/BatchedHash.js +0 -69
- package/dist/util/hash/index.js +0 -39
- package/dist/util/hash/md4.js +0 -27
- package/dist/util/hash/wasm-hash.js +0 -167
- package/dist/util/hash/xxhash64.js +0 -27
- package/dist/util/identifier.js +0 -330
- package/dist/util/index.js +0 -123
- package/dist/util/memoize.js +0 -61
- package/dist/util/scheme.js +0 -57
- package/dist/util/smartGrouping.js +0 -148
- package/dist/util/source.js +0 -42
- package/dist/util/validate.js +0 -77
- package/dist/util/webpack.js +0 -27
- /package/dist/{container/default.runtime.js → moduleFederationDefaultRuntime.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"neo-async": "2.6.2",
|
|
50
50
|
"prebundle": "^1.1.0",
|
|
51
51
|
"tsc-alias": "^1.8.8",
|
|
52
|
+
"tsup": "^8.3.0",
|
|
52
53
|
"typescript": "5.0.2",
|
|
53
54
|
"watchpack": "^2.4.0",
|
|
54
55
|
"webpack-dev-server": "5.0.4",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"@module-federation/runtime-tools": "0.5.1",
|
|
61
62
|
"@rspack/lite-tapable": "1.0.1",
|
|
62
63
|
"caniuse-lite": "^1.0.30001616",
|
|
63
|
-
"@rspack/binding": "1.0.
|
|
64
|
+
"@rspack/binding": "1.0.12"
|
|
64
65
|
},
|
|
65
66
|
"peerDependencies": {
|
|
66
67
|
"@swc/helpers": ">=0.5.1"
|
|
@@ -71,9 +72,11 @@
|
|
|
71
72
|
}
|
|
72
73
|
},
|
|
73
74
|
"scripts": {
|
|
74
|
-
"build": "tsc -b ./tsconfig.build.json && tsc-alias -p tsconfig.build.json && npm run prepare-container-runtime",
|
|
75
|
-
"build:force": "tsc -b ./tsconfig.build.json --force && tsc-alias -p tsconfig.build.json && npm run prepare-container-runtime",
|
|
76
|
-
"dev": "
|
|
75
|
+
"build": "tsc -b ./tsconfig.build.json && tsc-alias -p tsconfig.build.json && tsup && npm run prepare-container-runtime",
|
|
76
|
+
"build:force": "tsc -b ./tsconfig.build.json --force && tsc-alias -p tsconfig.build.json && tsup && npm run prepare-container-runtime",
|
|
77
|
+
"dev": "pnpm run --stream /^dev:.*/",
|
|
78
|
+
"dev:types": "tsc -w",
|
|
79
|
+
"dev:js": "tsup --watch",
|
|
77
80
|
"prepare-container-runtime": "node ./scripts/prepare-container-runtime.js",
|
|
78
81
|
"doc-coverage": "node scripts/check-documentation-coverage.mjs",
|
|
79
82
|
"api-extractor": "api-extractor run --verbose",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export = any;
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
/******/ (() => { // webpackBootstrap
|
|
2
|
-
/******/ "use strict";
|
|
3
|
-
/******/ var __webpack_modules__ = ({
|
|
4
|
-
|
|
5
|
-
/***/ 218:
|
|
6
|
-
/***/ ((module) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const INDENT = Symbol.for('indent')
|
|
11
|
-
const NEWLINE = Symbol.for('newline')
|
|
12
|
-
|
|
13
|
-
const DEFAULT_NEWLINE = '\n'
|
|
14
|
-
const DEFAULT_INDENT = ' '
|
|
15
|
-
const BOM = /^\uFEFF/
|
|
16
|
-
|
|
17
|
-
// only respect indentation if we got a line break, otherwise squash it
|
|
18
|
-
// things other than objects and arrays aren't indented, so ignore those
|
|
19
|
-
// Important: in both of these regexps, the $1 capture group is the newline
|
|
20
|
-
// or undefined, and the $2 capture group is the indent, or undefined.
|
|
21
|
-
const FORMAT = /^\s*[{[]((?:\r?\n)+)([\s\t]*)/
|
|
22
|
-
const EMPTY = /^(?:\{\}|\[\])((?:\r?\n)+)?$/
|
|
23
|
-
|
|
24
|
-
// Node 20 puts single quotes around the token and a comma after it
|
|
25
|
-
const UNEXPECTED_TOKEN = /^Unexpected token '?(.)'?(,)? /i
|
|
26
|
-
|
|
27
|
-
const hexify = (char) => {
|
|
28
|
-
const h = char.charCodeAt(0).toString(16).toUpperCase()
|
|
29
|
-
return `0x${h.length % 2 ? '0' : ''}${h}`
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
33
|
-
// because the buffer-to-string conversion in `fs.readFileSync()`
|
|
34
|
-
// translates it to FEFF, the UTF-16 BOM.
|
|
35
|
-
const stripBOM = (txt) => String(txt).replace(BOM, '')
|
|
36
|
-
|
|
37
|
-
const makeParsedError = (msg, parsing, position = 0) => ({
|
|
38
|
-
message: `${msg} while parsing ${parsing}`,
|
|
39
|
-
position,
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
const parseError = (e, txt, context = 20) => {
|
|
43
|
-
let msg = e.message
|
|
44
|
-
|
|
45
|
-
if (!txt) {
|
|
46
|
-
return makeParsedError(msg, 'empty string')
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const badTokenMatch = msg.match(UNEXPECTED_TOKEN)
|
|
50
|
-
const badIndexMatch = msg.match(/ position\s+(\d+)/i)
|
|
51
|
-
|
|
52
|
-
if (badTokenMatch) {
|
|
53
|
-
msg = msg.replace(
|
|
54
|
-
UNEXPECTED_TOKEN,
|
|
55
|
-
`Unexpected token ${JSON.stringify(badTokenMatch[1])} (${hexify(badTokenMatch[1])})$2 `
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
let errIdx
|
|
60
|
-
if (badIndexMatch) {
|
|
61
|
-
errIdx = +badIndexMatch[1]
|
|
62
|
-
} else if (msg.match(/^Unexpected end of JSON.*/i)) {
|
|
63
|
-
errIdx = txt.length - 1
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
if (errIdx == null) {
|
|
67
|
-
return makeParsedError(msg, `'${txt.slice(0, context * 2)}'`)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const start = errIdx <= context ? 0 : errIdx - context
|
|
71
|
-
const end = errIdx + context >= txt.length ? txt.length : errIdx + context
|
|
72
|
-
const slice = `${start ? '...' : ''}${txt.slice(start, end)}${end === txt.length ? '' : '...'}`
|
|
73
|
-
|
|
74
|
-
return makeParsedError(
|
|
75
|
-
msg,
|
|
76
|
-
`${txt === slice ? '' : 'near '}${JSON.stringify(slice)}`,
|
|
77
|
-
errIdx
|
|
78
|
-
)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
class JSONParseError extends SyntaxError {
|
|
82
|
-
constructor (er, txt, context, caller) {
|
|
83
|
-
const metadata = parseError(er, txt, context)
|
|
84
|
-
super(metadata.message)
|
|
85
|
-
Object.assign(this, metadata)
|
|
86
|
-
this.code = 'EJSONPARSE'
|
|
87
|
-
this.systemError = er
|
|
88
|
-
Error.captureStackTrace(this, caller || this.constructor)
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
get name () {
|
|
92
|
-
return this.constructor.name
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
set name (n) {}
|
|
96
|
-
|
|
97
|
-
get [Symbol.toStringTag] () {
|
|
98
|
-
return this.constructor.name
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
const parseJson = (txt, reviver) => {
|
|
103
|
-
const result = JSON.parse(txt, reviver)
|
|
104
|
-
if (result && typeof result === 'object') {
|
|
105
|
-
// get the indentation so that we can save it back nicely
|
|
106
|
-
// if the file starts with {" then we have an indent of '', ie, none
|
|
107
|
-
// otherwise, pick the indentation of the next line after the first \n If the
|
|
108
|
-
// pattern doesn't match, then it means no indentation. JSON.stringify ignores
|
|
109
|
-
// symbols, so this is reasonably safe. if the string is '{}' or '[]', then
|
|
110
|
-
// use the default 2-space indent.
|
|
111
|
-
const match = txt.match(EMPTY) || txt.match(FORMAT) || [null, '', '']
|
|
112
|
-
result[NEWLINE] = match[1] ?? DEFAULT_NEWLINE
|
|
113
|
-
result[INDENT] = match[2] ?? DEFAULT_INDENT
|
|
114
|
-
}
|
|
115
|
-
return result
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const parseJsonError = (raw, reviver, context) => {
|
|
119
|
-
const txt = stripBOM(raw)
|
|
120
|
-
try {
|
|
121
|
-
return parseJson(txt, reviver)
|
|
122
|
-
} catch (e) {
|
|
123
|
-
if (typeof raw !== 'string' && !Buffer.isBuffer(raw)) {
|
|
124
|
-
const msg = Array.isArray(raw) && raw.length === 0 ? 'an empty array' : String(raw)
|
|
125
|
-
throw Object.assign(
|
|
126
|
-
new TypeError(`Cannot parse ${msg}`),
|
|
127
|
-
{ code: 'EJSONPARSE', systemError: e }
|
|
128
|
-
)
|
|
129
|
-
}
|
|
130
|
-
throw new JSONParseError(e, txt, context, parseJsonError)
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
module.exports = parseJsonError
|
|
135
|
-
parseJsonError.JSONParseError = JSONParseError
|
|
136
|
-
parseJsonError.noExceptions = (raw, reviver) => {
|
|
137
|
-
try {
|
|
138
|
-
return parseJson(stripBOM(raw), reviver)
|
|
139
|
-
} catch {
|
|
140
|
-
// no exceptions
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
/***/ })
|
|
146
|
-
|
|
147
|
-
/******/ });
|
|
148
|
-
/************************************************************************/
|
|
149
|
-
/******/ // The module cache
|
|
150
|
-
/******/ var __webpack_module_cache__ = {};
|
|
151
|
-
/******/
|
|
152
|
-
/******/ // The require function
|
|
153
|
-
/******/ function __nccwpck_require__(moduleId) {
|
|
154
|
-
/******/ // Check if module is in cache
|
|
155
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
156
|
-
/******/ if (cachedModule !== undefined) {
|
|
157
|
-
/******/ return cachedModule.exports;
|
|
158
|
-
/******/ }
|
|
159
|
-
/******/ // Create a new module (and put it into the cache)
|
|
160
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
161
|
-
/******/ // no module.id needed
|
|
162
|
-
/******/ // no module.loaded needed
|
|
163
|
-
/******/ exports: {}
|
|
164
|
-
/******/ };
|
|
165
|
-
/******/
|
|
166
|
-
/******/ // Execute the module function
|
|
167
|
-
/******/ var threw = true;
|
|
168
|
-
/******/ try {
|
|
169
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__);
|
|
170
|
-
/******/ threw = false;
|
|
171
|
-
/******/ } finally {
|
|
172
|
-
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
|
173
|
-
/******/ }
|
|
174
|
-
/******/
|
|
175
|
-
/******/ // Return the exports of the module
|
|
176
|
-
/******/ return module.exports;
|
|
177
|
-
/******/ }
|
|
178
|
-
/******/
|
|
179
|
-
/************************************************************************/
|
|
180
|
-
/******/ /* webpack/runtime/compat */
|
|
181
|
-
/******/
|
|
182
|
-
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
|
|
183
|
-
/******/
|
|
184
|
-
/************************************************************************/
|
|
185
|
-
/******/
|
|
186
|
-
/******/ // startup
|
|
187
|
-
/******/ // Load entry module and return exports
|
|
188
|
-
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
189
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(218);
|
|
190
|
-
/******/ module.exports = __webpack_exports__;
|
|
191
|
-
/******/
|
|
192
|
-
/******/ })()
|
|
193
|
-
;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"json-parse-even-better-errors","author":"GitHub Inc.","version":"3.0.1","license":"MIT","types":"index.d.ts","type":"commonjs"}
|