@rsdoctor/core 2.0.0-alpha.0 → 2.0.0-alpha.2
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/26.js +26163 -0
- package/dist/630.js +1269 -0
- package/dist/630.js.LICENSE.txt +7 -0
- package/dist/build-utils/build/chunks/assetsModules.d.ts +8 -2
- package/dist/build-utils/build/chunks/index.d.ts +0 -1
- package/dist/build-utils/build/chunks/rspack/transform.d.ts +1 -1
- package/dist/build-utils/build/envinfo.d.ts +13 -0
- package/dist/build-utils/build/file/cache.d.ts +5 -0
- package/dist/build-utils/build/file/index.d.ts +3 -0
- package/dist/build-utils/build/file/sharding.d.ts +21 -0
- package/dist/build-utils/build/index.d.ts +5 -0
- package/dist/build-utils/build/json.d.ts +3 -0
- package/dist/build-utils/build/loader/probeLoader.d.ts +8 -3
- package/dist/build-utils/build/loader/probeLoaderPlugin.d.ts +1 -1
- package/dist/build-utils/build/module-graph/index.d.ts +0 -1
- package/dist/build-utils/build/module-graph/parser.d.ts +1 -1
- package/dist/build-utils/build/module-graph/rspack/transform.d.ts +1 -1
- package/dist/build-utils/build/module-graph/utils.d.ts +1 -1
- package/dist/build-utils/build/process.d.ts +2 -0
- package/dist/build-utils/build/server.d.ts +15 -0
- package/dist/build-utils/build/utils/loader.d.ts +2 -2
- package/dist/build-utils/build/utils/parseBundle.d.ts +1 -1
- package/dist/build-utils/build/utils/plugin.d.ts +1 -1
- package/dist/build-utils/index.d.ts +10 -0
- package/dist/common/file.d.ts +2 -0
- package/dist/common/global-config.d.ts +21 -0
- package/dist/error/error.d.ts +35 -0
- package/dist/error/index.d.ts +2 -0
- package/dist/error/transform.d.ts +3 -0
- package/dist/error/utils.d.ts +4 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1725 -5
- package/dist/inner-plugins/constants.d.ts +1 -1
- package/dist/inner-plugins/loaders/proxy.d.ts +4 -4
- package/dist/inner-plugins/plugins/base.d.ts +3 -3
- package/dist/inner-plugins/plugins/bundle.d.ts +1 -1
- package/dist/inner-plugins/plugins/ensureModulesChunkGraph.d.ts +3 -3
- package/dist/inner-plugins/plugins/errors.d.ts +2 -2
- package/dist/inner-plugins/plugins/loader.d.ts +1 -1
- package/dist/inner-plugins/plugins/plugins.d.ts +1 -1
- package/dist/inner-plugins/plugins/progress.d.ts +2 -2
- package/dist/inner-plugins/plugins/resolver.d.ts +1 -1
- package/dist/inner-plugins/plugins/rspack.d.ts +8 -3
- package/dist/inner-plugins/plugins/rules.d.ts +1 -1
- package/dist/inner-plugins/plugins/sourcemapTool.d.ts +2 -2
- package/dist/inner-plugins/plugins/summary.d.ts +1 -1
- package/dist/inner-plugins/utils/config.d.ts +2 -3
- package/dist/inner-plugins/utils/loader.d.ts +4 -7
- package/dist/inner-plugins/utils/normalize-config.d.ts +1 -1
- package/dist/inner-plugins/utils/openBrowser.d.ts +1 -0
- package/dist/inner-plugins/utils/plugin.d.ts +1 -1
- package/dist/inner-plugins/utils/sdk.d.ts +2 -3
- package/dist/logger.d.ts +9 -0
- package/dist/probe-loader.js +2 -0
- package/dist/proxy-loader.d.ts +1 -0
- package/dist/proxy-loader.js +48 -0
- package/dist/rslib-runtime.js +18 -9
- package/dist/{inner-plugins/constants.d.cts → rspack-plugin/constants.d.ts} +4 -1
- package/dist/rspack-plugin/index.d.ts +2 -0
- package/dist/rspack-plugin/multiple.d.ts +8 -0
- package/dist/rspack-plugin/plugin.d.ts +25 -0
- package/dist/rule-utils/document/document.d.ts +16 -0
- package/dist/rule-utils/document/index.d.ts +3 -0
- package/dist/rule-utils/document/server.d.ts +4 -0
- package/dist/rule-utils/document/types.d.ts +31 -0
- package/dist/rule-utils/index.d.ts +2 -0
- package/dist/rule-utils/parser/asserts.d.ts +81 -0
- package/dist/rule-utils/parser/index.d.ts +4 -0
- package/dist/rule-utils/parser/parser.d.ts +118 -0
- package/dist/rule-utils/parser/types.d.ts +30 -0
- package/dist/rule-utils/parser/utils.d.ts +30 -0
- package/dist/rules/linter.d.ts +1 -1
- package/dist/rules/rule.d.ts +2 -2
- package/dist/rules/rules/cjs-require/index.d.ts +1 -1
- package/dist/rules/rules/cross-chunks-package/index.d.ts +1 -1
- package/dist/rules/rules/default-import-check/index.d.ts +1 -1
- package/dist/rules/rules/default-import-check/utils.d.ts +2 -2
- package/dist/rules/rules/duplicate-package/index.d.ts +3 -3
- package/dist/rules/rules/duplicate-package/utils.d.ts +1 -1
- package/dist/rules/rules/ecma-version-check/htmlParserStub.d.ts +3 -0
- package/dist/rules/rules/ecma-version-check/index.d.ts +3 -2
- package/dist/rules/rules/ecma-version-check/types.d.ts +13 -3
- package/dist/rules/rules/ecma-version-check/utils.d.ts +1 -1
- package/dist/rules/rules/esm-resolved-to-cjs/index.d.ts +1 -1
- package/dist/rules/rules/index.d.ts +1 -1
- package/dist/rules/rules/loader-performance-optimization/index.d.ts +1 -1
- package/dist/rules/rules/loader-performance-optimization/types.d.ts +1 -1
- package/dist/rules/rules/module-mixed-chunks/index.d.ts +1 -1
- package/dist/rules/rules/side-effects-only-imports/index.d.ts +1 -1
- package/dist/rules/utils.d.ts +1 -1
- package/dist/sdk/index.d.ts +2 -0
- package/dist/sdk/multiple/controller.d.ts +12 -0
- package/dist/sdk/multiple/index.d.ts +2 -0
- package/dist/sdk/multiple/primary.d.ts +32 -0
- package/dist/sdk/multiple/server.d.ts +7 -0
- package/dist/sdk/sdk/core.d.ts +33 -0
- package/dist/sdk/sdk/index.d.ts +52 -0
- package/dist/sdk/sdk/types.d.ts +26 -0
- package/dist/sdk/server/apis/alerts.d.ts +5 -0
- package/dist/sdk/server/apis/base.d.ts +11 -0
- package/dist/sdk/server/apis/bundle-diff.d.ts +6 -0
- package/dist/sdk/server/apis/data.d.ts +6 -0
- package/dist/sdk/server/apis/fs.d.ts +5 -0
- package/dist/sdk/server/apis/graph.d.ts +12 -0
- package/dist/sdk/server/apis/index.d.ts +10 -0
- package/dist/sdk/server/apis/loader.d.ts +15 -0
- package/dist/sdk/server/apis/plugin.d.ts +6 -0
- package/dist/sdk/server/apis/project.d.ts +8 -0
- package/dist/sdk/server/apis/renderer.d.ts +6 -0
- package/dist/sdk/server/apis/resolver.d.ts +6 -0
- package/dist/sdk/server/client.d.ts +3 -0
- package/dist/sdk/server/fakeServer.d.ts +9 -0
- package/dist/sdk/server/index.d.ts +44 -0
- package/dist/sdk/server/json-body.d.ts +6 -0
- package/dist/sdk/server/router.d.ts +24 -0
- package/dist/sdk/server/security.d.ts +5 -0
- package/dist/sdk/server/socket/api.d.ts +15 -0
- package/dist/sdk/server/socket/index.d.ts +48 -0
- package/dist/sdk/server/utils.d.ts +6 -0
- package/dist/sdk/utils/base.d.ts +1 -0
- package/dist/sdk/utils/constant.d.ts +1 -0
- package/dist/sdk/utils/date.d.ts +1 -0
- package/dist/sdk/utils/index.d.ts +3 -0
- package/dist/sdk/utils/openBrowser.d.ts +4 -0
- package/dist/sdk/utils/upload.d.ts +2 -0
- package/dist/sdk.d.ts +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/loader.d.ts +1 -1
- package/dist/types/plugin.d.ts +7 -28
- package/package.json +56 -80
- package/static/openChrome.applescript +95 -0
- package/dist/build-utils/build/chunks/assetsModules.cjs +0 -42
- package/dist/build-utils/build/chunks/assetsModules.d.cts +0 -17
- package/dist/build-utils/build/chunks/assetsModules.js +0 -9
- package/dist/build-utils/build/chunks/chunkTransform.cjs +0 -39
- package/dist/build-utils/build/chunks/chunkTransform.d.cts +0 -4
- package/dist/build-utils/build/chunks/chunkTransform.d.ts +0 -4
- package/dist/build-utils/build/chunks/chunkTransform.js +0 -6
- package/dist/build-utils/build/chunks/index.cjs +0 -72
- package/dist/build-utils/build/chunks/index.d.cts +0 -3
- package/dist/build-utils/build/chunks/index.js +0 -4
- package/dist/build-utils/build/chunks/rspack/transform.cjs +0 -80
- package/dist/build-utils/build/chunks/rspack/transform.d.cts +0 -13
- package/dist/build-utils/build/chunks/rspack/transform.js +0 -44
- package/dist/build-utils/build/index.cjs +0 -52
- package/dist/build-utils/build/index.d.cts +0 -5
- package/dist/build-utils/build/index.js +0 -7
- package/dist/build-utils/build/loader/index.cjs +0 -65
- package/dist/build-utils/build/loader/index.d.cts +0 -2
- package/dist/build-utils/build/loader/index.js +0 -3
- package/dist/build-utils/build/loader/probeLoader.cjs +0 -89
- package/dist/build-utils/build/loader/probeLoader.d.cts +0 -4
- package/dist/build-utils/build/loader/probeLoader.js +0 -44
- package/dist/build-utils/build/loader/probeLoaderPlugin.cjs +0 -65
- package/dist/build-utils/build/loader/probeLoaderPlugin.d.cts +0 -5
- package/dist/build-utils/build/loader/probeLoaderPlugin.js +0 -32
- package/dist/build-utils/build/module-graph/index.cjs +0 -65
- package/dist/build-utils/build/module-graph/index.d.cts +0 -2
- package/dist/build-utils/build/module-graph/index.js +0 -3
- package/dist/build-utils/build/module-graph/parser.cjs +0 -46
- package/dist/build-utils/build/module-graph/parser.d.cts +0 -2
- package/dist/build-utils/build/module-graph/parser.js +0 -13
- package/dist/build-utils/build/module-graph/rspack/transform.cjs +0 -151
- package/dist/build-utils/build/module-graph/rspack/transform.d.cts +0 -26
- package/dist/build-utils/build/module-graph/rspack/transform.js +0 -109
- package/dist/build-utils/build/module-graph/transform.cjs +0 -39
- package/dist/build-utils/build/module-graph/transform.d.cts +0 -3
- package/dist/build-utils/build/module-graph/transform.d.ts +0 -3
- package/dist/build-utils/build/module-graph/transform.js +0 -6
- package/dist/build-utils/build/module-graph/utils.cjs +0 -95
- package/dist/build-utils/build/module-graph/utils.d.cts +0 -3
- package/dist/build-utils/build/module-graph/utils.js +0 -59
- package/dist/build-utils/build/utils/index.cjs +0 -72
- package/dist/build-utils/build/utils/index.d.cts +0 -3
- package/dist/build-utils/build/utils/index.js +0 -4
- package/dist/build-utils/build/utils/loader.cjs +0 -354
- package/dist/build-utils/build/utils/loader.d.cts +0 -20
- package/dist/build-utils/build/utils/loader.js +0 -276
- package/dist/build-utils/build/utils/parseBundle.cjs +0 -283
- package/dist/build-utils/build/utils/parseBundle.d.cts +0 -12
- package/dist/build-utils/build/utils/parseBundle.js +0 -240
- package/dist/build-utils/build/utils/plugin.cjs +0 -60
- package/dist/build-utils/build/utils/plugin.d.cts +0 -5
- package/dist/build-utils/build/utils/plugin.js +0 -21
- package/dist/build-utils/index.cjs +0 -36
- package/dist/build-utils/index.d.cts +0 -1
- package/dist/build-utils/index.js +0 -3
- package/dist/index.cjs +0 -81
- package/dist/index.d.cts +0 -3
- package/dist/inner-plugins/constants.cjs +0 -64
- package/dist/inner-plugins/constants.js +0 -19
- package/dist/inner-plugins/index.cjs +0 -65
- package/dist/inner-plugins/index.d.cts +0 -2
- package/dist/inner-plugins/index.js +0 -3
- package/dist/inner-plugins/loaders/proxy.cjs +0 -104
- package/dist/inner-plugins/loaders/proxy.d.cts +0 -7
- package/dist/inner-plugins/loaders/proxy.js +0 -65
- package/dist/inner-plugins/plugins/base.cjs +0 -53
- package/dist/inner-plugins/plugins/base.d.cts +0 -12
- package/dist/inner-plugins/plugins/base.js +0 -20
- package/dist/inner-plugins/plugins/bundle.cjs +0 -96
- package/dist/inner-plugins/plugins/bundle.d.cts +0 -15
- package/dist/inner-plugins/plugins/bundle.js +0 -63
- package/dist/inner-plugins/plugins/ensureModulesChunkGraph.cjs +0 -141
- package/dist/inner-plugins/plugins/ensureModulesChunkGraph.d.cts +0 -34
- package/dist/inner-plugins/plugins/ensureModulesChunkGraph.js +0 -102
- package/dist/inner-plugins/plugins/errors.cjs +0 -98
- package/dist/inner-plugins/plugins/errors.d.cts +0 -11
- package/dist/inner-plugins/plugins/errors.js +0 -65
- package/dist/inner-plugins/plugins/index.cjs +0 -121
- package/dist/inner-plugins/plugins/index.d.cts +0 -10
- package/dist/inner-plugins/plugins/index.js +0 -11
- package/dist/inner-plugins/plugins/loader.cjs +0 -165
- package/dist/inner-plugins/plugins/loader.d.cts +0 -10
- package/dist/inner-plugins/plugins/loader.js +0 -120
- package/dist/inner-plugins/plugins/plugins.cjs +0 -73
- package/dist/inner-plugins/plugins/plugins.d.cts +0 -8
- package/dist/inner-plugins/plugins/plugins.js +0 -40
- package/dist/inner-plugins/plugins/progress.cjs +0 -68
- package/dist/inner-plugins/plugins/progress.d.cts +0 -8
- package/dist/inner-plugins/plugins/progress.js +0 -35
- package/dist/inner-plugins/plugins/resolver.cjs +0 -90
- package/dist/inner-plugins/plugins/resolver.d.cts +0 -12
- package/dist/inner-plugins/plugins/resolver.js +0 -57
- package/dist/inner-plugins/plugins/rspack.cjs +0 -118
- package/dist/inner-plugins/plugins/rspack.d.cts +0 -4
- package/dist/inner-plugins/plugins/rspack.js +0 -85
- package/dist/inner-plugins/plugins/rules.cjs +0 -97
- package/dist/inner-plugins/plugins/rules.d.cts +0 -8
- package/dist/inner-plugins/plugins/rules.js +0 -64
- package/dist/inner-plugins/plugins/sourcemapTool.cjs +0 -275
- package/dist/inner-plugins/plugins/sourcemapTool.d.cts +0 -52
- package/dist/inner-plugins/plugins/sourcemapTool.js +0 -230
- package/dist/inner-plugins/plugins/summary.cjs +0 -125
- package/dist/inner-plugins/plugins/summary.d.cts +0 -14
- package/dist/inner-plugins/plugins/summary.js +0 -92
- package/dist/inner-plugins/utils/circleDetect.cjs +0 -49
- package/dist/inner-plugins/utils/circleDetect.d.cts +0 -4
- package/dist/inner-plugins/utils/circleDetect.js +0 -16
- package/dist/inner-plugins/utils/config.cjs +0 -191
- package/dist/inner-plugins/utils/config.d.cts +0 -5
- package/dist/inner-plugins/utils/config.js +0 -142
- package/dist/inner-plugins/utils/index.cjs +0 -106
- package/dist/inner-plugins/utils/index.d.cts +0 -9
- package/dist/inner-plugins/utils/index.js +0 -8
- package/dist/inner-plugins/utils/loader.cjs +0 -218
- package/dist/inner-plugins/utils/loader.d.cts +0 -13
- package/dist/inner-plugins/utils/loader.js +0 -160
- package/dist/inner-plugins/utils/normalize-config.cjs +0 -122
- package/dist/inner-plugins/utils/normalize-config.d.cts +0 -37
- package/dist/inner-plugins/utils/normalize-config.js +0 -77
- package/dist/inner-plugins/utils/plugin-common.cjs +0 -143
- package/dist/inner-plugins/utils/plugin-common.d.cts +0 -11
- package/dist/inner-plugins/utils/plugin-common.js +0 -94
- package/dist/inner-plugins/utils/plugin.cjs +0 -106
- package/dist/inner-plugins/utils/plugin.d.cts +0 -4
- package/dist/inner-plugins/utils/plugin.js +0 -70
- package/dist/inner-plugins/utils/sdk.cjs +0 -55
- package/dist/inner-plugins/utils/sdk.d.cts +0 -8
- package/dist/inner-plugins/utils/sdk.js +0 -19
- package/dist/rules/index.cjs +0 -81
- package/dist/rules/index.d.cts +0 -3
- package/dist/rules/index.js +0 -4
- package/dist/rules/linter.cjs +0 -72
- package/dist/rules/linter.d.cts +0 -9
- package/dist/rules/linter.js +0 -36
- package/dist/rules/rule.cjs +0 -137
- package/dist/rules/rule.d.cts +0 -27
- package/dist/rules/rule.js +0 -101
- package/dist/rules/rules/cjs-require/index.cjs +0 -83
- package/dist/rules/rules/cjs-require/index.d.cts +0 -4
- package/dist/rules/rules/cjs-require/index.js +0 -50
- package/dist/rules/rules/cjs-require/types.cjs +0 -18
- package/dist/rules/rules/cjs-require/types.d.cts +0 -7
- package/dist/rules/rules/cjs-require/types.js +0 -1
- package/dist/rules/rules/cross-chunks-package/index.cjs +0 -74
- package/dist/rules/rules/cross-chunks-package/index.d.cts +0 -4
- package/dist/rules/rules/cross-chunks-package/index.js +0 -41
- package/dist/rules/rules/cross-chunks-package/types.cjs +0 -18
- package/dist/rules/rules/cross-chunks-package/types.d.cts +0 -3
- package/dist/rules/rules/cross-chunks-package/types.js +0 -1
- package/dist/rules/rules/cross-chunks-package/utils.cjs +0 -40
- package/dist/rules/rules/cross-chunks-package/utils.d.cts +0 -1
- package/dist/rules/rules/cross-chunks-package/utils.js +0 -7
- package/dist/rules/rules/default-import-check/index.cjs +0 -116
- package/dist/rules/rules/default-import-check/index.d.cts +0 -4
- package/dist/rules/rules/default-import-check/index.js +0 -83
- package/dist/rules/rules/default-import-check/types.cjs +0 -18
- package/dist/rules/rules/default-import-check/types.d.cts +0 -4
- package/dist/rules/rules/default-import-check/types.js +0 -1
- package/dist/rules/rules/default-import-check/utils.cjs +0 -97
- package/dist/rules/rules/default-import-check/utils.d.cts +0 -10
- package/dist/rules/rules/default-import-check/utils.js +0 -52
- package/dist/rules/rules/duplicate-package/index.cjs +0 -72
- package/dist/rules/rules/duplicate-package/index.d.cts +0 -4
- package/dist/rules/rules/duplicate-package/index.js +0 -39
- package/dist/rules/rules/duplicate-package/types.cjs +0 -60
- package/dist/rules/rules/duplicate-package/types.d.cts +0 -24
- package/dist/rules/rules/duplicate-package/types.js +0 -24
- package/dist/rules/rules/duplicate-package/utils.cjs +0 -84
- package/dist/rules/rules/duplicate-package/utils.d.cts +0 -3
- package/dist/rules/rules/duplicate-package/utils.js +0 -38
- package/dist/rules/rules/ecma-version-check/index.cjs +0 -96
- package/dist/rules/rules/ecma-version-check/index.d.cts +0 -4
- package/dist/rules/rules/ecma-version-check/index.js +0 -53
- package/dist/rules/rules/ecma-version-check/types.cjs +0 -18
- package/dist/rules/rules/ecma-version-check/types.d.cts +0 -3
- package/dist/rules/rules/ecma-version-check/types.js +0 -1
- package/dist/rules/rules/ecma-version-check/utils.cjs +0 -39
- package/dist/rules/rules/ecma-version-check/utils.d.cts +0 -2
- package/dist/rules/rules/ecma-version-check/utils.js +0 -6
- package/dist/rules/rules/esm-resolved-to-cjs/index.cjs +0 -237
- package/dist/rules/rules/esm-resolved-to-cjs/index.d.cts +0 -4
- package/dist/rules/rules/esm-resolved-to-cjs/index.js +0 -193
- package/dist/rules/rules/esm-resolved-to-cjs/types.cjs +0 -18
- package/dist/rules/rules/esm-resolved-to-cjs/types.d.cts +0 -8
- package/dist/rules/rules/esm-resolved-to-cjs/types.js +0 -1
- package/dist/rules/rules/index.cjs +0 -55
- package/dist/rules/rules/index.d.cts +0 -2
- package/dist/rules/rules/index.js +0 -22
- package/dist/rules/rules/loader-performance-optimization/index.cjs +0 -119
- package/dist/rules/rules/loader-performance-optimization/index.d.cts +0 -4
- package/dist/rules/rules/loader-performance-optimization/index.js +0 -86
- package/dist/rules/rules/loader-performance-optimization/types.cjs +0 -18
- package/dist/rules/rules/loader-performance-optimization/types.d.cts +0 -22
- package/dist/rules/rules/loader-performance-optimization/types.js +0 -1
- package/dist/rules/rules/loader-performance-optimization/utils.cjs +0 -43
- package/dist/rules/rules/loader-performance-optimization/utils.d.cts +0 -1
- package/dist/rules/rules/loader-performance-optimization/utils.js +0 -10
- package/dist/rules/rules/module-mixed-chunks/index.cjs +0 -85
- package/dist/rules/rules/module-mixed-chunks/index.d.cts +0 -4
- package/dist/rules/rules/module-mixed-chunks/index.js +0 -52
- package/dist/rules/rules/module-mixed-chunks/types.cjs +0 -18
- package/dist/rules/rules/module-mixed-chunks/types.d.cts +0 -3
- package/dist/rules/rules/module-mixed-chunks/types.js +0 -1
- package/dist/rules/rules/side-effects-only-imports/index.cjs +0 -114
- package/dist/rules/rules/side-effects-only-imports/index.d.cts +0 -4
- package/dist/rules/rules/side-effects-only-imports/index.js +0 -81
- package/dist/rules/rules/side-effects-only-imports/types.cjs +0 -18
- package/dist/rules/rules/side-effects-only-imports/types.d.cts +0 -9
- package/dist/rules/rules/side-effects-only-imports/types.js +0 -1
- package/dist/rules/utils.cjs +0 -46
- package/dist/rules/utils.d.cts +0 -3
- package/dist/rules/utils.js +0 -10
- package/dist/types/chunks.cjs +0 -18
- package/dist/types/chunks.d.cts +0 -6
- package/dist/types/chunks.d.ts +0 -6
- package/dist/types/chunks.js +0 -1
- package/dist/types/index.cjs +0 -79
- package/dist/types/index.d.cts +0 -4
- package/dist/types/index.js +0 -5
- package/dist/types/loader.cjs +0 -18
- package/dist/types/loader.d.cts +0 -19
- package/dist/types/loader.js +0 -1
- package/dist/types/plugin.cjs +0 -18
- package/dist/types/plugin.d.cts +0 -51
- package/dist/types/plugin.js +0 -1
- package/dist/types/rules.cjs +0 -18
- package/dist/types/rules.d.cts +0 -7
- package/dist/types/rules.js +0 -1
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
chunkTransform: ()=>chunkTransform
|
|
28
|
-
});
|
|
29
|
-
const graph_namespaceObject = require("@rsdoctor/graph");
|
|
30
|
-
function chunkTransform(assetMap, bundleStats) {
|
|
31
|
-
return graph_namespaceObject.Chunks.chunkTransform(assetMap, bundleStats);
|
|
32
|
-
}
|
|
33
|
-
exports.chunkTransform = __webpack_exports__.chunkTransform;
|
|
34
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
35
|
-
"chunkTransform"
|
|
36
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
37
|
-
Object.defineProperty(exports, '__esModule', {
|
|
38
|
-
value: true
|
|
39
|
-
});
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_modules__ = {
|
|
3
|
-
"./assetsModules" (module) {
|
|
4
|
-
module.exports = require("./assetsModules.cjs");
|
|
5
|
-
},
|
|
6
|
-
"./chunkTransform" (module) {
|
|
7
|
-
module.exports = require("./chunkTransform.cjs");
|
|
8
|
-
},
|
|
9
|
-
"./rspack/transform" (module) {
|
|
10
|
-
module.exports = require("./rspack/transform.cjs");
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
var __webpack_module_cache__ = {};
|
|
14
|
-
function __webpack_require__(moduleId) {
|
|
15
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
16
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
17
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
18
|
-
exports: {}
|
|
19
|
-
};
|
|
20
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
21
|
-
return module.exports;
|
|
22
|
-
}
|
|
23
|
-
(()=>{
|
|
24
|
-
__webpack_require__.n = (module)=>{
|
|
25
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
26
|
-
__webpack_require__.d(getter, {
|
|
27
|
-
a: getter
|
|
28
|
-
});
|
|
29
|
-
return getter;
|
|
30
|
-
};
|
|
31
|
-
})();
|
|
32
|
-
(()=>{
|
|
33
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
34
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: definition[key]
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
})();
|
|
40
|
-
(()=>{
|
|
41
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
42
|
-
})();
|
|
43
|
-
(()=>{
|
|
44
|
-
__webpack_require__.r = (exports1)=>{
|
|
45
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
46
|
-
value: 'Module'
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
49
|
-
value: true
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
})();
|
|
53
|
-
var __webpack_exports__ = {};
|
|
54
|
-
(()=>{
|
|
55
|
-
__webpack_require__.r(__webpack_exports__);
|
|
56
|
-
var _assetsModules__rspack_import_0 = __webpack_require__("./assetsModules");
|
|
57
|
-
var __rspack_reexport = {};
|
|
58
|
-
for(const __rspack_import_key in _assetsModules__rspack_import_0)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_assetsModules__rspack_import_0[__rspack_import_key];
|
|
59
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
60
|
-
var _chunkTransform__rspack_import_1 = __webpack_require__("./chunkTransform");
|
|
61
|
-
var __rspack_reexport = {};
|
|
62
|
-
for(const __rspack_import_key in _chunkTransform__rspack_import_1)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_chunkTransform__rspack_import_1[__rspack_import_key];
|
|
63
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
64
|
-
var _rspack_transform__rspack_import_2 = __webpack_require__("./rspack/transform");
|
|
65
|
-
var __rspack_reexport = {};
|
|
66
|
-
for(const __rspack_import_key in _rspack_transform__rspack_import_2)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_rspack_transform__rspack_import_2[__rspack_import_key];
|
|
67
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
68
|
-
})();
|
|
69
|
-
for(var __rspack_i in __webpack_exports__)exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
70
|
-
Object.defineProperty(exports, '__esModule', {
|
|
71
|
-
value: true
|
|
72
|
-
});
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
patchNativeAssets: ()=>patchNativeAssets,
|
|
28
|
-
patchNativeChunkGraph: ()=>patchNativeChunkGraph
|
|
29
|
-
});
|
|
30
|
-
const graph_namespaceObject = require("@rsdoctor/graph");
|
|
31
|
-
function patchNativeChunkGraph(cg, rawChunkGraph) {
|
|
32
|
-
const { chunks: rawChunks, entrypoints: rawEntrypoints } = rawChunkGraph;
|
|
33
|
-
const chunks = rawChunks.map((chunk)=>new graph_namespaceObject.Chunk(chunk.ukey.toString(), chunk.name, 0, chunk.initial, chunk.entry));
|
|
34
|
-
cg.setChunks(chunks);
|
|
35
|
-
const entrypoints = rawEntrypoints.map((entrypoint)=>{
|
|
36
|
-
const res = new graph_namespaceObject.EntryPoint(entrypoint.name);
|
|
37
|
-
res.setId(entrypoint.ukey);
|
|
38
|
-
return res;
|
|
39
|
-
});
|
|
40
|
-
cg.setEntrypoints(entrypoints);
|
|
41
|
-
for (const rawChunk of rawChunks){
|
|
42
|
-
const chunk = cg.getChunkById(rawChunk.ukey.toString());
|
|
43
|
-
chunk.setDependencies(rawChunk.dependencies.map((ukey)=>cg.getChunkById(ukey.toString())));
|
|
44
|
-
chunk.setImported(rawChunk.imported.map((ukey)=>cg.getChunkById(ukey.toString())));
|
|
45
|
-
}
|
|
46
|
-
for (const rawEntrypoint of rawEntrypoints){
|
|
47
|
-
const entrypoint = cg.getEntryPointById(rawEntrypoint.ukey);
|
|
48
|
-
entrypoint.setChunks(rawEntrypoint.chunks.map((ukey)=>cg.getChunkById(ukey.toString())));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
function patchNativeAssets(cg, rawAssetPatch) {
|
|
52
|
-
const { assets: rawAssets, chunkAssets: rawChunkAssets, entrypointAssets: rawEntrypointAssets } = rawAssetPatch;
|
|
53
|
-
const assets = rawAssets.map((asset)=>{
|
|
54
|
-
const res = new graph_namespaceObject.Asset(asset.path, asset.size, [], '');
|
|
55
|
-
res.setId(asset.ukey);
|
|
56
|
-
return res;
|
|
57
|
-
});
|
|
58
|
-
cg.setAssets(assets);
|
|
59
|
-
for (const rawAsset of rawAssets){
|
|
60
|
-
const asset = cg.getAssetById(rawAsset.ukey);
|
|
61
|
-
asset.setChunks(rawAsset.chunks.map((ukey)=>cg.getChunkById(ukey.toString())));
|
|
62
|
-
}
|
|
63
|
-
for (const rawChunkAsset of rawChunkAssets){
|
|
64
|
-
const chunk = cg.getChunkById(rawChunkAsset.chunk.toString());
|
|
65
|
-
chunk.setAssets(rawChunkAsset.assets.map((ukey)=>cg.getAssetById(ukey)));
|
|
66
|
-
}
|
|
67
|
-
for (const rawEntrypointAsset of rawEntrypointAssets){
|
|
68
|
-
const entrypoint = cg.getEntryPointById(rawEntrypointAsset.entrypoint);
|
|
69
|
-
entrypoint.setAssets(rawEntrypointAsset.assets.map((ukey)=>cg.getAssetById(ukey)));
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
exports.patchNativeAssets = __webpack_exports__.patchNativeAssets;
|
|
73
|
-
exports.patchNativeChunkGraph = __webpack_exports__.patchNativeChunkGraph;
|
|
74
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
75
|
-
"patchNativeAssets",
|
|
76
|
-
"patchNativeChunkGraph"
|
|
77
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
78
|
-
Object.defineProperty(exports, '__esModule', {
|
|
79
|
-
value: true
|
|
80
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Plugin, SDK } from '@rsdoctor/types';
|
|
2
|
-
/**
|
|
3
|
-
* Patch native chunk graph data from Rspack into ChunkGraph instance
|
|
4
|
-
* @param cg The ChunkGraph instance to be patched
|
|
5
|
-
* @param rawChunkGraph Raw chunk graph data from Rspack native plugin
|
|
6
|
-
*/
|
|
7
|
-
export declare function patchNativeChunkGraph(cg: SDK.ChunkGraphInstance, rawChunkGraph: Plugin.RspackNativeChunkGraph): void;
|
|
8
|
-
/**
|
|
9
|
-
* Patch native assets data from Rspack into ChunkGraph instance
|
|
10
|
-
* @param cg The ChunkGraph instance to be patched
|
|
11
|
-
* @param rawAssetPatch Raw assets patch data from Rspack native plugin
|
|
12
|
-
*/
|
|
13
|
-
export declare function patchNativeAssets(cg: SDK.ChunkGraphInstance, rawAssetPatch: Plugin.RspackNativeAssetPatch): void;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import "node:module";
|
|
2
|
-
import { Asset, Chunk, EntryPoint } from "@rsdoctor/graph";
|
|
3
|
-
function patchNativeChunkGraph(cg, rawChunkGraph) {
|
|
4
|
-
const { chunks: rawChunks, entrypoints: rawEntrypoints } = rawChunkGraph;
|
|
5
|
-
const chunks = rawChunks.map((chunk)=>new Chunk(chunk.ukey.toString(), chunk.name, 0, chunk.initial, chunk.entry));
|
|
6
|
-
cg.setChunks(chunks);
|
|
7
|
-
const entrypoints = rawEntrypoints.map((entrypoint)=>{
|
|
8
|
-
const res = new EntryPoint(entrypoint.name);
|
|
9
|
-
res.setId(entrypoint.ukey);
|
|
10
|
-
return res;
|
|
11
|
-
});
|
|
12
|
-
cg.setEntrypoints(entrypoints);
|
|
13
|
-
for (const rawChunk of rawChunks){
|
|
14
|
-
const chunk = cg.getChunkById(rawChunk.ukey.toString());
|
|
15
|
-
chunk.setDependencies(rawChunk.dependencies.map((ukey)=>cg.getChunkById(ukey.toString())));
|
|
16
|
-
chunk.setImported(rawChunk.imported.map((ukey)=>cg.getChunkById(ukey.toString())));
|
|
17
|
-
}
|
|
18
|
-
for (const rawEntrypoint of rawEntrypoints){
|
|
19
|
-
const entrypoint = cg.getEntryPointById(rawEntrypoint.ukey);
|
|
20
|
-
entrypoint.setChunks(rawEntrypoint.chunks.map((ukey)=>cg.getChunkById(ukey.toString())));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
function patchNativeAssets(cg, rawAssetPatch) {
|
|
24
|
-
const { assets: rawAssets, chunkAssets: rawChunkAssets, entrypointAssets: rawEntrypointAssets } = rawAssetPatch;
|
|
25
|
-
const assets = rawAssets.map((asset)=>{
|
|
26
|
-
const res = new Asset(asset.path, asset.size, [], '');
|
|
27
|
-
res.setId(asset.ukey);
|
|
28
|
-
return res;
|
|
29
|
-
});
|
|
30
|
-
cg.setAssets(assets);
|
|
31
|
-
for (const rawAsset of rawAssets){
|
|
32
|
-
const asset = cg.getAssetById(rawAsset.ukey);
|
|
33
|
-
asset.setChunks(rawAsset.chunks.map((ukey)=>cg.getChunkById(ukey.toString())));
|
|
34
|
-
}
|
|
35
|
-
for (const rawChunkAsset of rawChunkAssets){
|
|
36
|
-
const chunk = cg.getChunkById(rawChunkAsset.chunk.toString());
|
|
37
|
-
chunk.setAssets(rawChunkAsset.assets.map((ukey)=>cg.getAssetById(ukey)));
|
|
38
|
-
}
|
|
39
|
-
for (const rawEntrypointAsset of rawEntrypointAssets){
|
|
40
|
-
const entrypoint = cg.getEntryPointById(rawEntrypointAsset.entrypoint);
|
|
41
|
-
entrypoint.setAssets(rawEntrypointAsset.assets.map((ukey)=>cg.getAssetById(ukey)));
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
export { patchNativeAssets, patchNativeChunkGraph };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
Chunks: ()=>index_cjs_namespaceObject,
|
|
28
|
-
Loader: ()=>external_loader_index_cjs_namespaceObject,
|
|
29
|
-
ModuleGraph: ()=>external_module_graph_index_cjs_namespaceObject,
|
|
30
|
-
Types: ()=>external_types_index_cjs_namespaceObject,
|
|
31
|
-
Utils: ()=>external_utils_index_cjs_namespaceObject
|
|
32
|
-
});
|
|
33
|
-
const index_cjs_namespaceObject = require("./chunks/index.cjs");
|
|
34
|
-
const external_utils_index_cjs_namespaceObject = require("./utils/index.cjs");
|
|
35
|
-
const external_loader_index_cjs_namespaceObject = require("./loader/index.cjs");
|
|
36
|
-
const external_types_index_cjs_namespaceObject = require("../../types/index.cjs");
|
|
37
|
-
const external_module_graph_index_cjs_namespaceObject = require("./module-graph/index.cjs");
|
|
38
|
-
exports.Chunks = __webpack_exports__.Chunks;
|
|
39
|
-
exports.Loader = __webpack_exports__.Loader;
|
|
40
|
-
exports.ModuleGraph = __webpack_exports__.ModuleGraph;
|
|
41
|
-
exports.Types = __webpack_exports__.Types;
|
|
42
|
-
exports.Utils = __webpack_exports__.Utils;
|
|
43
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
44
|
-
"Chunks",
|
|
45
|
-
"Loader",
|
|
46
|
-
"ModuleGraph",
|
|
47
|
-
"Types",
|
|
48
|
-
"Utils"
|
|
49
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
50
|
-
Object.defineProperty(exports, '__esModule', {
|
|
51
|
-
value: true
|
|
52
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "node:module";
|
|
2
|
-
import * as __rspack_external__chunks_index_js_0dff7c47 from "./chunks/index.js";
|
|
3
|
-
import * as __rspack_external__utils_index_js_1ffdce1c from "./utils/index.js";
|
|
4
|
-
import * as __rspack_external__loader_index_js_7618f2f0 from "./loader/index.js";
|
|
5
|
-
import * as __rspack_external__types_index_js_def0ea92 from "../../types/index.js";
|
|
6
|
-
import * as __rspack_external__module_graph_index_js_3ee70f67 from "./module-graph/index.js";
|
|
7
|
-
export { __rspack_external__chunks_index_js_0dff7c47 as Chunks, __rspack_external__loader_index_js_7618f2f0 as Loader, __rspack_external__module_graph_index_js_3ee70f67 as ModuleGraph, __rspack_external__types_index_js_def0ea92 as Types, __rspack_external__utils_index_js_1ffdce1c as Utils };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_modules__ = {
|
|
3
|
-
"./probeLoader" (module) {
|
|
4
|
-
module.exports = require("./probeLoader.cjs");
|
|
5
|
-
},
|
|
6
|
-
"./probeLoaderPlugin" (module) {
|
|
7
|
-
module.exports = require("./probeLoaderPlugin.cjs");
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
var __webpack_module_cache__ = {};
|
|
11
|
-
function __webpack_require__(moduleId) {
|
|
12
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
13
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
14
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
15
|
-
exports: {}
|
|
16
|
-
};
|
|
17
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
18
|
-
return module.exports;
|
|
19
|
-
}
|
|
20
|
-
(()=>{
|
|
21
|
-
__webpack_require__.n = (module)=>{
|
|
22
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
23
|
-
__webpack_require__.d(getter, {
|
|
24
|
-
a: getter
|
|
25
|
-
});
|
|
26
|
-
return getter;
|
|
27
|
-
};
|
|
28
|
-
})();
|
|
29
|
-
(()=>{
|
|
30
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
31
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: definition[key]
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
})();
|
|
37
|
-
(()=>{
|
|
38
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
39
|
-
})();
|
|
40
|
-
(()=>{
|
|
41
|
-
__webpack_require__.r = (exports1)=>{
|
|
42
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
43
|
-
value: 'Module'
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
46
|
-
value: true
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
})();
|
|
50
|
-
var __webpack_exports__ = {};
|
|
51
|
-
(()=>{
|
|
52
|
-
__webpack_require__.r(__webpack_exports__);
|
|
53
|
-
var _probeLoaderPlugin__rspack_import_0 = __webpack_require__("./probeLoaderPlugin");
|
|
54
|
-
var __rspack_reexport = {};
|
|
55
|
-
for(const __rspack_import_key in _probeLoaderPlugin__rspack_import_0)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_probeLoaderPlugin__rspack_import_0[__rspack_import_key];
|
|
56
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
57
|
-
var _probeLoader__rspack_import_1 = __webpack_require__("./probeLoader");
|
|
58
|
-
var __rspack_reexport = {};
|
|
59
|
-
for(const __rspack_import_key in _probeLoader__rspack_import_1)if ("default" !== __rspack_import_key) __rspack_reexport[__rspack_import_key] = ()=>_probeLoader__rspack_import_1[__rspack_import_key];
|
|
60
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
61
|
-
})();
|
|
62
|
-
for(var __rspack_i in __webpack_exports__)exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
63
|
-
Object.defineProperty(exports, '__esModule', {
|
|
64
|
-
value: true
|
|
65
|
-
});
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.n = (module)=>{
|
|
5
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
-
__webpack_require__.d(getter, {
|
|
7
|
-
a: getter
|
|
8
|
-
});
|
|
9
|
-
return getter;
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
(()=>{
|
|
13
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
14
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: definition[key]
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
})();
|
|
20
|
-
(()=>{
|
|
21
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
22
|
-
})();
|
|
23
|
-
(()=>{
|
|
24
|
-
__webpack_require__.r = (exports1)=>{
|
|
25
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
26
|
-
value: 'Module'
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
29
|
-
value: true
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
})();
|
|
33
|
-
var __webpack_exports__ = {};
|
|
34
|
-
__webpack_require__.r(__webpack_exports__);
|
|
35
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
-
default: ()=>probeLoader,
|
|
37
|
-
loaderModule: ()=>loaderModule
|
|
38
|
-
});
|
|
39
|
-
const external_index_cjs_namespaceObject = require("../../index.cjs");
|
|
40
|
-
const index_cjs_namespaceObject = require("../../../inner-plugins/index.cjs");
|
|
41
|
-
const compat_namespaceObject = require("es-toolkit/compat");
|
|
42
|
-
const external_path_namespaceObject = require("path");
|
|
43
|
-
var external_path_default = /*#__PURE__*/ __webpack_require__.n(external_path_namespaceObject);
|
|
44
|
-
const loaderModule = function(...args) {
|
|
45
|
-
const time = Date.now();
|
|
46
|
-
const code = args[0];
|
|
47
|
-
const _options = this.getOptions();
|
|
48
|
-
const sdk = (0, index_cjs_namespaceObject.getSDK)(_options.builderName);
|
|
49
|
-
const loaderData = {
|
|
50
|
-
resource: {
|
|
51
|
-
path: this._module?.layer ? `${this.resourcePath}[${this._module.layer}]` : this.resourcePath,
|
|
52
|
-
query: external_index_cjs_namespaceObject.Build.Utils.parseQuery(this.resourceQuery),
|
|
53
|
-
queryRaw: this.resourceQuery,
|
|
54
|
-
ext: external_path_default().extname(this.resourcePath).slice(1),
|
|
55
|
-
...this._module?.layer ? {
|
|
56
|
-
layer: this._module.layer
|
|
57
|
-
} : {}
|
|
58
|
-
},
|
|
59
|
-
loaders: [
|
|
60
|
-
{
|
|
61
|
-
loader: _options.loader,
|
|
62
|
-
loaderIndex: this.loaderIndex,
|
|
63
|
-
path: _options.loader,
|
|
64
|
-
input: 'start' === _options.type ? code : null,
|
|
65
|
-
result: 'end' === _options.type ? code : null,
|
|
66
|
-
startAt: 'start' === _options.type ? time : 0,
|
|
67
|
-
endAt: 'end' === _options.type ? time : 0,
|
|
68
|
-
options: (0, compat_namespaceObject.omit)(_options.options, 'type'),
|
|
69
|
-
isPitch: false,
|
|
70
|
-
sync: false,
|
|
71
|
-
errors: [],
|
|
72
|
-
pid: process.pid,
|
|
73
|
-
ppid: process.ppid
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
};
|
|
77
|
-
sdk?.reportLoaderStartOrEnd(loaderData);
|
|
78
|
-
this.callback(null, ...args);
|
|
79
|
-
};
|
|
80
|
-
const probeLoader = loaderModule;
|
|
81
|
-
exports["default"] = __webpack_exports__["default"];
|
|
82
|
-
exports.loaderModule = __webpack_exports__.loaderModule;
|
|
83
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
84
|
-
"default",
|
|
85
|
-
"loaderModule"
|
|
86
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
87
|
-
Object.defineProperty(exports, '__esModule', {
|
|
88
|
-
value: true
|
|
89
|
-
});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import "node:module";
|
|
2
|
-
import { Build } from "../../index.js";
|
|
3
|
-
import { getSDK } from "../../../inner-plugins/index.js";
|
|
4
|
-
import { omit } from "es-toolkit/compat";
|
|
5
|
-
import path from "path";
|
|
6
|
-
const loaderModule = function(...args) {
|
|
7
|
-
const time = Date.now();
|
|
8
|
-
const code = args[0];
|
|
9
|
-
const _options = this.getOptions();
|
|
10
|
-
const sdk = getSDK(_options.builderName);
|
|
11
|
-
const loaderData = {
|
|
12
|
-
resource: {
|
|
13
|
-
path: this._module?.layer ? `${this.resourcePath}[${this._module.layer}]` : this.resourcePath,
|
|
14
|
-
query: Build.Utils.parseQuery(this.resourceQuery),
|
|
15
|
-
queryRaw: this.resourceQuery,
|
|
16
|
-
ext: path.extname(this.resourcePath).slice(1),
|
|
17
|
-
...this._module?.layer ? {
|
|
18
|
-
layer: this._module.layer
|
|
19
|
-
} : {}
|
|
20
|
-
},
|
|
21
|
-
loaders: [
|
|
22
|
-
{
|
|
23
|
-
loader: _options.loader,
|
|
24
|
-
loaderIndex: this.loaderIndex,
|
|
25
|
-
path: _options.loader,
|
|
26
|
-
input: 'start' === _options.type ? code : null,
|
|
27
|
-
result: 'end' === _options.type ? code : null,
|
|
28
|
-
startAt: 'start' === _options.type ? time : 0,
|
|
29
|
-
endAt: 'end' === _options.type ? time : 0,
|
|
30
|
-
options: omit(_options.options, 'type'),
|
|
31
|
-
isPitch: false,
|
|
32
|
-
sync: false,
|
|
33
|
-
errors: [],
|
|
34
|
-
pid: process.pid,
|
|
35
|
-
ppid: process.ppid
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
};
|
|
39
|
-
sdk?.reportLoaderStartOrEnd(loaderData);
|
|
40
|
-
this.callback(null, ...args);
|
|
41
|
-
};
|
|
42
|
-
const probeLoader = loaderModule;
|
|
43
|
-
export default probeLoader;
|
|
44
|
-
export { loaderModule };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
ProbeLoaderPlugin: ()=>ProbeLoaderPlugin
|
|
28
|
-
});
|
|
29
|
-
const common_namespaceObject = require("@rsdoctor/utils/common");
|
|
30
|
-
const external_index_cjs_namespaceObject = require("../../index.cjs");
|
|
31
|
-
const external_index_cjs_namespaceObject_1 = require("../index.cjs");
|
|
32
|
-
const BuiltinLoaderName = 'builtin:swc-loader';
|
|
33
|
-
const BuiltinLightingCssName = 'builtin:lightningcss-loader';
|
|
34
|
-
const ESMLoaderFile = '.mjs';
|
|
35
|
-
class ProbeLoaderPlugin {
|
|
36
|
-
apply(compiler) {
|
|
37
|
-
compiler.hooks.beforeRun.tap({
|
|
38
|
-
name: 'ProbeLoaderPlugin'
|
|
39
|
-
}, ()=>{
|
|
40
|
-
this.addProbeLoader(compiler);
|
|
41
|
-
});
|
|
42
|
-
compiler.hooks.watchRun.tap({
|
|
43
|
-
name: 'ProbeLoaderPlugin'
|
|
44
|
-
}, ()=>{
|
|
45
|
-
this.addProbeLoader(compiler);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
addProbeLoader(compiler) {
|
|
49
|
-
let rules = compiler.options.module.rules;
|
|
50
|
-
if (common_namespaceObject.Loader.isVue(compiler)) {
|
|
51
|
-
compiler.options.module.rules = external_index_cjs_namespaceObject_1.Utils.addProbeLoader2Rules(rules, compiler, (r)=>!!r.loader || 'string' == typeof r);
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
rules = external_index_cjs_namespaceObject_1.Utils.addProbeLoader2Rules(rules, compiler, (r)=>external_index_cjs_namespaceObject.Build.Utils.getLoaderNameMatch(r, BuiltinLoaderName, true));
|
|
55
|
-
rules = external_index_cjs_namespaceObject_1.Utils.addProbeLoader2Rules(rules, compiler, (r)=>external_index_cjs_namespaceObject.Build.Utils.getLoaderNameMatch(r, BuiltinLightingCssName, true));
|
|
56
|
-
compiler.options.module.rules = external_index_cjs_namespaceObject_1.Utils.addProbeLoader2Rules(rules, compiler, (r)=>external_index_cjs_namespaceObject.Build.Utils.getLoaderNameMatch(r, ESMLoaderFile, false) || external_index_cjs_namespaceObject.Build.Utils.isESMLoader(r));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.ProbeLoaderPlugin = __webpack_exports__.ProbeLoaderPlugin;
|
|
60
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
61
|
-
"ProbeLoaderPlugin"
|
|
62
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
63
|
-
Object.defineProperty(exports, '__esModule', {
|
|
64
|
-
value: true
|
|
65
|
-
});
|