diff --git a/package.json b/package.json index eb56a745d..a139639c3 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,9 @@ "@google-cloud/firestore": "^6.7.0", "@sentry/node": "^7.66.0", "@slack/web-api": "^6.9.0", + "@swc/core": "^1.15.11", + "@swc/wasm": "^1.15.11", "@types/node": "^25.9.0", - "@vercel/webpack-asset-relocator-loader": "1.7.3", "analytics-node": "^6.2.0", "apollo-server-express": "^2.2.2", "arg": "^5.0.2", @@ -104,11 +105,11 @@ "terser": "^5.33.0", "the-answer": "^1.0.0", "tiny-json-http": "^7.5.1", - "ts-loader": "^9.5.7", "tsconfig-paths": "^4.2.0", "tsconfig-paths-webpack-plugin": "^4.1.0", "twilio": "^3.23.2", "typescript": "^5.2.2", + "undici-types": "^7.21.0", "vm2": "^3.10.3", "vue": "^2.5.17", "vue-server-renderer": "^2.5.17", @@ -116,5 +117,9 @@ "webpack": "5.94.0", "when": "^3.7.8" }, - "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319" + "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319", + "dependencies": { + "@rspack/core": "^1.7.11", + "@vercel/webpack-asset-relocator-loader": "^1.10.0" + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 59d793fff..6392f4f7e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,6 +12,13 @@ patchedDependencies: importers: .: + dependencies: + '@rspack/core': + specifier: ^1.7.11 + version: 1.7.11 + '@vercel/webpack-asset-relocator-loader': + specifier: ^1.10.0 + version: 1.10.0(encoding@0.1.13) devDependencies: '@aws-sdk/client-s3': specifier: ^3.787.0 @@ -37,12 +44,15 @@ importers: '@slack/web-api': specifier: ^6.9.0 version: 6.13.0 + '@swc/core': + specifier: ^1.15.11 + version: 1.15.40 + '@swc/wasm': + specifier: ^1.15.11 + version: 1.15.40 '@types/node': specifier: ^25.9.0 version: 25.9.0 - '@vercel/webpack-asset-relocator-loader': - specifier: 1.7.3 - version: 1.7.3 analytics-node: specifier: ^6.2.0 version: 6.2.0 @@ -147,7 +157,7 @@ importers: version: 6.1.1 license-webpack-plugin: specifier: ^4.0.2 - version: 4.0.2(webpack@5.94.0) + version: 4.0.2(webpack@5.94.0(@swc/core@1.15.40)) lighthouse: specifier: ^8.1.0 version: 8.6.0 @@ -259,9 +269,6 @@ importers: tiny-json-http: specifier: ^7.5.1 version: 7.5.1 - ts-loader: - specifier: ^9.5.7 - version: 9.5.7(typescript@5.9.3)(webpack@5.94.0) tsconfig-paths: specifier: ^4.2.0 version: 4.2.0 @@ -274,6 +281,9 @@ importers: typescript: specifier: ^5.2.2 version: 5.9.3 + undici-types: + specifier: ^7.21.0 + version: 7.24.6 vm2: specifier: ^3.10.3 version: 3.11.5 @@ -288,7 +298,7 @@ importers: version: 0.2.4 webpack: specifier: 5.94.0 - version: 5.94.0 + version: 5.94.0(@swc/core@1.15.40) when: specifier: ^3.7.8 version: 3.7.8 @@ -646,6 +656,15 @@ packages: '@bugsnag/safe-json-stringify@6.1.0': resolution: {integrity: sha512-ImA35rnM7bGr+J30R979FQ95BhRB4UO1KfJA0J2sVqc8nwnrS9hhE5mkTmQWMs8Vh1Da+hkLKs5jJB4JjNZp4A==} + '@emnapi/core@1.10.0': + resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==} + + '@emnapi/runtime@1.10.0': + resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==} + + '@emnapi/wasi-threads@1.2.1': + resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==} + '@fastify/busboy@1.2.1': resolution: {integrity: sha512-7PQA7EH43S0CxcOa9OeAnaeA0oQ+e/DHNPZwSQM9CQHW76jle5+OvLdibRp/Aafs9KXbLhxyjOTkRjWUbQEd3Q==} engines: {node: '>=14'} @@ -1176,9 +1195,35 @@ packages: resolution: {integrity: sha512-TuB0x50EoAvEX/UEWITd8Mkn3WhiTjSvbTMCLj0BhsQEl5iUzjXdA0bETEVpTk+5TGTLR6QktI9H4hLviVeaAQ==} engines: {node: '>=v12.0.0'} + '@mapbox/node-pre-gyp@2.0.3': + resolution: {integrity: sha512-uwPAhccfFJlsfCxMYTwOdVfOz3xqyj8xYL3zJj8f0pb30tLohnnFPhLuqp4/qoEz8sNxe4SESZedcBojRefIzg==} + engines: {node: '>=18'} + hasBin: true + + '@module-federation/error-codes@0.22.0': + resolution: {integrity: sha512-xF9SjnEy7vTdx+xekjPCV5cIHOGCkdn3pIxo9vU7gEZMIw0SvAEdsy6Uh17xaCpm8V0FWvR0SZoK9Ik6jGOaug==} + + '@module-federation/runtime-core@0.22.0': + resolution: {integrity: sha512-GR1TcD6/s7zqItfhC87zAp30PqzvceoeDGYTgF3Vx2TXvsfDrhP6Qw9T4vudDQL3uJRne6t7CzdT29YyVxlgIA==} + + '@module-federation/runtime-tools@0.22.0': + resolution: {integrity: sha512-4ScUJ/aUfEernb+4PbLdhM/c60VHl698Gn1gY21m9vyC1Ucn69fPCA1y2EwcCB7IItseRMoNhdcWQnzt/OPCNA==} + + '@module-federation/runtime@0.22.0': + resolution: {integrity: sha512-38g5iPju2tPC3KHMPxRKmy4k4onNp6ypFPS1eKGsNLUkXgHsPMBFqAjDw96iEcjri91BrahG4XcdyKi97xZzlA==} + + '@module-federation/sdk@0.22.0': + resolution: {integrity: sha512-x4aFNBKn2KVQRuNVC5A7SnrSCSqyfIWmm1DvubjbO9iKFe7ith5niw8dqSFBekYBg2Fwy+eMg4sEFNVvCAdo6g==} + + '@module-federation/webpack-bundler-runtime@0.22.0': + resolution: {integrity: sha512-aM8gCqXu+/4wBmJtVeMeeMN5guw3chf+2i6HajKtQv7SJfxV/f4IyNQJUeUQu9HfiAZHjqtMV5Lvq/Lvh8LdyA==} + '@mongodb-js/saslprep@1.4.11': resolution: {integrity: sha512-o9rAHc0IpIjuPSxRutWpE1F62x7n+4mVS4rCNHkzhIUMQcc18bb6xEq5wd2NdN0WjepIyXIppRshYI2kQDOZVA==} + '@napi-rs/wasm-runtime@1.0.7': + resolution: {integrity: sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==} + '@nodable/entities@2.1.0': resolution: {integrity: sha512-nyT7T3nbMyBI/lvr6L5TyWbFJAI9FTgVRakNoBqCD+PmID8DzFrrNdLLtHMwMszOtqZa8PAOV24ZqDnQrhQINA==} @@ -1212,6 +1257,74 @@ packages: '@protobufjs/utf8@1.1.1': resolution: {integrity: sha512-oOAWABowe8EAbMyWKM0tYDKi8Yaox52D+HWZhAIJqQXbqe0xI/GV7FhLWqlEKreMkfDjshR5FKgi3mnle0h6Eg==} + '@rspack/binding-darwin-arm64@1.7.11': + resolution: {integrity: sha512-oduECiZVqbO5zlVw+q7Vy65sJFth99fWPTyucwvLJJtJkPL5n17Uiql2cYP6Ijn0pkqtf1SXgK8WjiKLG5bIig==} + cpu: [arm64] + os: [darwin] + + '@rspack/binding-darwin-x64@1.7.11': + resolution: {integrity: sha512-a1+TtTE9ap6RalgFi7FGIgkJP6O4Vy6ctv+9WGJy53E4kuqHR0RygzaiVxCI/GMc/vBT9vY23hyrpWb3d1vtXA==} + cpu: [x64] + os: [darwin] + + '@rspack/binding-linux-arm64-gnu@1.7.11': + resolution: {integrity: sha512-P0QrGRPbTWu6RKWfN0bDtbnEps3rXH0MWIMreZABoUrVmNQKtXR6e73J3ub6a+di5s2+K0M2LJ9Bh2/H4UsDUA==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rspack/binding-linux-arm64-musl@1.7.11': + resolution: {integrity: sha512-6ky7R43VMjWwmx3Yx7Jl7faLBBMAgMDt+/bN35RgwjiPgsIByz65EwytUVuW9rikB43BGHvA/eqlnjLrUzNBqw==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rspack/binding-linux-x64-gnu@1.7.11': + resolution: {integrity: sha512-cuOJMfCOvb2Wgsry5enXJ3iT1FGUjdPqtGUBVupQlEG4ntSYsQ2PtF4wIDVasR3wdxC5nQbipOrDiN/u6fYsdQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rspack/binding-linux-x64-musl@1.7.11': + resolution: {integrity: sha512-CoK37hva4AmHGh3VCsQXmGr40L36m1/AdnN5LEjUX6kx5rEH7/1nEBN6Ii72pejqDVvk9anEROmPDiPw10tpFg==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rspack/binding-wasm32-wasi@1.7.11': + resolution: {integrity: sha512-OtrmnPUVJMxjNa3eDMfHyPdtlLRmmp/aIm0fQHlAOATbZvlGm12q7rhPW5BXTu1yh+1rQ1/uqvz+SzKEZXuJaQ==} + cpu: [wasm32] + + '@rspack/binding-win32-arm64-msvc@1.7.11': + resolution: {integrity: sha512-lObFW6e5lCWNgTBNwT//yiEDbsxm9QG4BYUojqeXxothuzJ/L6ibXz6+gLMvbOvLGV3nKgkXmx8GvT9WDKR0mA==} + cpu: [arm64] + os: [win32] + + '@rspack/binding-win32-ia32-msvc@1.7.11': + resolution: {integrity: sha512-0pYGnZd8PPqNR68zQ8skamqNAXEA1sUfXuAdYcknIIRq2wsbiwFzIc0Pov1cIfHYab37G7sSIPBiOUdOWF5Ivw==} + cpu: [ia32] + os: [win32] + + '@rspack/binding-win32-x64-msvc@1.7.11': + resolution: {integrity: sha512-EeQXayoQk/uBkI3pdoXfQBXNIUrADq56L3s/DFyM2pJeUDrWmhfIw2UFIGkYPTMSCo8F2JcdcGM32FGJrSnU0Q==} + cpu: [x64] + os: [win32] + + '@rspack/binding@1.7.11': + resolution: {integrity: sha512-2MGdy2s2HimsDT444Bp5XnALzNRxuBNc7y0JzyuqKbHBywd4x2NeXyhWXXoxufaCFu5PBc9Qq9jyfjW2Aeh06Q==} + + '@rspack/core@1.7.11': + resolution: {integrity: sha512-rsD9b+Khmot5DwCMiB3cqTQo53ioPG3M/A7BySu8+0+RS7GCxKm+Z+mtsjtG/vsu4Tn2tcqCdZtA3pgLoJB+ew==} + engines: {node: '>=18.12.0'} + peerDependencies: + '@swc/helpers': '>=0.5.1' + peerDependenciesMeta: + '@swc/helpers': + optional: true + + '@rspack/lite-tapable@1.1.0': + resolution: {integrity: sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw==} + '@segment/loosely-validate-event@2.0.0': resolution: {integrity: sha512-ZMCSfztDBqwotkl848ODgVcAmN4OItEWDCkshcKz0/W6gGSQayuuCtWV/MlodFivAZD793d6UgANd6wCXUfrIw==} @@ -1308,9 +1421,105 @@ packages: '@socket.io/component-emitter@3.1.2': resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==} + '@swc/core-darwin-arm64@1.15.40': + resolution: {integrity: sha512-PaYyclfmQ++77D8ityYvmmVzHv9aG8ROwt2GfG6/ccloy4Hgf80qtOnzb9VYvPsUT7Ty1uhuDRhv3XYpf62qhQ==} + engines: {node: '>=10'} + cpu: [arm64] + os: [darwin] + + '@swc/core-darwin-x64@1.15.40': + resolution: {integrity: sha512-HbbPzvfLBUXjIB1Ezks+//lNUjmLjfyd63XSwprJgrZaXYdm70kohXPJUWdqKZozolFxbPaO+xtBaiUp6BoueA==} + engines: {node: '>=10'} + cpu: [x64] + os: [darwin] + + '@swc/core-linux-arm-gnueabihf@1.15.40': + resolution: {integrity: sha512-SlRZsCjOCPR2LvFs0Ri/Xrx/5o5TCt8vl4gW6mX1hEZOG0a625RxzRHpHdAQNGykmAN/7IeaFAJG+QnNmxlHcA==} + engines: {node: '>=10'} + cpu: [arm] + os: [linux] + + '@swc/core-linux-arm64-gnu@1.15.40': + resolution: {integrity: sha512-Q8byxJt2fh8CR3EUX6snBpy47AoBVm+In/+Z3rjDHMjC38ZvR9/gtUUNCT0tfrn4EdVsO8/QPi59nxrxvqxvBQ==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@swc/core-linux-arm64-musl@1.15.40': + resolution: {integrity: sha512-4z0MgHU+7M0pZDqBN1El7mFXDI1SBwinfcUkAyA4v8QrhOIUOZltySt2aStQLZGrdXVXM4Y4ylfiTC04ED+MoQ==} + engines: {node: '>=10'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@swc/core-linux-ppc64-gnu@1.15.40': + resolution: {integrity: sha512-fLI4iUgeSZu0eRWUXwe6YzPFx9gHbFiPkl8Rp3mJfP8OpNR3nTQCGPvHdDh9xniW7mVvgMY4ni7A4VzqI1KrpA==} + engines: {node: '>=10'} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@swc/core-linux-s390x-gnu@1.15.40': + resolution: {integrity: sha512-YqeKMAb7d4nQSGMJQ454IlaCENpzcDqhvBE9+CPfdnYpnUXxd+BSrB6Xk0YjW8UyoEhUj4p6quATCxbsp6J3jg==} + engines: {node: '>=10'} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@swc/core-linux-x64-gnu@1.15.40': + resolution: {integrity: sha512-7HOuS1iGcme/j/TuL1TfmmLGiMQrjv/GmjyZeydl00FKPtpGXEldwqfI56xgd1YzrzoB2svWjxbGGyQ0TEASxg==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@swc/core-linux-x64-musl@1.15.40': + resolution: {integrity: sha512-h4kZYHc7dpc9P9u4brRJaS8Pl7tPVHAeiLSzw7T5RfIJgAoSdaCMKzI/2Uay9gFhaw8uyCDl0L5q37r0EpAfIA==} + engines: {node: '>=10'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@swc/core-win32-arm64-msvc@1.15.40': + resolution: {integrity: sha512-+mQgKZXSj6mV38Zh05QaxSjUDmGP/R2JWlXZTDLSPkDzHU6p3GxN9eeSf5dfyDVU86946fmCvSzyl/ucImx8+A==} + engines: {node: '>=10'} + cpu: [arm64] + os: [win32] + + '@swc/core-win32-ia32-msvc@1.15.40': + resolution: {integrity: sha512-yvwdPLGd25mcj/mNatjNQ0lZujtQD6psH3v9PNmMb+fSzjbNG8KIDxjFWrcV+fsFVLOkyOmdJsFmX7NAFjVyPw==} + engines: {node: '>=10'} + cpu: [ia32] + os: [win32] + + '@swc/core-win32-x64-msvc@1.15.40': + resolution: {integrity: sha512-OXtKsLU1bVtInzzDEAY2sYiF/rl4tvAnLLLpuMp3HzAOQZ5A+i69AKDhA1YLQTaMAqO3vzyYNVAYVRMPtSYD4w==} + engines: {node: '>=10'} + cpu: [x64] + os: [win32] + + '@swc/core@1.15.40': + resolution: {integrity: sha512-2kwzJikRvgtNAG7MwVZY2vEzZjTxKIq5jXOihuSV/8U+Hej8Va22t65aKnJZs3P+NwojZvR8Mf8kyM7O+V8sQg==} + engines: {node: '>=10'} + peerDependencies: + '@swc/helpers': '>=0.5.17' + peerDependenciesMeta: + '@swc/helpers': + optional: true + + '@swc/counter@0.1.3': + resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==} + '@swc/helpers@0.3.17': resolution: {integrity: sha512-tb7Iu+oZ+zWJZ3HJqwx8oNwSDIU440hmVMDPhpACWQWnrZHK99Bxs70gT1L2dnr5Hg50ZRWEFkQCAnOVVV0z1Q==} + '@swc/types@0.1.26': + resolution: {integrity: sha512-lyMwd7WGgG79RS7EERZV3T8wMdmPq3xwyg+1nmAM64kIhx5yl+juO2PYIHb7vTiPgPCj8LYjsNV2T5wiQHUEaw==} + + '@swc/wasm@1.15.40': + resolution: {integrity: sha512-FVS3SEJXBxjpxVUGSzaTaCdJjnXUalRftA/6hILMAJIcYHBoiBfJlxuH6s47iajlAJZP25e5Kf4HNHvvwyOEgw==} + '@szmarczak/http-timer@1.1.2': resolution: {integrity: sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==} engines: {node: '>=6'} @@ -1330,6 +1539,9 @@ packages: resolution: {integrity: sha512-HqmEUIGRJ5fSXchkVgR5F7qn48bDBzv0kWj/Kfu5e6uci4UlEeng4331LnBkWffb++Ei3FOVLxo8JJWMFBDMeQ==} engines: {node: '>= 10'} + '@tybys/wasm-util@0.10.2': + resolution: {integrity: sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==} + '@types/accepts@1.3.7': resolution: {integrity: sha512-Pay9fq2lM2wXPWbteBsRAGiWH2hig4ZE2asK+mm7kUzlxRTfL961rj89I6zV/E3PcIkDqyuBEcMxFT7rccugeQ==} @@ -1515,8 +1727,8 @@ packages: resolution: {integrity: sha512-yURCknZhvywvQItHMMmFSo+fq5arCUIyz/CVk7jD89MSai7dkaX8ufjCWp3NttLojoTVbcE72ri+be/TnEbMHw==} engines: {node: '>=20.0.0'} - '@vercel/webpack-asset-relocator-loader@1.7.3': - resolution: {integrity: sha512-vizrI18v8Lcb1PmNNUBz7yxPxxXoOeuaVEjTG9MjvDrphjiSxFZrRJ5tIghk+qdLFRCXI5HBCshgobftbmrC5g==} + '@vercel/webpack-asset-relocator-loader@1.10.0': + resolution: {integrity: sha512-CCDqnX5Jt1hmwvUhpkKm4y8oK9Z4HyEtNPthxTp37WOllawyuAxDuNCAr2X6SmwOlFpcudNzIBvuDQ29MVQuCQ==} '@vue/compiler-sfc@2.7.16': resolution: {integrity: sha512-KWhJ9k5nXuNtygPU7+t1rX6baZeqOYLEforUPjgNDBnLicfHCoi48H87Q8XyLZOrNNsmhuwKqtpDQWjEFe6Ekg==} @@ -1583,6 +1795,10 @@ packages: resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==} deprecated: Use your platform's native atob() and btoa() methods instead + abbrev@3.0.1: + resolution: {integrity: sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg==} + engines: {node: ^18.17.0 || >=20.5.0} + abbrev@4.0.0: resolution: {integrity: sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==} engines: {node: ^20.17.0 || >=22.9.0} @@ -1603,6 +1819,12 @@ packages: resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==} engines: {node: '>= 0.6'} + acorn-class-fields@1.0.0: + resolution: {integrity: sha512-l+1FokF34AeCXGBHkrXFmml9nOIRI+2yBnBpO5MaVAaTIJ96irWLtcCxX+7hAp6USHFCe+iyyBB4ZhxV807wmA==} + engines: {node: '>=4.8.2'} + peerDependencies: + acorn: ^6 || ^7 || ^8 + acorn-globals@6.0.0: resolution: {integrity: sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==} @@ -1619,6 +1841,18 @@ packages: acorn-node@1.8.2: resolution: {integrity: sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==} + acorn-private-class-elements@1.0.0: + resolution: {integrity: sha512-zYNcZtxKgVCg1brS39BEou86mIao1EV7eeREG+6WMwKbuYTeivRRs6S2XdWnboRde6G9wKh2w+WBydEyJsJ6mg==} + engines: {node: '>=4.8.2'} + peerDependencies: + acorn: ^6.1.0 || ^7 || ^8 + + acorn-static-class-features@1.0.0: + resolution: {integrity: sha512-XZJECjbmMOKvMHiNzbiPXuXpLAJfN3dAKtfIYbk1eHiWdsutlek+gS7ND4B8yJ3oqvHo1NxfafnezVmq7NXK0A==} + engines: {node: '>=4.8.2'} + peerDependencies: + acorn: ^6.1.0 || ^7 || ^8 + acorn-walk@7.2.0: resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==} engines: {node: '>=0.4.0'} @@ -2084,6 +2318,9 @@ packages: bcryptjs@2.4.3: resolution: {integrity: sha512-V/Hy/X9Vt7f3BbPJEi8BdVFMByHi+jNXrYkW3huaybV/kQ0KJg0Y6PkEMbn+zeT+i+SiKZ/HMqJGIIt4LZDqNQ==} + big.js@5.2.2: + resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==} + big.js@7.0.1: resolution: {integrity: sha512-iFgV784tD8kq4ccF1xtNMZnXeZzVuXWWM+ERFzKQjv+A5G9HC8CY3DuV45vgzFFcW+u2tIvmF95+AzWgs6BjCg==} @@ -2507,6 +2744,10 @@ packages: connection-parse@0.0.7: resolution: {integrity: sha512-bTTG28diWg7R7/+qE5NZumwPbCiJOT8uPdZYu674brDjBWQctbaQbYlDKhalS+4i5HxIx+G8dZsnBHKzWpp01A==} + consola@3.4.2: + resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==} + engines: {node: ^14.18.0 || >=16.10.0} + console-browserify@1.2.0: resolution: {integrity: sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==} @@ -3086,6 +3327,10 @@ packages: emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + emojis-list@3.0.0: + resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==} + engines: {node: '>= 4'} + encodeurl@2.0.0: resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} engines: {node: '>= 0.8'} @@ -3257,6 +3502,9 @@ packages: resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} engines: {node: '>=4.0'} + estree-walker@0.6.1: + resolution: {integrity: sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==} + esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} @@ -4699,6 +4947,10 @@ packages: json-stringify-safe@5.0.1: resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} + json5@1.0.2: + resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==} + hasBin: true + json5@2.2.3: resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} engines: {node: '>=6'} @@ -4883,6 +5135,10 @@ packages: resolution: {integrity: sha512-DFEqQ3ihfS9blba08cLfYf1NRAIEm+dDjic073DRDc3/JspI/8wYmtDsHwd3+4hwvdxSK7PGaElfTmm0awWJ4w==} engines: {node: '>=6.11.5'} + loader-utils@1.4.2: + resolution: {integrity: sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==} + engines: {node: '>=4.0.0'} + localforage@1.10.0: resolution: {integrity: sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==} @@ -5035,6 +5291,9 @@ packages: lru-memoizer@2.3.0: resolution: {integrity: sha512-GXn7gyHAMhO13WSKrIiNfztwxodVsP8IoZ3XfrJV4yH2x0/OeTO/FIaAHTY5YekdGgW94njfuKmyyt1E0mR6Ug==} + magic-string@0.25.9: + resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} + mailgun@0.5.0: resolution: {integrity: sha512-g0qrj4RP7l3S6+9Fb7x0nTmRoR+oB1rm68iEuSg3IKJir67b9RE5kfsNyK3ZenVgDCLRCdtaheDiybjkSYeZRA==} @@ -5443,6 +5702,11 @@ packages: resolution: {integrity: sha512-Z+iLaBGVaSjbIzQ4pX6XV41HrooLsQ10ZWPUehGmuantvzWoDVBnmsdUcOIDM1t+yPor5pDhVlDESgOMEGxhHA==} engines: {node: '>=6.0.0'} + nopt@8.1.0: + resolution: {integrity: sha512-ieGu42u/Qsa4TFktmaKEwM6MQH0pOWnaB3htzh0JRtx84+Mebc0cbZYN5bC+6WTZ4+77xrL9Pn5m7CV6VIkV7A==} + engines: {node: ^18.17.0 || >=20.5.0} + hasBin: true + nopt@9.0.0: resolution: {integrity: sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==} engines: {node: ^20.17.0 || >=22.9.0} @@ -6379,6 +6643,10 @@ packages: resolution: {integrity: sha512-QxMPqI6le2u0dCLyiGzgy92kjkkL6zO0XyvHzjdTNH3zM6e5Hz3BwG6+aEyNgiQ5Xz6PwTwgQEj3U50dByPKIA==} engines: {node: '>=0.10.0'} + resolve-from@3.0.0: + resolution: {integrity: sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==} + engines: {node: '>=4'} + resolve-from@5.0.0: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} @@ -6450,6 +6718,9 @@ packages: robots-parser@2.4.0: resolution: {integrity: sha512-oO8f2SI04dJk3pbj2KOMJ4G6QfPAgqcGmrYGmansIcpRewIPT2ljWEt5I+ip6EgiyaLo+RXkkUWw74M25HDkMA==} + rollup-pluginutils@2.8.2: + resolution: {integrity: sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==} + rootpath@0.1.2: resolution: {integrity: sha512-R3wLbuAYejpxQjL/SjXo1Cjv4wcJECnMRT/FlcCfTwCBhaji9rWaRCoVEQ1SPiTJ4kKK+yh+bZLAV7SCafoDDw==} @@ -6771,6 +7042,10 @@ packages: resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==} engines: {node: '>= 12'} + sourcemap-codec@1.4.8: + resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} + deprecated: Please use @jridgewell/sourcemap-codec instead + sparse-bitfield@3.0.3: resolution: {integrity: sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==} @@ -7265,13 +7540,6 @@ packages: ts-invariant@0.4.4: resolution: {integrity: sha512-uEtWkFM/sdZvRNNDL3Ehu4WVpwaulhwQszV8mrtcdeE8nN00BV9mAmQ88RkrBhFgl9gMgvjJLAQcZbnPXI9mlA==} - ts-loader@9.5.7: - resolution: {integrity: sha512-/ZNrKgA3K3PtpMYOC71EeMWIloGw3IYEa5/t1cyz2r5/PyUwTXGzYJvcD3kfUvmhlfpz1rhV8B2O6IVTQ0avsg==} - engines: {node: '>=12.0.0'} - peerDependencies: - typescript: '*' - webpack: ^5.0.0 - tsconfig-paths-webpack-plugin@4.2.0: resolution: {integrity: sha512-zbem3rfRS8BgeNK50Zz5SIQgXzLafiHjOwUAvk/38/o1jHn/V5QAgVUcz884or7WYcPaH3N2CIfUc2u0ul7UcA==} engines: {node: '>=10.13.0'} @@ -8529,6 +8797,22 @@ snapshots: '@bugsnag/safe-json-stringify@6.1.0': {} + '@emnapi/core@1.10.0': + dependencies: + '@emnapi/wasi-threads': 1.2.1 + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@1.10.0': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/wasi-threads@1.2.1': + dependencies: + tslib: 2.8.1 + optional: true + '@fastify/busboy@1.2.1': dependencies: text-decoding: 1.0.0 @@ -9347,10 +9631,55 @@ snapshots: dependencies: lodash: 4.18.1 + '@mapbox/node-pre-gyp@2.0.3(encoding@0.1.13)': + dependencies: + consola: 3.4.2 + detect-libc: 2.1.2 + https-proxy-agent: 7.0.6 + node-fetch: 2.7.0(encoding@0.1.13) + nopt: 8.1.0 + semver: 7.8.0 + tar: 7.5.15 + transitivePeerDependencies: + - encoding + - supports-color + + '@module-federation/error-codes@0.22.0': {} + + '@module-federation/runtime-core@0.22.0': + dependencies: + '@module-federation/error-codes': 0.22.0 + '@module-federation/sdk': 0.22.0 + + '@module-federation/runtime-tools@0.22.0': + dependencies: + '@module-federation/runtime': 0.22.0 + '@module-federation/webpack-bundler-runtime': 0.22.0 + + '@module-federation/runtime@0.22.0': + dependencies: + '@module-federation/error-codes': 0.22.0 + '@module-federation/runtime-core': 0.22.0 + '@module-federation/sdk': 0.22.0 + + '@module-federation/sdk@0.22.0': {} + + '@module-federation/webpack-bundler-runtime@0.22.0': + dependencies: + '@module-federation/runtime': 0.22.0 + '@module-federation/sdk': 0.22.0 + '@mongodb-js/saslprep@1.4.11': dependencies: sparse-bitfield: 3.0.3 + '@napi-rs/wasm-runtime@1.0.7': + dependencies: + '@emnapi/core': 1.10.0 + '@emnapi/runtime': 1.10.0 + '@tybys/wasm-util': 0.10.2 + optional: true + '@nodable/entities@2.1.0': {} '@protobufjs/aspromise@1.1.2': {} @@ -9375,6 +9704,59 @@ snapshots: '@protobufjs/utf8@1.1.1': {} + '@rspack/binding-darwin-arm64@1.7.11': + optional: true + + '@rspack/binding-darwin-x64@1.7.11': + optional: true + + '@rspack/binding-linux-arm64-gnu@1.7.11': + optional: true + + '@rspack/binding-linux-arm64-musl@1.7.11': + optional: true + + '@rspack/binding-linux-x64-gnu@1.7.11': + optional: true + + '@rspack/binding-linux-x64-musl@1.7.11': + optional: true + + '@rspack/binding-wasm32-wasi@1.7.11': + dependencies: + '@napi-rs/wasm-runtime': 1.0.7 + optional: true + + '@rspack/binding-win32-arm64-msvc@1.7.11': + optional: true + + '@rspack/binding-win32-ia32-msvc@1.7.11': + optional: true + + '@rspack/binding-win32-x64-msvc@1.7.11': + optional: true + + '@rspack/binding@1.7.11': + optionalDependencies: + '@rspack/binding-darwin-arm64': 1.7.11 + '@rspack/binding-darwin-x64': 1.7.11 + '@rspack/binding-linux-arm64-gnu': 1.7.11 + '@rspack/binding-linux-arm64-musl': 1.7.11 + '@rspack/binding-linux-x64-gnu': 1.7.11 + '@rspack/binding-linux-x64-musl': 1.7.11 + '@rspack/binding-wasm32-wasi': 1.7.11 + '@rspack/binding-win32-arm64-msvc': 1.7.11 + '@rspack/binding-win32-ia32-msvc': 1.7.11 + '@rspack/binding-win32-x64-msvc': 1.7.11 + + '@rspack/core@1.7.11': + dependencies: + '@module-federation/runtime-tools': 0.22.0 + '@rspack/binding': 1.7.11 + '@rspack/lite-tapable': 1.1.0 + + '@rspack/lite-tapable@1.1.0': {} + '@segment/loosely-validate-event@2.0.0': dependencies: component-type: 1.2.2 @@ -9499,10 +9881,72 @@ snapshots: '@socket.io/component-emitter@3.1.2': {} + '@swc/core-darwin-arm64@1.15.40': + optional: true + + '@swc/core-darwin-x64@1.15.40': + optional: true + + '@swc/core-linux-arm-gnueabihf@1.15.40': + optional: true + + '@swc/core-linux-arm64-gnu@1.15.40': + optional: true + + '@swc/core-linux-arm64-musl@1.15.40': + optional: true + + '@swc/core-linux-ppc64-gnu@1.15.40': + optional: true + + '@swc/core-linux-s390x-gnu@1.15.40': + optional: true + + '@swc/core-linux-x64-gnu@1.15.40': + optional: true + + '@swc/core-linux-x64-musl@1.15.40': + optional: true + + '@swc/core-win32-arm64-msvc@1.15.40': + optional: true + + '@swc/core-win32-ia32-msvc@1.15.40': + optional: true + + '@swc/core-win32-x64-msvc@1.15.40': + optional: true + + '@swc/core@1.15.40': + dependencies: + '@swc/counter': 0.1.3 + '@swc/types': 0.1.26 + optionalDependencies: + '@swc/core-darwin-arm64': 1.15.40 + '@swc/core-darwin-x64': 1.15.40 + '@swc/core-linux-arm-gnueabihf': 1.15.40 + '@swc/core-linux-arm64-gnu': 1.15.40 + '@swc/core-linux-arm64-musl': 1.15.40 + '@swc/core-linux-ppc64-gnu': 1.15.40 + '@swc/core-linux-s390x-gnu': 1.15.40 + '@swc/core-linux-x64-gnu': 1.15.40 + '@swc/core-linux-x64-musl': 1.15.40 + '@swc/core-win32-arm64-msvc': 1.15.40 + '@swc/core-win32-ia32-msvc': 1.15.40 + '@swc/core-win32-x64-msvc': 1.15.40 + + '@swc/counter@0.1.3': {} + '@swc/helpers@0.3.17': dependencies: tslib: 2.8.1 + '@swc/types@0.1.26': + dependencies: + '@swc/counter': 0.1.3 + + '@swc/wasm@1.15.40': {} + '@szmarczak/http-timer@1.1.2': dependencies: defer-to-connect: 1.1.3 @@ -9518,6 +9962,11 @@ snapshots: '@tootallnate/once@2.0.1': optional: true + '@tybys/wasm-util@0.10.2': + dependencies: + tslib: 2.8.1 + optional: true + '@types/accepts@1.3.7': dependencies: '@types/node': 25.9.0 @@ -9740,9 +10189,27 @@ snapshots: transitivePeerDependencies: - supports-color - '@vercel/webpack-asset-relocator-loader@1.7.3': + '@vercel/webpack-asset-relocator-loader@1.10.0(encoding@0.1.13)': dependencies: + '@mapbox/node-pre-gyp': 2.0.3(encoding@0.1.13) + acorn: 8.16.0 + acorn-class-fields: 1.0.0(acorn@8.16.0) + acorn-private-class-elements: 1.0.0(acorn@8.16.0) + acorn-static-class-features: 1.0.0(acorn@8.16.0) + bindings: 1.5.0 + estree-walker: 0.6.1 + glob: 7.2.3 + graceful-fs: 4.2.11 + loader-utils: 1.4.2 + magic-string: 0.25.9 + node-gyp-build: 4.8.4 resolve: 1.22.12 + resolve-from: 3.0.0 + rollup-pluginutils: 2.8.2 + sourcemap-codec: 1.4.8 + transitivePeerDependencies: + - encoding + - supports-color '@vue/compiler-sfc@2.7.16': dependencies: @@ -9843,6 +10310,8 @@ snapshots: abab@2.0.6: {} + abbrev@3.0.1: {} + abbrev@4.0.0: {} abort-controller@3.0.0: @@ -9867,6 +10336,11 @@ snapshots: mime-types: 2.1.35 negotiator: 0.6.3 + acorn-class-fields@1.0.0(acorn@8.16.0): + dependencies: + acorn: 8.16.0 + acorn-private-class-elements: 1.0.0(acorn@8.16.0) + acorn-globals@6.0.0: dependencies: acorn: 7.4.1 @@ -9886,6 +10360,15 @@ snapshots: acorn-walk: 7.2.0 xtend: 4.0.2 + acorn-private-class-elements@1.0.0(acorn@8.16.0): + dependencies: + acorn: 8.16.0 + + acorn-static-class-features@1.0.0(acorn@8.16.0): + dependencies: + acorn: 8.16.0 + acorn-private-class-elements: 1.0.0(acorn@8.16.0) + acorn-walk@7.2.0: {} acorn-walk@8.3.5: @@ -10426,6 +10909,8 @@ snapshots: bcryptjs@2.4.3: {} + big.js@5.2.2: {} + big.js@7.0.1: {} bignumber.js@9.0.0: {} @@ -10437,7 +10922,6 @@ snapshots: bindings@1.5.0: dependencies: file-uri-to-path: 1.0.0 - optional: true bl@1.2.3: dependencies: @@ -11035,6 +11519,8 @@ snapshots: connection-parse@0.0.7: {} + consola@3.4.2: {} + console-browserify@1.2.0: {} consolidate@0.16.0(ejs@3.1.10)(lodash@4.18.1)(pug@3.0.4)(react-dom@17.0.2(react@17.0.2))(react@17.0.2)(swig@1.4.2)(underscore@1.13.8): @@ -11461,6 +11947,8 @@ snapshots: emoji-regex@8.0.0: {} + emojis-list@3.0.0: {} + encodeurl@2.0.0: {} encoding@0.1.13: @@ -11720,6 +12208,8 @@ snapshots: estraverse@5.3.0: {} + estree-walker@0.6.1: {} + esutils@2.0.3: {} etag@1.8.1: {} @@ -11993,8 +12483,7 @@ snapshots: strtok3: 6.3.0 token-types: 4.2.1 - file-uri-to-path@1.0.0: - optional: true + file-uri-to-path@1.0.0: {} filelist@1.0.6: dependencies: @@ -13646,6 +14135,10 @@ snapshots: json-stringify-safe@5.0.1: {} + json5@1.0.2: + dependencies: + minimist: 1.2.8 + json5@2.2.3: {} jsonify@0.0.1: {} @@ -13830,11 +14323,11 @@ snapshots: prelude-ls: 1.1.2 type-check: 0.3.2 - license-webpack-plugin@4.0.2(webpack@5.94.0): + license-webpack-plugin@4.0.2(webpack@5.94.0(@swc/core@1.15.40)): dependencies: webpack-sources: 3.4.1 optionalDependencies: - webpack: 5.94.0 + webpack: 5.94.0(@swc/core@1.15.40) lie@3.1.1: dependencies: @@ -13914,6 +14407,12 @@ snapshots: loader-runner@4.3.2: {} + loader-utils@1.4.2: + dependencies: + big.js: 5.2.2 + emojis-list: 3.0.0 + json5: 1.0.2 + localforage@1.10.0: dependencies: lie: 3.1.1 @@ -14090,6 +14589,10 @@ snapshots: lodash.clonedeep: 4.5.0 lru-cache: 6.0.0 + magic-string@0.25.9: + dependencies: + sourcemap-codec: 1.4.8 + mailgun@0.5.0: {} make-dir@3.1.0: @@ -14537,6 +15040,10 @@ snapshots: nodemailer@6.10.1: {} + nopt@8.1.0: + dependencies: + abbrev: 3.0.1 + nopt@9.0.0: dependencies: abbrev: 4.0.0 @@ -15437,6 +15944,8 @@ snapshots: expand-tilde: 1.2.2 global-modules: 0.2.3 + resolve-from@3.0.0: {} + resolve-from@5.0.0: {} resolve-url@0.2.1: {} @@ -15502,6 +16011,10 @@ snapshots: robots-parser@2.4.0: {} + rollup-pluginutils@2.8.2: + dependencies: + estree-walker: 0.6.1 + rootpath@0.1.2: {} rxjs@7.8.2: @@ -15888,6 +16401,8 @@ snapshots: source-map@0.7.6: {} + sourcemap-codec@1.4.8: {} + sparse-bitfield@3.0.3: dependencies: memory-pager: 1.5.0 @@ -16304,13 +16819,15 @@ snapshots: ansi-escapes: 4.3.2 supports-hyperlinks: 2.3.0 - terser-webpack-plugin@5.6.0(webpack@5.94.0): + terser-webpack-plugin@5.6.0(@swc/core@1.15.40)(webpack@5.94.0(@swc/core@1.15.40)): dependencies: '@jridgewell/trace-mapping': 0.3.31 jest-worker: 27.5.1 schema-utils: 4.3.3 terser: 5.47.1 - webpack: 5.94.0 + webpack: 5.94.0(@swc/core@1.15.40) + optionalDependencies: + '@swc/core': 1.15.40 terser@5.47.1: dependencies: @@ -16473,16 +16990,6 @@ snapshots: dependencies: tslib: 1.14.1 - ts-loader@9.5.7(typescript@5.9.3)(webpack@5.94.0): - dependencies: - chalk: 4.1.2 - enhanced-resolve: 5.21.4 - micromatch: 4.0.8 - semver: 7.8.0 - source-map: 0.7.6 - typescript: 5.9.3 - webpack: 5.94.0 - tsconfig-paths-webpack-plugin@4.2.0: dependencies: chalk: 4.1.2 @@ -16899,7 +17406,7 @@ snapshots: webpack-sources@3.4.1: {} - webpack@5.94.0: + webpack@5.94.0(@swc/core@1.15.40): dependencies: '@types/estree': 1.0.9 '@webassemblyjs/ast': 1.14.1 @@ -16921,7 +17428,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.3.3 - terser-webpack-plugin: 5.6.0(webpack@5.94.0) + terser-webpack-plugin: 5.6.0(@swc/core@1.15.40)(webpack@5.94.0(@swc/core@1.15.40)) watchpack: 2.5.1 webpack-sources: 3.4.1 transitivePeerDependencies: diff --git a/scripts/build.js b/scripts/build.js index 14c02a6ae..77dc7250a 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -32,6 +32,7 @@ async function main() { __dirname + "/../src/index", { filename: "index.js", + externals: ["@rspack/core"], minify, cache, v8cache @@ -43,7 +44,15 @@ async function main() { const { code: relocateLoader, assets: relocateLoaderAssets } = await ncc( __dirname + "/../src/loaders/relocate-loader", - { filename: "relocate-loader.js", minify, cache, v8cache } + { + filename: "relocate-loader.js", + minify, + cache, + v8cache, + // Keep the asset relocator package external to this wrapper loader so the + // runtime dependency remains installed and loaded directly from node_modules. + externals: ["@vercel/webpack-asset-relocator-loader"] + } ); checkUnknownAssets('relocate-loader', Object.keys(relocateLoaderAssets)); diff --git a/src/cli.js b/src/cli.js index 974c12c62..c4d45d63e 100755 --- a/src/cli.js +++ b/src/cli.js @@ -373,7 +373,15 @@ async function runCmd (argv, stdout, stderr) { }); return true; } else { - return ncc.then(handler); + return ncc.then(handler).catch(err => { + stderr.write(err + '\n'); + if (api) { + err.silent = true; + err.exitCode = 1; + throw err; + } + process.exit(1); + }); } break; diff --git a/src/index.js b/src/index.js index 78a9d9db8..b54338309 100644 --- a/src/index.js +++ b/src/index.js @@ -1,13 +1,12 @@ const resolve = require("resolve"); const fs = require("graceful-fs"); const crypto = require("crypto"); -const { join, dirname, extname, resolve: pathResolve } = require("path"); -const webpack = require("webpack"); +const { join, dirname, extname, resolve: pathResolve, posix: pathPosix } = require("path"); +const { builtinModules } = require("module"); +const rspack = require("@rspack/core"); const MemoryFS = require("memory-fs"); const terser = require("terser"); -const tsconfigPaths = require("tsconfig-paths"); const { loadTsconfig } = require("tsconfig-paths/lib/tsconfig-loader"); -const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin"); const shebangRegEx = require('./utils/shebang'); const nccCacheDir = require("./utils/ncc-cache-dir"); const LicenseWebpackPlugin = require('license-webpack-plugin').LicenseWebpackPlugin; @@ -31,6 +30,35 @@ const defaultPermissions = 0o666; const relocateLoader = eval('require(__dirname + "/loaders/relocate-loader.js")'); +const esmAssetBase = "new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\\/\\/\\/\\w:/) ? 1 : 0, -1)"; +const builtinModuleSet = new Set(builtinModules); + +function ensureAssetBaseAssignment(code, assetName, esm, outputAssetBase = '') { + if (code.includes('__webpack_require__.ab')) { + return code; + } + const assetBase = outputAssetBase + ? outputAssetBase.endsWith('/') || outputAssetBase.endsWith('\\') + ? outputAssetBase + : `${outputAssetBase}/` + : ''; + const dirName = pathPosix.dirname(assetName); + const relBaseValue = pathPosix.relative(dirName, '.'); + const relBase = relBaseValue && relBaseValue !== '.' ? `/${relBaseValue}` : ''; + const baseSuffix = `${relBase}/${assetBase}`; + const runtimeBase = esm ? esmAssetBase : '__dirname'; + const injection = `if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = ${runtimeBase} + ${JSON.stringify(baseSuffix)};`; + const exportIndex = code.indexOf('var __webpack_exports__'); + if (exportIndex !== -1) { + return code.slice(0, exportIndex) + injection + code.slice(exportIndex); + } + const runtimeIndex = code.indexOf('__webpack_require__.m'); + if (runtimeIndex !== -1) { + return code.slice(0, runtimeIndex) + injection + code.slice(runtimeIndex); + } + return `${injection}${code}`; +} + module.exports = ncc; function ncc ( entry, @@ -108,11 +136,11 @@ function ncc ( existingAssetNames.push(`${filename}.cache`); existingAssetNames.push(`${filename}.cache${ext}`); } - const resolvePlugins = []; // add TsconfigPathsPlugin to support `paths` resolution in tsconfig // we need to catch here because the plugin will // error if there's no tsconfig in the working directory let fullTsconfig = {}; + let resolveTsConfig; try { const configFileAbsolutePath = walkParentDirs({ base: process.cwd(), @@ -122,44 +150,13 @@ function ncc ( fullTsconfig = loadTsconfig(configFileAbsolutePath) || { compilerOptions: {} }; - - const tsconfigPathsOptions = { silent: true } - if (fullTsconfig.compilerOptions.allowJs) { - tsconfigPathsOptions.extensions = SUPPORTED_EXTENSIONS - } - resolvePlugins.push(new TsconfigPathsPlugin(tsconfigPathsOptions)); - - const tsconfig = tsconfigPaths.loadConfig(); - if (tsconfig.resultType === "success") { - tsconfigMatchPath = tsconfigPaths.createMatchPath(tsconfig.absoluteBaseUrl, tsconfig.paths); - } - } catch (e) {} - - resolvePlugins.push({ - apply(resolver) { - const resolve = resolver.resolve; - resolver.resolve = function (context, path, request, resolveContext, callback) { - const self = this; - resolve.call(self, context, path, request, resolveContext, function (err, innerPath, result) { - if (result) return callback(null, innerPath, result); - if (err && !err.message.startsWith('Can\'t resolve')) - return callback(err); - // Allow .js resolutions to .tsx? from .tsx? - if (request.endsWith('.js') && context.issuer && (context.issuer.endsWith('.ts') || context.issuer.endsWith('.tsx'))) { - return resolve.call(self, context, path, request.slice(0, -3), resolveContext, function (err, innerPath, result) { - if (result) return callback(null, innerPath, result); - if (err && !err.message.startsWith('Can\'t resolve')) - return callback(err); - // make not found errors runtime errors - callback(null, __dirname + '/@@notfound.js?' + (externalMap.get(request) || request), request); - }); - } - // make not found errors runtime errors - callback(null, __dirname + '/@@notfound.js?' + (externalMap.get(request) || request), request); - }); + if (configFileAbsolutePath) { + resolveTsConfig = { + configFile: configFileAbsolutePath, + references: 'auto' }; } - }); + } catch (e) {} const externalMap = (() => { const regexps = []; @@ -216,31 +213,123 @@ function ncc ( compilationStack.push(compilation); relocateLoader.initAssetCache(compilation); }); + compiler.hooks.compilation.tap("ncc", (compilation, { normalModuleFactory }) => { + if (!normalModuleFactory || !normalModuleFactory.hooks || !normalModuleFactory.hooks.beforeResolve) { + return; + } + const resolver = normalModuleFactory.getResolver("normal"); + const isBuiltin = request => { + if (!request) return false; + if (builtinModuleSet.has(request)) return true; + if (request.startsWith('node:')) { + return builtinModuleSet.has(request.slice(5)); + } + return false; + }; + const isNotFoundError = err => { + if (!err || !err.message) return false; + return err.message.includes('NotFound') || + err.message.startsWith("Can't resolve") || + err.message.startsWith("Cannot resolve"); + }; + const resolveRequest = (resolveData, request, done) => { + const issuer = resolveData.contextInfo && resolveData.contextInfo.issuer; + const contextInfo = resolveData.contextInfo || { issuer: '' }; + const context = resolveData.context || (issuer ? dirname(issuer) : process.cwd()); + const resolveContext = { + fileDependencies: new Set(), + contextDependencies: new Set(), + missingDependencies: new Set() + }; + resolver.resolve(contextInfo, context, request, resolveContext, done); + }; + normalModuleFactory.hooks.beforeResolve.tapAsync("ncc", (resolveData, callback) => { + if (!resolveData || !resolveData.request) return callback(); + const request = resolveData.request; + if (request.includes('/@@notfound.js')) return callback(); + if (isBuiltin(request)) return callback(); + if (externalMap.get(request)) return callback(); + + const issuer = resolveData.contextInfo && resolveData.contextInfo.issuer; + const isTsIssuer = issuer && (issuer.endsWith('.ts') || issuer.endsWith('.tsx')); + const [requestPath, requestQuery] = request.split('?', 2); + const hasJsExtension = requestPath.endsWith('.js'); + const tsRequest = hasJsExtension + ? `${requestPath.slice(0, -3)}${requestQuery ? `?${requestQuery}` : ''}` + : null; + + const handleMissing = () => { + resolveData.request = __dirname + '/@@notfound.js?' + (externalMap.get(request) || request); + callback(); + }; + + const handleResolution = (err, result) => { + if (err && !isNotFoundError(err)) { + return callback(err); + } + if (!err && result) { + return callback(); + } + return handleMissing(); + }; + + if (isTsIssuer && hasJsExtension) { + return resolveRequest(resolveData, request, (err, result) => { + if (err && !isNotFoundError(err)) { + return callback(err); + } + if (!err && result) { + return callback(); + } + return resolveRequest(resolveData, tsRequest, (tsErr, tsResult) => { + if (tsErr && !isNotFoundError(tsErr)) { + return callback(tsErr); + } + if (!tsErr && tsResult) { + resolveData.request = tsRequest; + return callback(); + } + return handleMissing(); + }); + }); + } + + return resolveRequest(resolveData, request, handleResolution); + }); + }); compiler.hooks.watchRun.tap("ncc", () => { if (rebuildHandler) rebuildHandler(); }); - compiler.hooks.normalModuleFactory.tap("ncc", NormalModuleFactory => { - function handler(parser) { - parser.hooks.assign.for("require").intercept({ - register: tapInfo => { - if (tapInfo.name !== "CommonJsPlugin") { + if (compiler.hooks.normalModuleFactory) { + compiler.hooks.normalModuleFactory.tap("ncc", NormalModuleFactory => { + if (!NormalModuleFactory.hooks || !NormalModuleFactory.hooks.parser) { + return NormalModuleFactory; + } + function handler(parser) { + if (!parser.hooks || !parser.hooks.assign) { + return; + } + parser.hooks.assign.for("require").intercept({ + register: tapInfo => { + if (tapInfo.name !== "CommonJsPlugin") { + return tapInfo; + } + tapInfo.fn = () => {}; return tapInfo; } - tapInfo.fn = () => {}; - return tapInfo; - } - }); - } - NormalModuleFactory.hooks.parser - .for("javascript/auto") - .tap("ncc", handler); - NormalModuleFactory.hooks.parser - .for("javascript/dynamic") - .tap("ncc", handler); - - return NormalModuleFactory; - }); + }); + } + NormalModuleFactory.hooks.parser + .for("javascript/auto") + .tap("ncc", handler); + NormalModuleFactory.hooks.parser + .for("javascript/dynamic") + .tap("ncc", handler); + + return NormalModuleFactory; + }); + } } } ] @@ -253,28 +342,36 @@ function ncc ( } if (!esm) { - plugins.push(new webpack.DefinePlugin({ + plugins.push(new rspack.DefinePlugin({ 'import.meta.url': 'require("url").pathToFileURL(__filename).href' })); } - const compiler = webpack({ + const cacheEnabled = cache !== false; + const cacheDirectory = typeof cache === 'string' ? cache : nccCacheDir; + const experiments = { + topLevelAwait: true, + outputModule: esm + }; + if (cacheEnabled) { + experiments.cache = { + type: 'persistent', + version: `ncc_${hashOf(entry)}_${nccVersion}`, + snapshot: { + managedPaths: [] + }, + storage: { + type: 'filesystem', + directory: cacheDirectory + } + }; + } + + const compiler = rspack({ entry, - cache: cache === false ? undefined : { - type: "filesystem", - cacheDirectory: typeof cache === 'string' ? cache : nccCacheDir, - name: `ncc_${hashOf(entry)}`, - version: nccVersion - }, - snapshot: { - managedPaths: [], - module: { hash: true } - }, + cache: cacheEnabled, amd: false, - experiments: { - topLevelAwait: true, - outputModule: esm - }, + experiments, optimization: { nodeEnv: false, minimize: false, @@ -298,7 +395,9 @@ function ncc ( path: "/", // Webpack only emits sourcemaps for files ending in .js filename: ext === '.cjs' ? filename + '.js' : filename, - libraryTarget: esm ? 'module' : 'commonjs2', + library: { + type: esm ? 'module' : 'commonjs2' + }, strictModuleExceptionHandling: true, module: esm, devtoolModuleFilenameTemplate: sourceMapBasePrefix + '[resource-path]' @@ -322,13 +421,16 @@ function ncc ( undefined: cjsDeps() }, mainFields, - plugins: resolvePlugins + ...(resolveTsConfig ? { tsConfig: resolveTsConfig } : {}) }, // https://github.com/vercel/ncc/pull/29#pullrequestreview-177152175 node: false, externals ({ context, request, dependencyType }, callback) { const external = externalMap.get(request); - if (external) return callback(null, `${dependencyType === 'esm' && esm ? 'module' : 'node-commonjs'} ${external}`); + if (external) { + const useModuleExternal = esm && (dependencyType ? dependencyType === 'esm' : true); + return callback(null, `${useModuleExternal ? 'module' : 'node-commonjs'} ${external}`); + } return callback(); }, module: { @@ -398,7 +500,13 @@ function ncc ( compiler.close(err => { if (err) return reject(err); if (stats.hasErrors()) { - const errLog = [...stats.compilation.errors].map(err => err.message).join('\n'); + const errLog = [...stats.compilation.errors].map(err => { + const message = err && err.message ? err.message : String(err); + return message + .split('\n') + .filter(line => !line.trim().startsWith('at ')) + .join('\n'); + }).join('\n'); return reject(new Error(errLog)); } resolve(stats); @@ -414,8 +522,56 @@ function ncc ( if (typeof watch === 'object') { if (!watch.watch) throw new Error('Watcher class must be a valid Webpack WatchFileSystem class instance (https://github.com/webpack/webpack/blob/master/lib/node/NodeWatchFileSystem.js)'); + const wrapDependencySet = entries => { + if (!entries || entries._set) return entries; + const set = entries instanceof Set ? entries : new Set(entries); + return { + _set: set, + [Symbol.iterator]: () => set[Symbol.iterator]() + }; + }; + const originalWatch = watch.watch.bind(watch); + watch.watch = (files, dirs, missing, startTime, options, callback, callbackUndelayed) => { + const toSet = entries => { + if (!entries) return new Set(); + if (entries instanceof Set) return new Set(entries); + return new Set(entries); + }; + const adaptedCallback = ( + err, + fileTimeInfoEntries, + contextTimeInfoEntries, + changedOrRemovedFiles, + removedFiles + ) => { + // Support both callback variants: + // - webpack/rspack: (..., changedFiles, removedFiles) + // - legacy/custom watchers: (..., removedFiles) + const hasChangedAndRemoved = removedFiles !== undefined; + const changed = hasChangedAndRemoved ? toSet(changedOrRemovedFiles) : new Set(); + const removed = hasChangedAndRemoved ? toSet(removedFiles) : toSet(changedOrRemovedFiles); + callback(err, fileTimeInfoEntries, contextTimeInfoEntries, changed, removed); + }; + const adaptedCallbackUndelayed = (fileName, changeTime) => { + if (typeof callbackUndelayed === 'function') { + callbackUndelayed(fileName, changeTime); + } + }; + return originalWatch( + wrapDependencySet(files), + wrapDependencySet(dirs), + wrapDependencySet(missing), + startTime, + options, + adaptedCallback, + adaptedCallbackUndelayed + ); + }; compiler.watchFileSystem = watch; watch.inputFileSystem = compiler.inputFileSystem; + if (watch.inputFileSystem && !watch.inputFileSystem.purge) { + watch.inputFileSystem.purge = () => {}; + } } let cachedResult; watcher = compiler.watch({}, async (err, stats) => { @@ -477,6 +633,7 @@ function ncc ( delete assets[`${filename}${ext === '.cjs' ? '.js' : ''}.map`]; let code = mfs.readFileSync(`/${filename}${ext === '.cjs' ? '.js' : ''}`, "utf8"); let map = sourceMap ? JSON.parse(mfs.readFileSync(`/${filename}${ext === '.cjs' ? '.js' : ''}.map`, "utf8")) : null; + code = ensureAssetBaseAssignment(code, filename, esm); if (minify) { let result; diff --git a/src/loaders/relocate-loader.js b/src/loaders/relocate-loader.js index aa1587576..4e137d85b 100644 --- a/src/loaders/relocate-loader.js +++ b/src/loaders/relocate-loader.js @@ -1 +1,62 @@ -module.exports = require('@vercel/webpack-asset-relocator-loader'); +const relocateLoader = require('@vercel/webpack-asset-relocator-loader'); +const fs = require('fs'); + +function ensureMainTemplate(compilation) { + if (!compilation || compilation.mainTemplate) { + return; + } + const requireExtensions = { + taps: [], + tap(_name, fn) { + this.taps.push(fn); + } + }; + compilation.mainTemplate = { + hooks: { + requireExtensions + } + }; +} + +function wrappedRelocateLoader(content, map) { + ensureMainTemplate(this._compilation); + if (this.resourcePath && this.resourcePath.endsWith('.node')) { + try { + const fileBuffer = fs.readFileSync(this.resourcePath); + if (!Buffer.isBuffer(content) || content.length !== fileBuffer.length) { + content = fileBuffer; + } + } catch (e) { + // keep original content on read failure + } + } + if (this.resourcePath && this.resourcePath.endsWith('.json') && content !== undefined && content !== null) { + const callback = this.async(); + const result = typeof content === 'string' ? content : content.toString(); + if (callback) { + callback(null, result, map); + return; + } + return result; + } + if (content === undefined || content === null) { + const callback = this.async(); + if (callback) { + callback(null, content, map); + return; + } + return content; + } + return relocateLoader.call(this, content, map); +} + +wrappedRelocateLoader.raw = relocateLoader.raw; +wrappedRelocateLoader.getAssetMeta = relocateLoader.getAssetMeta; +wrappedRelocateLoader.getSymlinks = relocateLoader.getSymlinks; +wrappedRelocateLoader.initAssetCache = function initAssetCache(compilation, outputAssetBase) { + ensureMainTemplate(compilation); + return relocateLoader.initAssetCache(compilation, outputAssetBase); +}; +wrappedRelocateLoader.initAssetMetaCache = wrappedRelocateLoader.initAssetCache; + +module.exports = wrappedRelocateLoader; diff --git a/src/loaders/ts-loader.js b/src/loaders/ts-loader.js index 71f654808..a14890ecb 100644 --- a/src/loaders/ts-loader.js +++ b/src/loaders/ts-loader.js @@ -1,24 +1,100 @@ -// we re-export so that we generate a unique -// optional bundle for the ts-loader, that -// doesn't get loaded unless the user is -// compiling typescript -const logger = require("ts-loader/dist/logger"); -const makeLogger = logger.makeLogger; -logger.makeLogger = function (loaderOptions, colors) { - const instance = makeLogger(loaderOptions, colors); - const logWarning = instance.logWarning; - instance.logWarning = function (message) { - // Disable TS Loader TypeScript compatibility warning - if (message.indexOf('This version may or may not be compatible with ts-loader') !== -1) - return; - return logWarning(message); +const path = require("path"); + +function getCompiler(options) { + if (options && options.compiler) { + if (typeof options.compiler === "string") { + return require(options.compiler); + } + return options.compiler; + } + return require("typescript"); +} + +function formatDiagnostics(typescript, diagnostics) { + if (!diagnostics || !diagnostics.length) return null; + const formatHost = { + getCanonicalFileName: fileName => fileName, + getCurrentDirectory: () => process.cwd(), + getNewLine: () => typescript.sys.newLine || '\n' }; - return instance; -}; + if (typescript.formatDiagnostics) { + return typescript.formatDiagnostics(diagnostics, formatHost); + } + return typescript.formatDiagnosticsWithColorAndContext + ? typescript.formatDiagnosticsWithColorAndContext(diagnostics, formatHost) + : null; +} + +module.exports = function tsTranspileLoader(input, inputSourceMap) { + if (this.cacheable) this.cacheable(); + const callback = this.async(); + const options = this.getOptions ? this.getOptions() : this.query || {}; + const typescript = getCompiler(options); + const compilerOptions = Object.assign({}, options.compilerOptions); + if (compilerOptions.skipLibCheck === undefined) { + compilerOptions.skipLibCheck = true; + } + if (this.sourceMap && compilerOptions.sourceMap !== false && compilerOptions.inlineSourceMap !== true) { + compilerOptions.sourceMap = true; + } + const fileName = this.resourcePath; + if (!fileName.endsWith('.ts') && !fileName.endsWith('.tsx')) { + callback(null, input, inputSourceMap); + return; + } + const parsedConfig = typescript.convertCompilerOptionsFromJson + ? typescript.convertCompilerOptionsFromJson(compilerOptions, path.dirname(fileName)) + : { options: compilerOptions, errors: [] }; + const parsedOptions = parsedConfig.options || compilerOptions; + const configDiagnosticsText = formatDiagnostics(typescript, parsedConfig.errors || []); + if (configDiagnosticsText) { + this.emitError(new Error(configDiagnosticsText)); + } + let outputText; + let sourceMapText; + let diagnostics = []; -module.exports = require("ts-loader"); + if (options.transpileOnly) { + const result = typescript.transpileModule(input.toString(), { + fileName, + compilerOptions: parsedOptions, + reportDiagnostics: false + }); + outputText = result.outputText; + sourceMapText = result.sourceMapText; + diagnostics = result.diagnostics || []; + } else { + const host = typescript.createCompilerHost(parsedOptions); + host.writeFile = (writtenFileName, content) => { + if (writtenFileName.endsWith('.map')) { + sourceMapText = content; + return; + } + if (writtenFileName.endsWith('.d.ts')) { + return; + } + outputText = content; + }; + const program = typescript.createProgram([fileName], parsedOptions, host); + diagnostics = typescript.getPreEmitDiagnostics(program); + const emitResult = program.emit(); + if (emitResult && emitResult.diagnostics) { + diagnostics = diagnostics.concat(emitResult.diagnostics); + } + } -// ts-loader internally has a require("typescript") that applies -// regardless of "compiler". -// We could remap this too, as soon as ncc supports aliased externals -module.exports.typescript = require("typescript"); + const diagnosticsText = formatDiagnostics(typescript, diagnostics); + if (diagnosticsText) { + this.emitError(new Error(diagnosticsText)); + } + + let map = inputSourceMap; + if (sourceMapText) { + map = JSON.parse(sourceMapText); + map.file = path.basename(fileName); + map.sources = [fileName]; + map.sourcesContent = [input.toString()]; + } + + callback(null, outputText, map); +}; diff --git a/test/unit/browser-mainfield/output.js b/test/unit/browser-mainfield/output.js index 1e2a455dd..49dd62bdf 100644 --- a/test/unit/browser-mainfield/output.js +++ b/test/unit/browser-mainfield/output.js @@ -1,102 +1,89 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ +(() => { +var __webpack_modules__ = ({ +336() { +console.log('browser file!!') -/***/ 267: -/***/ (() => { +}, -console.log('browser file!!') +}); +// The module cache +var __webpack_module_cache__ = {}; + +// The require function +function __nccwpck_require__(moduleId) { + +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { + +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} -/***/ }) +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";// webpack/runtime/compat_get_default_export +(() => { +// getDefaultExport function for compatibility with non-ESM modules +__nccwpck_require__.n = (module) => { + var getter = module && module.__esModule ? + () => (module['default']) : + () => (module); + __nccwpck_require__.d(getter, { a: getter }); + return getter; +}; -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __nccwpck_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __nccwpck_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ +})(); +// webpack/runtime/define_property_getters +(() => { +__nccwpck_require__.d = (exports, definition) => { + for(var key in definition) { + if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { + Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); + } + } +}; +})(); +// webpack/runtime/has_own_property +(() => { +__nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +})(); +// webpack/runtime/make_namespace_object +(() => { +// define __esModule on exports +__nccwpck_require__.r = (exports) => { + if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); + } + Object.defineProperty(exports, '__esModule', { value: true }); +}; +})(); var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. +// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. (() => { "use strict"; __nccwpck_require__.r(__webpack_exports__); -/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(267); -/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(crypto_browser__WEBPACK_IMPORTED_MODULE_0__); +/* import */ var crypto_browser__rspack_import_0 = __nccwpck_require__(336); +/* import */ var crypto_browser__rspack_import_0_default = /*#__PURE__*/__nccwpck_require__.n(crypto_browser__rspack_import_0); console.log('main file') })(); module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/bundle-subasset/output.js b/test/unit/bundle-subasset/output.js index 4a9508f35..015621f26 100644 --- a/test/unit/bundle-subasset/output.js +++ b/test/unit/bundle-subasset/output.js @@ -1,96 +1,85 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({ +(() => { +"use strict"; +var __webpack_modules__ = ({ +928(module) { +module.exports = require("path"); -/***/ 928: -/***/ ((module) => { +}, -module.exports = require("path"); +}); +// The module cache +var __webpack_module_cache__ = {}; + +// The require function +function __nccwpck_require__(moduleId) { + +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { -/***/ }) +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __nccwpck_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __nccwpck_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} + +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";// webpack/runtime/compat_get_default_export +(() => { +// getDefaultExport function for compatibility with non-ESM modules +__nccwpck_require__.n = (module) => { + var getter = module && module.__esModule ? + () => (module['default']) : + () => (module); + __nccwpck_require__.d(getter, { a: getter }); + return getter; +}; + +})(); +// webpack/runtime/define_property_getters +(() => { +__nccwpck_require__.d = (exports, definition) => { + for(var key in definition) { + if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { + Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); + } + } +}; +})(); +// webpack/runtime/has_own_property +(() => { +__nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +})(); +// webpack/runtime/make_namespace_object +(() => { +// define __esModule on exports +__nccwpck_require__.r = (exports) => { + if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); + } + Object.defineProperty(exports, '__esModule', { value: true }); +}; +})(); var __webpack_exports__ = {}; +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. +(() => { __nccwpck_require__.r(__webpack_exports__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(928); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); +/* import */ var path__rspack_import_0 = __nccwpck_require__(928); +/* import */ var path__rspack_import_0_default = /*#__PURE__*/__nccwpck_require__.n(path__rspack_import_0); const file = __nccwpck_require__.ab + "pi-bridge.js"; @@ -101,6 +90,8 @@ const obscureRequire = eval(`function obscureRequire (file) { console.log(obscureRequire(__nccwpck_require__.ab + "pi-bridge.js")); +})(); + module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/bundle-subasset2/output.js b/test/unit/bundle-subasset2/output.js index 24447e239..cc3e8ea53 100644 --- a/test/unit/bundle-subasset2/output.js +++ b/test/unit/bundle-subasset2/output.js @@ -1,72 +1,63 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({}); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __nccwpck_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __nccwpck_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ +(() => { +"use strict"; +var __webpack_modules__ = ({}); +// The module cache +var __webpack_module_cache__ = {}; + +// The require function +function __nccwpck_require__(moduleId) { + +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { + +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} + +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";// webpack/runtime/compat_get_default_export +(() => { +// getDefaultExport function for compatibility with non-ESM modules +__nccwpck_require__.n = (module) => { + var getter = module && module.__esModule ? + () => (module['default']) : + () => (module); + __nccwpck_require__.d(getter, { a: getter }); + return getter; +}; + +})(); +// webpack/runtime/define_property_getters +(() => { +__nccwpck_require__.d = (exports, definition) => { + for(var key in definition) { + if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { + Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); + } + } +}; +})(); +// webpack/runtime/has_own_property +(() => { +__nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +})(); var __webpack_exports__ = {}; ;// CONCATENATED MODULE: external "piscina" @@ -86,5 +77,5 @@ const piscina = new (external_piscina_default())({ })(); module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/custom-emit/output.js b/test/unit/custom-emit/output.js index 74c1dc83a..3b8496ea0 100644 --- a/test/unit/custom-emit/output.js +++ b/test/unit/custom-emit/output.js @@ -1,57 +1,52 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ 896: -/***/ ((module) => { - +(() => { +var __webpack_modules__ = ({ +896(module) { "use strict"; module.exports = require("fs"); -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; +}, + +}); +// The module cache +var __webpack_module_cache__ = {}; + +// The require function +function __nccwpck_require__(moduleId) { + +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { + +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} + +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = {}; +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. +(() => { const { readFileSync } = __nccwpck_require__(896); console.log(readFileSync(__dirname + './test.json')); +})(); + module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/double-nested-builds/output.js b/test/unit/double-nested-builds/output.js index fe183fffc..426b271f4 100644 --- a/test/unit/double-nested-builds/output.js +++ b/test/unit/double-nested-builds/output.js @@ -1,9 +1,6 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ 236: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - +(() => { +var __webpack_modules__ = ({ +33(module, __unused_rspack_exports, __nccwpck_require__) { /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ @@ -99,10 +96,10 @@ /******/ if (typeof __nccwpck_require3_ !== 'undefined') __nccwpck_require3_.ab = __dirname + "/"; /******/ /************************************************************************/ - var __nested_webpack_exports__ = {}; + var __nested_rspack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { - __nccwpck_require3_.r(__nested_webpack_exports__); + __nccwpck_require3_.r(__nested_rspack_exports__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require3_(622); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require3_.n(path__WEBPACK_IMPORTED_MODULE_0__); @@ -117,7 +114,7 @@ })(); - module.exports = __nested_webpack_exports__; + module.exports = __nested_rspack_exports__; /******/ })() ; @@ -174,66 +171,55 @@ module.exports = __nccwpck_require__(928); /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __nested_webpack_exports__ = __nccwpck_require2_(332); -/******/ module.exports = __nested_webpack_exports__; +/******/ var __nested_rspack_exports__ = __nccwpck_require2_(332); +/******/ module.exports = __nested_rspack_exports__; /******/ /******/ })() ; -/***/ }), - -/***/ 928: -/***/ ((module) => { - +}, +928(module) { "use strict"; module.exports = require("path"); -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __nccwpck_require__(236); -/******/ module.exports = __webpack_exports__; -/******/ -/******/ })() -; \ No newline at end of file +}, + +}); +// The module cache +var __webpack_module_cache__ = {}; + +// The require function +function __nccwpck_require__(moduleId) { + +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { + +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} + +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";// startup +// Load entry module and return exports +// This entry module is referenced by other modules so it can't be inlined +var __webpack_exports__ = __nccwpck_require__(33); +module.exports = __webpack_exports__; +})() +; diff --git a/test/unit/exports-nomodule/output.js b/test/unit/exports-nomodule/output.js index 63d25ba84..e21619836 100644 --- a/test/unit/exports-nomodule/output.js +++ b/test/unit/exports-nomodule/output.js @@ -1,13 +1,8 @@ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";var __webpack_exports__ = {}; ;// CONCATENATED MODULE: ./test/unit/exports-nomodule/node.js var x = 'x'; ;// CONCATENATED MODULE: ./test/unit/exports-nomodule/input.js -console.log(x); \ No newline at end of file +console.log(x); diff --git a/test/unit/exports-wildcard/output.js b/test/unit/exports-wildcard/output.js index 36cc6b47e..ed0a72589 100644 --- a/test/unit/exports-wildcard/output.js +++ b/test/unit/exports-wildcard/output.js @@ -1,13 +1,8 @@ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";var __webpack_exports__ = {}; ;// CONCATENATED MODULE: ./test/unit/exports-wildcard/node.js var y = 'y'; ;// CONCATENATED MODULE: ./test/unit/exports-wildcard/input.js -console.log(y); \ No newline at end of file +console.log(y); diff --git a/test/unit/externals/output.js b/test/unit/externals/output.js index 8f4918323..b30e55064 100644 --- a/test/unit/externals/output.js +++ b/test/unit/externals/output.js @@ -1,69 +1,56 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ +(() => { +var __webpack_modules__ = ({ +708(module) { +"use strict"; +module.exports = require("external-replace/replaced/some-file"); -/***/ 708: -/***/ ((module) => { +}, +371(module) { +"use strict"; +module.exports = require("externalmapped"); +}, +689(module) { "use strict"; -module.exports = require("external-replace/replaced/some-file"); +module.exports = require("regexexternal"); -/***/ }), +}, -/***/ 371: -/***/ ((module) => { +}); +// The module cache +var __webpack_module_cache__ = {}; -"use strict"; -module.exports = require("externalmapped"); +// The require function +function __nccwpck_require__(moduleId) { -/***/ }), +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { -/***/ 689: -/***/ ((module) => { +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -"use strict"; -module.exports = require("regexexternal"); +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; -/***/ }) +} -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = {}; +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. +(() => { const external = __nccwpck_require__(371); const regexpExternal = __nccwpck_require__(689); const regexpExternalMatch = __nccwpck_require__(708) @@ -72,6 +59,8 @@ console.log(external); console.log(regexpExternal); console.log(regexpExternalMatch); +})(); + module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/import-meta-cjs/output.js b/test/unit/import-meta-cjs/output.js index fe8a17ac8..51560322d 100644 --- a/test/unit/import-meta-cjs/output.js +++ b/test/unit/import-meta-cjs/output.js @@ -1,11 +1,6 @@ -/******/ (() => { // webpackBootstrap -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; +(() => { +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = {}; console.log(require("url").pathToFileURL(__filename).href); module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/import-meta-esm/output.js b/test/unit/import-meta-esm/output.js index f63d27cdb..1c1f8a23d 100644 --- a/test/unit/import-meta-esm/output.js +++ b/test/unit/import-meta-esm/output.js @@ -1,7 +1,2 @@ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -console.log(import.meta.url); \ No newline at end of file +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";var __webpack_exports__ = {}; +console.log(import.meta.url); diff --git a/test/unit/imports/output.js b/test/unit/imports/output.js index c9cf28632..6e61c9297 100644 --- a/test/unit/imports/output.js +++ b/test/unit/imports/output.js @@ -1,13 +1,8 @@ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/";var __webpack_exports__ = {}; ;// CONCATENATED MODULE: ./test/unit/imports/node.js var x = 'x'; ;// CONCATENATED MODULE: ./test/unit/imports/input.js -console.log(x); \ No newline at end of file +console.log(x); diff --git a/test/unit/minify-err/output.js b/test/unit/minify-err/output.js index ee7b38487..9918d19a2 100644 --- a/test/unit/minify-err/output.js +++ b/test/unit/minify-err/output.js @@ -1 +1 @@ -(()=>{var __webpack_modules__={896:_=>{"use strict";_.exports=require("fs")}};var __webpack_module_cache__={};function __nccwpck_require__(_){var e=__webpack_module_cache__[_];if(e!==undefined){return e.exports}var r=__webpack_module_cache__[_]={exports:{}};var a=true;try{__webpack_modules__[_](r,r.exports,__nccwpck_require__);a=false}finally{if(a)delete __webpack_module_cache__[_]}return r.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};var input_require;if(global.GENTLY)input_require=GENTLY.hijack(eval("require"));console.log(__nccwpck_require__(896));module.exports=__webpack_exports__})(); \ No newline at end of file +(()=>{var __webpack_modules__={896(_){"use strict";_.exports=require("fs")}};var __webpack_module_cache__={};function __nccwpck_require__(_){var e=__webpack_module_cache__[_];if(e!==undefined){if(e.error!==undefined)throw e.error;return e.exports}var r=__webpack_module_cache__[_]={exports:{}};try{__webpack_modules__[_](r,r.exports,__nccwpck_require__)}catch(_){r.error=_;throw _}return r.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{var require;if(global.GENTLY)require=GENTLY.hijack(eval("require"));console.log(__nccwpck_require__(896))})();module.exports=__webpack_exports__})(); diff --git a/test/unit/minify-sourcemap-register/output.js.map b/test/unit/minify-sourcemap-register/output.js.map index 6cf246d98..e75b513a7 100644 --- a/test/unit/minify-sourcemap-register/output.js.map +++ b/test/unit/minify-sourcemap-register/output.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","names":["__webpack_require__","ab","__dirname","foobar","console","log","exports"],"sources":["../webpack/runtime/compat","../test/unit/minify-sourcemap-register/input.js"],"sourcesContent":["\nif (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + \"/\";","const foobar = 'qux'\nconsole.log?.(\"hello\");\nexports.foobar = foobar\n"],"mappings":"MACA,UAAAA,sBAAA,YAAAA,oBAAAC,GAAAC,UAAA,I,uBCDA,MAAAC,EAAA,MACAC,QAAAC,MAAA,SACAC,EAAAH,Q","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"index.js","names":["foobar","console","log","exports"],"sources":["../test/unit/minify-sourcemap-register/input.js"],"sourcesContent":["const foobar = 'qux'\nconsole.log?.(\"hello\");\nexports.foobar = foobar\n"],"mappings":"8GAAA,MAAAA,EAAA,MACAC,QAAAC,MAAA,SACAC,EAAAH,Q","ignoreList":[]} diff --git a/test/unit/minify-v8cache-sourcemap-register/output.js.map b/test/unit/minify-v8cache-sourcemap-register/output.js.map index b9ab9a0c7..553e33b08 100644 --- a/test/unit/minify-v8cache-sourcemap-register/output.js.map +++ b/test/unit/minify-v8cache-sourcemap-register/output.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","names":["__webpack_require__","ab","__dirname","foobar","console","log","exports"],"sources":["../webpack/runtime/compat","../test/unit/minify-v8cache-sourcemap-register/input.js"],"sourcesContent":["\nif (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + \"/\";","const foobar = 'qux'\nconsole.log(\"hello\");\nexports.foobar = foobar\n"],"mappings":"MACA,UAAAA,sBAAA,YAAAA,oBAAAC,GAAAC,UAAA,I,uBCDA,MAAAC,EAAA,MACAC,QAAAC,IAAA,SACAC,EAAAH,Q","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"index.js","names":["foobar","console","log","exports"],"sources":["../test/unit/minify-v8cache-sourcemap-register/input.js"],"sourcesContent":["const foobar = 'qux'\nconsole.log(\"hello\");\nexports.foobar = foobar\n"],"mappings":"8GAAA,MAAAA,EAAA,MACAC,QAAAC,IAAA,SACAC,EAAAH,Q","ignoreList":[]} diff --git a/test/unit/minify/output.js.map b/test/unit/minify/output.js.map index cd15259d6..7509adbf6 100644 --- a/test/unit/minify/output.js.map +++ b/test/unit/minify/output.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","names":["__webpack_require__","ab","__dirname","foobar","console","log","exports"],"sources":["../webpack/runtime/compat","../test/unit/minify/input.js"],"sourcesContent":["\nif (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + \"/\";","const foobar = 'qux'\nconsole.log?.(\"hello\");\nexports.foobar = foobar\n"],"mappings":"MACA,UAAAA,sBAAA,YAAAA,oBAAAC,GAAAC,UAAA,I,uBCDA,MAAAC,EAAA,MACAC,QAAAC,MAAA,SACAC,EAAAH,Q","ignoreList":[]} \ No newline at end of file +{"version":3,"file":"index.js","names":["foobar","console","log","exports"],"sources":["../test/unit/minify/input.js"],"sourcesContent":["const foobar = 'qux'\nconsole.log?.(\"hello\");\nexports.foobar = foobar\n"],"mappings":"8GAAA,MAAAA,EAAA,MACAC,QAAAC,MAAA,SACAC,EAAAH,Q","ignoreList":[]} diff --git a/test/unit/nested-builds/output.js b/test/unit/nested-builds/output.js index 90a680434..249cd9a6f 100644 --- a/test/unit/nested-builds/output.js +++ b/test/unit/nested-builds/output.js @@ -1,9 +1,6 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ 494: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - +(() => { +var __webpack_modules__ = ({ +413(module, __unused_rspack_exports, __nccwpck_require__) { /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ @@ -93,10 +90,10 @@ /******/ if (typeof __nccwpck_require2_ !== 'undefined') __nccwpck_require2_.ab = __dirname + "/"; /******/ /************************************************************************/ - var __nested_webpack_exports__ = {}; + var __nested_rspack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { - __nccwpck_require2_.r(__nested_webpack_exports__); + __nccwpck_require2_.r(__nested_rspack_exports__); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require2_(622); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require2_.n(path__WEBPACK_IMPORTED_MODULE_0__); @@ -111,65 +108,54 @@ })(); - module.exports = __nested_webpack_exports__; + module.exports = __nested_rspack_exports__; /******/ })() ; -/***/ }), - -/***/ 928: -/***/ ((module) => { - +}, +928(module) { "use strict"; module.exports = require("path"); -/***/ }) +}, + +}); +// The module cache +var __webpack_module_cache__ = {}; + +// The require function +function __nccwpck_require__(moduleId) { + +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { + +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __nccwpck_require__(494); -/******/ module.exports = __webpack_exports__; -/******/ -/******/ })() -; \ No newline at end of file +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";// startup +// Load entry module and return exports +// This entry module is referenced by other modules so it can't be inlined +var __webpack_exports__ = __nccwpck_require__(413); +module.exports = __webpack_exports__; +})() +; diff --git a/test/unit/runtime-notfound/output.js b/test/unit/runtime-notfound/output.js index 1f01ae428..711ea9d9d 100644 --- a/test/unit/runtime-notfound/output.js +++ b/test/unit/runtime-notfound/output.js @@ -1,63 +1,55 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ +(() => { +var __webpack_modules__ = ({ +727(module) { +module.exports = eval("require")("./not-foud2.js"); -/***/ 643: -/***/ ((module) => { -module.exports = eval("require")("./not-foud2.js"); +}, +207(module) { +module.exports = eval("require")("./not-found.js"); -/***/ }), +}, -/***/ 875: -/***/ ((module) => { +}); +// The module cache +var __webpack_module_cache__ = {}; -module.exports = eval("require")("./not-found.js"); +// The require function +function __nccwpck_require__(moduleId) { + +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { + +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = {}; +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. +(() => { +__nccwpck_require__(207); +__nccwpck_require__(727); +})(); -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -__nccwpck_require__(875); -__nccwpck_require__(643); module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/shebang/output.js b/test/unit/shebang/output.js index 987c2ff5e..13a501ae0 100644 --- a/test/unit/shebang/output.js +++ b/test/unit/shebang/output.js @@ -1,58 +1,47 @@ #!/bin/user/env node -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ +(() => { +var __webpack_modules__ = ({ +446(module) { +//#!/bin/user/env node +module.exports = 'asdf'; -/***/ 321: -/***/ ((module) => { +}, -module.exports = 'asdf'; +}); +// The module cache +var __webpack_module_cache__ = {}; + +// The require function +function __nccwpck_require__(moduleId) { + +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { + +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __nccwpck_require__(321); -/******/ module.exports = __webpack_exports__; -/******/ -/******/ })() -; \ No newline at end of file +// startup +// Load entry module and return exports +// This entry module is referenced by other modules so it can't be inlined +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = __nccwpck_require__(446); +module.exports = __webpack_exports__; +})() +; diff --git a/test/unit/ts-decl-dir/output.js b/test/unit/ts-decl-dir/output.js index a8fd65120..4265039e0 100644 --- a/test/unit/ts-decl-dir/output.js +++ b/test/unit/ts-decl-dir/output.js @@ -1,43 +1,33 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ // The require scope -/******/ var __nccwpck_require__ = {}; -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; +(() => { +"use strict"; +// The require scope +var __nccwpck_require__ = {}; + +// webpack/runtime/define_property_getters +(() => { +__nccwpck_require__.d = (exports, definition) => { + for(var key in definition) { + if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { + Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); + } + } +}; +})(); +// webpack/runtime/has_own_property +(() => { +__nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +})(); +// webpack/runtime/make_namespace_object +(() => { +// define __esModule on exports +__nccwpck_require__.r = (exports) => { + if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); + } + Object.defineProperty(exports, '__esModule', { value: true }); +}; +})(); +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = {}; // ESM COMPAT FLAG __nccwpck_require__.r(__webpack_exports__); @@ -55,5 +45,5 @@ function test(arg) { module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/ts-decl/output.js b/test/unit/ts-decl/output.js index 413ae8351..ae35abdb3 100644 --- a/test/unit/ts-decl/output.js +++ b/test/unit/ts-decl/output.js @@ -1,43 +1,33 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ // The require scope -/******/ var __nccwpck_require__ = {}; -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; +(() => { +"use strict"; +// The require scope +var __nccwpck_require__ = {}; + +// webpack/runtime/define_property_getters +(() => { +__nccwpck_require__.d = (exports, definition) => { + for(var key in definition) { + if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { + Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); + } + } +}; +})(); +// webpack/runtime/has_own_property +(() => { +__nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +})(); +// webpack/runtime/make_namespace_object +(() => { +// define __esModule on exports +__nccwpck_require__.r = (exports) => { + if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); + } + Object.defineProperty(exports, '__esModule', { value: true }); +}; +})(); +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = {}; // ESM COMPAT FLAG __nccwpck_require__.r(__webpack_exports__); @@ -55,5 +45,5 @@ function test(arg) { module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/ts-exts/output.js b/test/unit/ts-exts/output.js index 2e858b61b..712369b2d 100644 --- a/test/unit/ts-exts/output.js +++ b/test/unit/ts-exts/output.js @@ -1,78 +1,66 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({ - -/***/ 344: -/***/ ((__unused_webpack_module, exports) => { - +(() => { +"use strict"; +var __webpack_modules__ = ({ +165(__unused_rspack_module, exports) { Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = {}; -/***/ }), - -/***/ 300: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - +}, +593(__unused_rspack_module, exports, __nccwpck_require__) { Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; -var dep_dep_js_1 = __nccwpck_require__(344); +var dep_dep_js_1 = __nccwpck_require__(165); Object.defineProperty(exports, "default", ({ enumerable: true, get: function () { return dep_dep_js_1.default; } })); -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it uses a non-standard name for the exports (exports). +}, + +}); +// The module cache +var __webpack_module_cache__ = {}; + +// The require function +function __nccwpck_require__(moduleId) { + +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { + +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} + +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = {}; +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { var exports = __webpack_exports__; Object.defineProperty(exports, "__esModule", ({ value: true })); -const dep_js_1 = __nccwpck_require__(300); +const dep_js_1 = __nccwpck_require__(593); console.log(dep_js_1.default); })(); module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/ts-json-resolve/output.js b/test/unit/ts-json-resolve/output.js index b89ea060a..7e824f404 100644 --- a/test/unit/ts-json-resolve/output.js +++ b/test/unit/ts-json-resolve/output.js @@ -1,10 +1,7 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({ - -/***/ 827: -/***/ ((__unused_webpack_module, exports) => { - +(() => { +"use strict"; +var __webpack_modules__ = ({ +770(__unused_rspack_module, exports) { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.greet = greet; @@ -13,57 +10,51 @@ function greet() { } -/***/ }) +}, + +}); +// The module cache +var __webpack_module_cache__ = {}; + +// The require function +function __nccwpck_require__(moduleId) { + +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { + +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it uses a non-standard name for the exports (exports). +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = {}; +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { var exports = __webpack_exports__; Object.defineProperty(exports, "__esModule", ({ value: true })); -const dep_1 = __nccwpck_require__(827); +const dep_1 = __nccwpck_require__(770); console.log((0, dep_1.greet)()); })(); module.exports = __webpack_exports__; -/******/ })() +})() ; \ No newline at end of file diff --git a/test/unit/ts-mixed-modules/output.js b/test/unit/ts-mixed-modules/output.js index e7a7d8efe..2404d90c4 100644 --- a/test/unit/ts-mixed-modules/output.js +++ b/test/unit/ts-mixed-modules/output.js @@ -1,10 +1,7 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({ - -/***/ 240: -/***/ ((module, exports) => { - +(() => { +"use strict"; +var __webpack_modules__ = ({ +271(module, exports) { Object.defineProperty(exports, "__esModule", ({ value: true })); const config = { @@ -13,52 +10,43 @@ const config = { module.exports = config; -/***/ }) +}, + +}); +// The module cache +var __webpack_module_cache__ = {}; + +// The require function +function __nccwpck_require__(moduleId) { + +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { + +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __nccwpck_require__(240); -/******/ module.exports = __webpack_exports__; -/******/ -/******/ })() -; \ No newline at end of file +// startup +// Load entry module and return exports +// This entry module is referenced by other modules so it can't be inlined +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = __nccwpck_require__(271); +module.exports = __webpack_exports__; +})() +; diff --git a/test/unit/ts-target-es2018/output.js b/test/unit/ts-target-es2018/output.js index 5f2aaf142..28a4cf363 100644 --- a/test/unit/ts-target-es2018/output.js +++ b/test/unit/ts-target-es2018/output.js @@ -1,16 +1,11 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; +(() => { +"use strict"; +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = {}; if (process === null || process === void 0 ? void 0 : process.env.FOO) { console.log('foo'); } module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/tsconfig-paths-allowjs/output.js b/test/unit/tsconfig-paths-allowjs/output.js index bf15ea71c..abd418fb5 100644 --- a/test/unit/tsconfig-paths-allowjs/output.js +++ b/test/unit/tsconfig-paths-allowjs/output.js @@ -1,64 +1,83 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ +(() => { +"use strict"; +var __webpack_modules__ = ({ +739(__unused_rspack_module, __webpack_exports__, __nccwpck_require__) { +__nccwpck_require__.r(__webpack_exports__); +__nccwpck_require__.d(__webpack_exports__, { + "default": () => (__rspack_default_export) +}); +/* export default */ const __rspack_default_export = ({}); + + +}, -/***/ 651: -/***/ ((module) => { +}); +// The module cache +var __webpack_module_cache__ = {}; -module.exports = eval("require")("@module"); +// The require function +function __nccwpck_require__(moduleId) { +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { -/***/ }) +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} + +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";// webpack/runtime/define_property_getters +(() => { +__nccwpck_require__.d = (exports, definition) => { + for(var key in definition) { + if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { + Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); + } + } +}; +})(); +// webpack/runtime/has_own_property +(() => { +__nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +})(); +// webpack/runtime/make_namespace_object +(() => { +// define __esModule on exports +__nccwpck_require__.r = (exports) => { + if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); + } + Object.defineProperty(exports, '__esModule', { value: true }); +}; +})(); var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { -"use strict"; var exports = __webpack_exports__; Object.defineProperty(exports, "__esModule", ({ value: true })); -const _module_1 = __nccwpck_require__(651); +const _module_1 = __nccwpck_require__(739); console.log(_module_1.default); })(); module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/tsconfig-paths-array-extends/output.js b/test/unit/tsconfig-paths-array-extends/output.js index bf15ea71c..5da84574d 100644 --- a/test/unit/tsconfig-paths-array-extends/output.js +++ b/test/unit/tsconfig-paths-array-extends/output.js @@ -1,64 +1,83 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ +(() => { +"use strict"; +var __webpack_modules__ = ({ +618(__unused_rspack_module, __webpack_exports__, __nccwpck_require__) { +__nccwpck_require__.r(__webpack_exports__); +__nccwpck_require__.d(__webpack_exports__, { + "default": () => (__rspack_default_export) +}); +/* export default */ const __rspack_default_export = ({}); + + +}, -/***/ 651: -/***/ ((module) => { +}); +// The module cache +var __webpack_module_cache__ = {}; -module.exports = eval("require")("@module"); +// The require function +function __nccwpck_require__(moduleId) { +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { -/***/ }) +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} + +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";// webpack/runtime/define_property_getters +(() => { +__nccwpck_require__.d = (exports, definition) => { + for(var key in definition) { + if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { + Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); + } + } +}; +})(); +// webpack/runtime/has_own_property +(() => { +__nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +})(); +// webpack/runtime/make_namespace_object +(() => { +// define __esModule on exports +__nccwpck_require__.r = (exports) => { + if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); + } + Object.defineProperty(exports, '__esModule', { value: true }); +}; +})(); var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { -"use strict"; var exports = __webpack_exports__; Object.defineProperty(exports, "__esModule", ({ value: true })); -const _module_1 = __nccwpck_require__(651); +const _module_1 = __nccwpck_require__(618); console.log(_module_1.default); })(); module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/tsconfig-paths-conflicting-external/output.js b/test/unit/tsconfig-paths-conflicting-external/output.js index bf15ea71c..c639aab8f 100644 --- a/test/unit/tsconfig-paths-conflicting-external/output.js +++ b/test/unit/tsconfig-paths-conflicting-external/output.js @@ -1,64 +1,57 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ +(() => { +"use strict"; +var __webpack_modules__ = ({ +343(__unused_rspack_module, exports) { + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports["default"] = {}; + -/***/ 651: -/***/ ((module) => { +}, -module.exports = eval("require")("@module"); +}); +// The module cache +var __webpack_module_cache__ = {}; +// The require function +function __nccwpck_require__(moduleId) { -/***/ }) +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} + +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = {}; +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { -"use strict"; var exports = __webpack_exports__; Object.defineProperty(exports, "__esModule", ({ value: true })); -const _module_1 = __nccwpck_require__(651); +const _module_1 = __nccwpck_require__(343); console.log(_module_1.default); })(); module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +; diff --git a/test/unit/tsconfig-paths/output.js b/test/unit/tsconfig-paths/output.js index bf15ea71c..6ef3c5e28 100644 --- a/test/unit/tsconfig-paths/output.js +++ b/test/unit/tsconfig-paths/output.js @@ -1,64 +1,57 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ +(() => { +"use strict"; +var __webpack_modules__ = ({ +372(__unused_rspack_module, exports) { + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports["default"] = {}; + -/***/ 651: -/***/ ((module) => { +}, -module.exports = eval("require")("@module"); +}); +// The module cache +var __webpack_module_cache__ = {}; +// The require function +function __nccwpck_require__(moduleId) { -/***/ }) +// Check if module is in cache +var cachedModule = __webpack_module_cache__[moduleId]; +if (cachedModule !== undefined) { +if (cachedModule.error !== undefined) throw cachedModule.error; +return cachedModule.exports; +} +// Create a new module (and put it into the cache) +var module = (__webpack_module_cache__[moduleId] = { +exports: {} +}); +// Execute the module function +try { -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. +__webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); + +} catch (e) { +module.error = e; +throw e; +} +// Return the exports of the module +return module.exports; + +} + +// asset-relocator-loader +if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";var __webpack_exports__ = {}; +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { -"use strict"; var exports = __webpack_exports__; Object.defineProperty(exports, "__esModule", ({ value: true })); -const _module_1 = __nccwpck_require__(651); +const _module_1 = __nccwpck_require__(372); console.log(_module_1.default); })(); module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file +})() +;