docs: use swc for building the website (#8941)

This commit is contained in:
Alex Rudenko 2022-09-12 13:59:05 +02:00 committed by GitHub
parent 27ccd0ae5e
commit a4e444d217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 562 additions and 2 deletions

View File

@ -40,6 +40,25 @@ const config = {
defaultLocale: 'en', defaultLocale: 'en',
locales: ['en'], locales: ['en'],
}, },
webpack: {
jsLoader: isServer => {
return {
loader: require.resolve('swc-loader'),
options: {
jsc: {
parser: {
syntax: 'typescript',
tsx: true,
},
target: 'es2017',
},
module: {
type: isServer ? 'commonjs' : 'es6',
},
},
};
},
},
presets: [ presets: [
[ [
'classic', 'classic',

View File

@ -18,7 +18,8 @@
"react-dom": "17.0.2" "react-dom": "17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@docusaurus/module-type-aliases": "2.0.1" "@docusaurus/module-type-aliases": "2.0.1",
"swc-loader": "0.2.3"
} }
}, },
"node_modules/@algolia/autocomplete-core": { "node_modules/@algolia/autocomplete-core": {
@ -3334,6 +3335,326 @@
"url": "https://github.com/sponsors/gregberge" "url": "https://github.com/sponsors/gregberge"
} }
}, },
"node_modules/@swc/core": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.0.tgz",
"integrity": "sha512-0mshAzMvdhL0v3lNMJowzMd8Du0bJf+PUTxhVm4uIb/h8qCDQjFERXj0RGejcDFSL7fJzLI3MzS5WR45KDrrLA==",
"dev": true,
"hasInstallScript": true,
"peer": true,
"bin": {
"swcx": "run_swcx.js"
},
"engines": {
"node": ">=10"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/swc"
},
"optionalDependencies": {
"@swc/core-android-arm-eabi": "1.3.0",
"@swc/core-android-arm64": "1.3.0",
"@swc/core-darwin-arm64": "1.3.0",
"@swc/core-darwin-x64": "1.3.0",
"@swc/core-freebsd-x64": "1.3.0",
"@swc/core-linux-arm-gnueabihf": "1.3.0",
"@swc/core-linux-arm64-gnu": "1.3.0",
"@swc/core-linux-arm64-musl": "1.3.0",
"@swc/core-linux-x64-gnu": "1.3.0",
"@swc/core-linux-x64-musl": "1.3.0",
"@swc/core-win32-arm64-msvc": "1.3.0",
"@swc/core-win32-ia32-msvc": "1.3.0",
"@swc/core-win32-x64-msvc": "1.3.0"
}
},
"node_modules/@swc/core-android-arm-eabi": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.3.0.tgz",
"integrity": "sha512-1F/U0Vh78ZL7OUlCfaRWCtnYnIfsMA8WDtKyf3UT9b3C0L5HajB9TgMH4c0OKhjfP5Q2/M1/Pm00A+96nhKH8A==",
"cpu": [
"arm"
],
"dev": true,
"optional": true,
"os": [
"android"
],
"peer": true,
"dependencies": {
"@swc/wasm": "1.2.122"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-android-arm64": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-android-arm64/-/core-android-arm64-1.3.0.tgz",
"integrity": "sha512-dtryoOvQ27s9euAcLinExuaU+mMr8o0N8CBTH3f+JwKjQsIa9v0jPOjJ9jaWktnAdDy/FztB5iBCqTAwbqRG/w==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"android"
],
"peer": true,
"dependencies": {
"@swc/wasm": "1.2.130"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-android-arm64/node_modules/@swc/wasm": {
"version": "1.2.130",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz",
"integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==",
"dev": true,
"optional": true,
"peer": true
},
"node_modules/@swc/core-darwin-arm64": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.0.tgz",
"integrity": "sha512-WSf29/wneQf5k7mdLKqaSRLDycIZaLATc6m7BKpFi34iCGSvXJfc375OrVG9BS0rReX5LT49XxXp6GQs9oFmVA==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"darwin"
],
"peer": true,
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-darwin-x64": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.0.tgz",
"integrity": "sha512-eDa1EZAnchMtkdZ52bWfseKla370c8BCj/RWAtHJcZMon3WVkWcZlMgZPPiPIxYz8hGtomqs+pkQv34hEVcx0A==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"darwin"
],
"peer": true,
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-freebsd-x64": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-freebsd-x64/-/core-freebsd-x64-1.3.0.tgz",
"integrity": "sha512-ZV9rRmUZqJGCYqnV/3aIJUHELY/MFyABowDN8ijCvN67EjGfoNYx0jpd4hzFWwGC8LohthHNi6hiFfmnvGaKsw==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"freebsd"
],
"peer": true,
"dependencies": {
"@swc/wasm": "1.2.130"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-freebsd-x64/node_modules/@swc/wasm": {
"version": "1.2.130",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz",
"integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==",
"dev": true,
"optional": true,
"peer": true
},
"node_modules/@swc/core-linux-arm-gnueabihf": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.0.tgz",
"integrity": "sha512-3fPWh4SB3lz0ZlQWsHjqZFJK1SIkYqjLpm6mR1jzp/LJx4Oq1baid9CP1eiLd/rijSIgVdUJNMGfiOK9uymEbw==",
"cpu": [
"arm"
],
"dev": true,
"optional": true,
"os": [
"linux"
],
"peer": true,
"dependencies": {
"@swc/wasm": "1.2.130"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-linux-arm-gnueabihf/node_modules/@swc/wasm": {
"version": "1.2.130",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz",
"integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==",
"dev": true,
"optional": true,
"peer": true
},
"node_modules/@swc/core-linux-arm64-gnu": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.0.tgz",
"integrity": "sha512-CavXNYHKaPTMOvRXh1u7ZfMS5hKDXNSWTdeo+1+2M2XLCP0r0+2Iaeg0IZJD8nIwAlwwP8+rskan2Ekq6jaIfw==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-linux-arm64-musl": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.0.tgz",
"integrity": "sha512-/3UiX8jH+OWleJbqYiwJEf4GQKP6xnm/6gyBt7V0GdhM4/ETMvzTFUNRObgpmxYMhXmNGAlxekU8+0QuAvyRJQ==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-linux-x64-gnu": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.0.tgz",
"integrity": "sha512-Ds76Lu7vfE01rgFcf9O1OuNBwQSHBpGwGOKGnwob6T2SCR4DBQz4MD0jLw/tdCZGR8x7NVMteBzQAp3CsUORZw==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-linux-x64-musl": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.0.tgz",
"integrity": "sha512-fgGq/SyX6DsTgJIujBbopaEu17f8u+cyTsJBluc5cF7HxspB4wC72sdq4KGgUoEYObVTgFejnEBZkm8hLOCwYA==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"linux"
],
"peer": true,
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-win32-arm64-msvc": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.0.tgz",
"integrity": "sha512-7B7XggbCmm1oHeNvz5ekWmWmJP/WeGpmGZ10Qca3/zrVm+IRN4ZBT+jpWm+cuuYJh0Llr5UYgTFib3cyOLWkJg==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"win32"
],
"peer": true,
"dependencies": {
"@swc/wasm": "1.2.130"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-win32-arm64-msvc/node_modules/@swc/wasm": {
"version": "1.2.130",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz",
"integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==",
"dev": true,
"optional": true,
"peer": true
},
"node_modules/@swc/core-win32-ia32-msvc": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.0.tgz",
"integrity": "sha512-vDIu5FjoqB3G7awWCyNsUh5UAzTtJPMEwG75Cwx51fxMPxXrVPHP6XpRovIjQ5wiKL5lGqicckieduJkgBvp7Q==",
"cpu": [
"ia32"
],
"dev": true,
"optional": true,
"os": [
"win32"
],
"peer": true,
"dependencies": {
"@swc/wasm": "1.2.130"
},
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/core-win32-ia32-msvc/node_modules/@swc/wasm": {
"version": "1.2.130",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz",
"integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==",
"dev": true,
"optional": true,
"peer": true
},
"node_modules/@swc/core-win32-x64-msvc": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.0.tgz",
"integrity": "sha512-ZEgMvq01Ningz6IOD6ixrpsfA83u+B/1TwnYmWuRl9hMml9lnPwdg3o1P0pwbSO1moKlUhSwc8WVYmI0bXF+gA==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"win32"
],
"peer": true,
"engines": {
"node": ">=10"
}
},
"node_modules/@swc/wasm": {
"version": "1.2.122",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.122.tgz",
"integrity": "sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ==",
"dev": true,
"optional": true,
"peer": true
},
"node_modules/@szmarczak/http-timer": { "node_modules/@szmarczak/http-timer": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz",
@ -11200,6 +11521,16 @@
"url": "https://github.com/fb55/entities?sponsor=1" "url": "https://github.com/fb55/entities?sponsor=1"
} }
}, },
"node_modules/swc-loader": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/swc-loader/-/swc-loader-0.2.3.tgz",
"integrity": "sha512-D1p6XXURfSPleZZA/Lipb3A8pZ17fP4NObZvFCDjK/OKljroqDpPmsBdTraWhVBqUNpcWBQY1imWdoPScRlQ7A==",
"dev": true,
"peerDependencies": {
"@swc/core": "^1.2.147",
"webpack": ">=2"
}
},
"node_modules/tapable": { "node_modules/tapable": {
"version": "2.2.1", "version": "2.2.1",
"resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",
@ -14900,6 +15231,208 @@
"@svgr/plugin-svgo": "^6.3.1" "@svgr/plugin-svgo": "^6.3.1"
} }
}, },
"@swc/core": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.0.tgz",
"integrity": "sha512-0mshAzMvdhL0v3lNMJowzMd8Du0bJf+PUTxhVm4uIb/h8qCDQjFERXj0RGejcDFSL7fJzLI3MzS5WR45KDrrLA==",
"dev": true,
"peer": true,
"requires": {
"@swc/core-android-arm-eabi": "1.3.0",
"@swc/core-android-arm64": "1.3.0",
"@swc/core-darwin-arm64": "1.3.0",
"@swc/core-darwin-x64": "1.3.0",
"@swc/core-freebsd-x64": "1.3.0",
"@swc/core-linux-arm-gnueabihf": "1.3.0",
"@swc/core-linux-arm64-gnu": "1.3.0",
"@swc/core-linux-arm64-musl": "1.3.0",
"@swc/core-linux-x64-gnu": "1.3.0",
"@swc/core-linux-x64-musl": "1.3.0",
"@swc/core-win32-arm64-msvc": "1.3.0",
"@swc/core-win32-ia32-msvc": "1.3.0",
"@swc/core-win32-x64-msvc": "1.3.0"
}
},
"@swc/core-android-arm-eabi": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.3.0.tgz",
"integrity": "sha512-1F/U0Vh78ZL7OUlCfaRWCtnYnIfsMA8WDtKyf3UT9b3C0L5HajB9TgMH4c0OKhjfP5Q2/M1/Pm00A+96nhKH8A==",
"dev": true,
"optional": true,
"peer": true,
"requires": {
"@swc/wasm": "1.2.122"
}
},
"@swc/core-android-arm64": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-android-arm64/-/core-android-arm64-1.3.0.tgz",
"integrity": "sha512-dtryoOvQ27s9euAcLinExuaU+mMr8o0N8CBTH3f+JwKjQsIa9v0jPOjJ9jaWktnAdDy/FztB5iBCqTAwbqRG/w==",
"dev": true,
"optional": true,
"peer": true,
"requires": {
"@swc/wasm": "1.2.130"
},
"dependencies": {
"@swc/wasm": {
"version": "1.2.130",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz",
"integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==",
"dev": true,
"optional": true,
"peer": true
}
}
},
"@swc/core-darwin-arm64": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.0.tgz",
"integrity": "sha512-WSf29/wneQf5k7mdLKqaSRLDycIZaLATc6m7BKpFi34iCGSvXJfc375OrVG9BS0rReX5LT49XxXp6GQs9oFmVA==",
"dev": true,
"optional": true,
"peer": true
},
"@swc/core-darwin-x64": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.0.tgz",
"integrity": "sha512-eDa1EZAnchMtkdZ52bWfseKla370c8BCj/RWAtHJcZMon3WVkWcZlMgZPPiPIxYz8hGtomqs+pkQv34hEVcx0A==",
"dev": true,
"optional": true,
"peer": true
},
"@swc/core-freebsd-x64": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-freebsd-x64/-/core-freebsd-x64-1.3.0.tgz",
"integrity": "sha512-ZV9rRmUZqJGCYqnV/3aIJUHELY/MFyABowDN8ijCvN67EjGfoNYx0jpd4hzFWwGC8LohthHNi6hiFfmnvGaKsw==",
"dev": true,
"optional": true,
"peer": true,
"requires": {
"@swc/wasm": "1.2.130"
},
"dependencies": {
"@swc/wasm": {
"version": "1.2.130",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz",
"integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==",
"dev": true,
"optional": true,
"peer": true
}
}
},
"@swc/core-linux-arm-gnueabihf": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.0.tgz",
"integrity": "sha512-3fPWh4SB3lz0ZlQWsHjqZFJK1SIkYqjLpm6mR1jzp/LJx4Oq1baid9CP1eiLd/rijSIgVdUJNMGfiOK9uymEbw==",
"dev": true,
"optional": true,
"peer": true,
"requires": {
"@swc/wasm": "1.2.130"
},
"dependencies": {
"@swc/wasm": {
"version": "1.2.130",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz",
"integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==",
"dev": true,
"optional": true,
"peer": true
}
}
},
"@swc/core-linux-arm64-gnu": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.0.tgz",
"integrity": "sha512-CavXNYHKaPTMOvRXh1u7ZfMS5hKDXNSWTdeo+1+2M2XLCP0r0+2Iaeg0IZJD8nIwAlwwP8+rskan2Ekq6jaIfw==",
"dev": true,
"optional": true,
"peer": true
},
"@swc/core-linux-arm64-musl": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.0.tgz",
"integrity": "sha512-/3UiX8jH+OWleJbqYiwJEf4GQKP6xnm/6gyBt7V0GdhM4/ETMvzTFUNRObgpmxYMhXmNGAlxekU8+0QuAvyRJQ==",
"dev": true,
"optional": true,
"peer": true
},
"@swc/core-linux-x64-gnu": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.0.tgz",
"integrity": "sha512-Ds76Lu7vfE01rgFcf9O1OuNBwQSHBpGwGOKGnwob6T2SCR4DBQz4MD0jLw/tdCZGR8x7NVMteBzQAp3CsUORZw==",
"dev": true,
"optional": true,
"peer": true
},
"@swc/core-linux-x64-musl": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.0.tgz",
"integrity": "sha512-fgGq/SyX6DsTgJIujBbopaEu17f8u+cyTsJBluc5cF7HxspB4wC72sdq4KGgUoEYObVTgFejnEBZkm8hLOCwYA==",
"dev": true,
"optional": true,
"peer": true
},
"@swc/core-win32-arm64-msvc": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.0.tgz",
"integrity": "sha512-7B7XggbCmm1oHeNvz5ekWmWmJP/WeGpmGZ10Qca3/zrVm+IRN4ZBT+jpWm+cuuYJh0Llr5UYgTFib3cyOLWkJg==",
"dev": true,
"optional": true,
"peer": true,
"requires": {
"@swc/wasm": "1.2.130"
},
"dependencies": {
"@swc/wasm": {
"version": "1.2.130",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz",
"integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==",
"dev": true,
"optional": true,
"peer": true
}
}
},
"@swc/core-win32-ia32-msvc": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.0.tgz",
"integrity": "sha512-vDIu5FjoqB3G7awWCyNsUh5UAzTtJPMEwG75Cwx51fxMPxXrVPHP6XpRovIjQ5wiKL5lGqicckieduJkgBvp7Q==",
"dev": true,
"optional": true,
"peer": true,
"requires": {
"@swc/wasm": "1.2.130"
},
"dependencies": {
"@swc/wasm": {
"version": "1.2.130",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz",
"integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==",
"dev": true,
"optional": true,
"peer": true
}
}
},
"@swc/core-win32-x64-msvc": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.0.tgz",
"integrity": "sha512-ZEgMvq01Ningz6IOD6ixrpsfA83u+B/1TwnYmWuRl9hMml9lnPwdg3o1P0pwbSO1moKlUhSwc8WVYmI0bXF+gA==",
"dev": true,
"optional": true,
"peer": true
},
"@swc/wasm": {
"version": "1.2.122",
"resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.122.tgz",
"integrity": "sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ==",
"dev": true,
"optional": true,
"peer": true
},
"@szmarczak/http-timer": { "@szmarczak/http-timer": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz",
@ -20664,6 +21197,13 @@
} }
} }
}, },
"swc-loader": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/swc-loader/-/swc-loader-0.2.3.tgz",
"integrity": "sha512-D1p6XXURfSPleZZA/Lipb3A8pZ17fP4NObZvFCDjK/OKljroqDpPmsBdTraWhVBqUNpcWBQY1imWdoPScRlQ7A==",
"dev": true,
"requires": {}
},
"tapable": { "tapable": {
"version": "2.2.1", "version": "2.2.1",
"resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",

View File

@ -25,7 +25,8 @@
"react-dom": "17.0.2" "react-dom": "17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@docusaurus/module-type-aliases": "2.0.1" "@docusaurus/module-type-aliases": "2.0.1",
"swc-loader": "0.2.3"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [