Unverified Commit d2f43b71 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Add experimental SWC minify and SWC loader options (#27664)

parent e3e7e084
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
"@fullhuman/postcss-purgecss": "1.3.0", "@fullhuman/postcss-purgecss": "1.3.0",
"@mdx-js/loader": "0.18.0", "@mdx-js/loader": "0.18.0",
"@svgr/webpack": "5.5.0", "@svgr/webpack": "5.5.0",
"@swc/core": "1.2.66", "@swc/core": "1.2.74",
"@testing-library/react": "11.2.5", "@testing-library/react": "11.2.5",
"@types/cheerio": "0.22.16", "@types/cheerio": "0.22.16",
"@types/fs-extra": "8.1.0", "@types/fs-extra": "8.1.0",
......
...@@ -113,7 +113,8 @@ export default ( ...@@ -113,7 +113,8 @@ export default (
presetEnvConfig.targets = { presetEnvConfig.targets = {
// Targets the current process' version of Node. This requires apps be // Targets the current process' version of Node. This requires apps be
// built and deployed on the same version of Node. // built and deployed on the same version of Node.
node: 'current', // This is the same as using "current" but explicit
node: process.versions.node,
} }
} }
......
This diff is collapsed.
...@@ -15,11 +15,11 @@ path-clean = "0.1" ...@@ -15,11 +15,11 @@ path-clean = "0.1"
regex = "1.5" regex = "1.5"
serde = "1" serde = "1"
serde_json = "1" serde_json = "1"
swc = "0.30" swc = "0.33"
swc_atoms = "0.2.6" swc_atoms = "0.2.6"
swc_common = { version = "0.11.1", features = ["tty-emitter", "sourcemap"] } swc_common = { version = "0.11.1", features = ["tty-emitter", "sourcemap"] }
swc_node_base = "0.2.0" swc_node_base = "0.2.0"
swc_ecmascript = { version = "0.48.0", features = ["codegen", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] } swc_ecmascript = { version = "0.50.0", features = ["codegen", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
swc_ecma_preset_env = "0.31.0" swc_ecma_preset_env = "0.31.0"
fxhash = "0.2.1" fxhash = "0.2.1"
retain_mut = "0.1.3" retain_mut = "0.1.3"
......
...@@ -294,8 +294,22 @@ export default async function getBaseWebpackConfig( ...@@ -294,8 +294,22 @@ export default async function getBaseWebpackConfig(
const babelLoader = isWebpack5 const babelLoader = isWebpack5
? require.resolve('./babel/loader/index') ? require.resolve('./babel/loader/index')
: 'next-babel-loader' : 'next-babel-loader'
const useSWCLoader = config.experimental.swcLoader && isWebpack5
if (useSWCLoader && babelConfigFile) {
Log.warn(
`experimental.swcLoader enabled. The custom Babel configuration will not be used.`
)
}
const defaultLoaders = { const defaultLoaders = {
babel: { babel: useSWCLoader
? {
loader: 'next-swc-loader',
options: {
isServer,
},
}
: {
loader: babelLoader, loader: babelLoader,
options: { options: {
configFile: babelConfigFile, configFile: babelConfigFile,
...@@ -953,6 +967,7 @@ export default async function getBaseWebpackConfig( ...@@ -953,6 +967,7 @@ export default async function getBaseWebpackConfig(
new TerserPlugin({ new TerserPlugin({
cacheDir: path.join(distDir, 'cache', 'next-minifier'), cacheDir: path.join(distDir, 'cache', 'next-minifier'),
parallel: config.experimental.cpus, parallel: config.experimental.cpus,
swcMinify: config.experimental.swcMinify,
terserOptions, terserOptions,
}).apply(compiler) }).apply(compiler)
}, },
...@@ -1041,6 +1056,7 @@ export default async function getBaseWebpackConfig( ...@@ -1041,6 +1056,7 @@ export default async function getBaseWebpackConfig(
'emit-file-loader', 'emit-file-loader',
'error-loader', 'error-loader',
'next-babel-loader', 'next-babel-loader',
'next-swc-loader',
'next-client-pages-loader', 'next-client-pages-loader',
'next-image-loader', 'next-image-loader',
'next-serverless-loader', 'next-serverless-loader',
......
...@@ -27,65 +27,78 @@ DEALINGS IN THE SOFTWARE. ...@@ -27,65 +27,78 @@ DEALINGS IN THE SOFTWARE.
*/ */
import { getOptions } from 'next/dist/compiled/loader-utils' import { getOptions } from 'next/dist/compiled/loader-utils'
const { transform, transformSync } = require('../../swc/core') import { transform } from '../../swc'
import { trace } from '../../../telemetry/trace'
function getSWCOptions({ isTypeScript, isServer, development }) {
const jsc = {
parser: {
syntax: isTypeScript ? 'typescript' : 'ecmascript',
dynamicImport: true,
[isTypeScript ? 'tsx' : 'jsx']: true,
},
transform: {
react: {
runtime: 'automatic',
pragma: 'React.createElement',
pragmaFrag: 'React.Fragment',
throwIfNamespace: true,
development: development,
useBuiltins: true,
},
},
}
if (isServer) {
return {
jsc,
env: {
targets: {
// Targets the current version of Node.js
node: process.versions.node,
},
},
}
} else {
// Matches default @babel/preset-env behavior
jsc.target = 'es5'
return { jsc }
}
}
function makeLoader() { async function loaderTransform(parentTrace, source, inputSourceMap) {
return function (source, inputSourceMap) {
// Make the loader async // Make the loader async
const callback = this.async()
const filename = this.resourcePath const filename = this.resourcePath
const isTypeScript = filename.endsWith('.ts') || filename.endsWith('.tsx')
let loaderOptions = getOptions(this) || {} let loaderOptions = getOptions(this) || {}
// Standardize on 'sourceMaps' as the key passed through to Webpack, so that const swcOptions = getSWCOptions({
// users may safely use either one alongside our default use of isTypeScript,
// 'this.sourceMap' below without getting error about conflicting aliases. isServer: loaderOptions.isServer,
if ( development: this.mode === 'development',
Object.prototype.hasOwnProperty.call(loaderOptions, 'sourceMap') &&
!Object.prototype.hasOwnProperty.call(loaderOptions, 'sourceMaps')
) {
loaderOptions = Object.assign({}, loaderOptions, {
sourceMaps: loaderOptions.sourceMap,
}) })
delete loaderOptions.sourceMap
}
if (inputSourceMap) {
inputSourceMap = JSON.stringify(inputSourceMap)
}
const programmaticOptions = Object.assign({}, loaderOptions, { const programmaticOptions = {
...swcOptions,
filename, filename,
inputSourceMap: inputSourceMap || undefined, inputSourceMap: inputSourceMap ? JSON.stringify(inputSourceMap) : undefined,
// Set the default sourcemap behavior based on Webpack's mapping flag, // Set the default sourcemap behavior based on Webpack's mapping flag,
// but allow users to override if they want. sourceMaps: this.sourceMap,
sourceMaps:
loaderOptions.sourceMaps === undefined
? this.sourceMap
: loaderOptions.sourceMaps,
// Ensure that Webpack will get a full absolute path in the sourcemap // Ensure that Webpack will get a full absolute path in the sourcemap
// so that it can properly map the module back to its internal cached // so that it can properly map the module back to its internal cached
// modules. // modules.
sourceFileName: filename, sourceFileName: filename,
}) }
if (!programmaticOptions.inputSourceMap) { if (!programmaticOptions.inputSourceMap) {
delete programmaticOptions.inputSourceMap delete programmaticOptions.inputSourceMap
} }
const sync = programmaticOptions.sync
const parseMap = programmaticOptions.parseMap
// Remove loader related options
delete programmaticOptions.sync
delete programmaticOptions.parseMap
delete programmaticOptions.customize
delete programmaticOptions.cacheDirectory
delete programmaticOptions.cacheIdentifier
delete programmaticOptions.cacheCompression
delete programmaticOptions.metadataSubscribers
// auto detect development mode // auto detect development mode
if ( if (
this.mode && this.mode &&
...@@ -101,43 +114,26 @@ function makeLoader() { ...@@ -101,43 +114,26 @@ function makeLoader() {
this.mode === 'development' this.mode === 'development'
} }
if (programmaticOptions.sourceMaps === 'inline') { const swcSpan = parentTrace.traceChild('next-swc-transform')
// Babel has this weird behavior where if you set "inline", we return swcSpan.traceAsyncFn(() =>
// inline the sourcemap, and set 'result.map = null'. This results transform(source, programmaticOptions).then((output) => {
// in bad behavior from Babel since the maps get put into the code, return [output.code, output.map ? JSON.parse(output.map) : undefined]
// which Webpack does not expect, and because the map we return to })
// Webpack is null, which is also bad. To avoid that, we override the
// behavior here so "inline" just behaves like 'true'.
programmaticOptions.sourceMaps = true
}
try {
if (sync) {
const output = transformSync(source, programmaticOptions)
callback(
null,
output.code,
parseMap ? JSON.parse(output.map) : output.map
) )
} else { }
transform(source, programmaticOptions).then(
(output) => { export default function swcLoader(inputSource, inputSourceMap) {
callback( const loaderSpan = trace('next-swc-loader', this.currentTraceSpan?.id)
null, const callback = this.async()
output.code, loaderSpan
parseMap ? JSON.parse(output.map) : output.map .traceAsyncFn(() =>
loaderTransform.call(this, loaderSpan, inputSource, inputSourceMap)
) )
}, .then(
([transformedSource, outputSourceMap]) =>
callback?.(null, transformedSource, outputSourceMap || inputSourceMap),
(err) => { (err) => {
callback(err) callback?.(err)
} }
) )
}
} catch (e) {
callback(e)
}
}
} }
module.exports = makeLoader()
module.exports.custom = makeLoader
...@@ -104,9 +104,10 @@ class Webpack4Cache { ...@@ -104,9 +104,10 @@ class Webpack4Cache {
export class TerserPlugin { export class TerserPlugin {
constructor(options = {}) { constructor(options = {}) {
const { cacheDir, terserOptions = {}, parallel } = options const { cacheDir, terserOptions = {}, parallel, swcMinify } = options
this.options = { this.options = {
swcMinify,
cacheDir, cacheDir,
parallel, parallel,
terserOptions, terserOptions,
...@@ -188,6 +189,27 @@ export class TerserPlugin { ...@@ -188,6 +189,27 @@ export class TerserPlugin {
// eslint-disable-next-line consistent-return // eslint-disable-next-line consistent-return
const getWorker = () => { const getWorker = () => {
if (this.options.swcMinify) {
return {
minify: async (options) => {
const result = await require('../../../../swc').transform(
options.input,
{
minify: true,
jsc: {
minify: {
compress: true,
mangle: true,
},
},
}
)
return result
},
}
}
if (initializedWorker) { if (initializedWorker) {
return initializedWorker return initializedWorker
} }
...@@ -204,7 +226,12 @@ export class TerserPlugin { ...@@ -204,7 +226,12 @@ export class TerserPlugin {
} }
const limit = pLimit( const limit = pLimit(
numberOfAssetsForMinify > 0 ? numberOfWorkers : Infinity // When using the SWC minifier the limit will be handled by Node.js
this.options.swcMinify
? Infinity
: numberOfAssetsForMinify > 0
? numberOfWorkers
: Infinity
) )
const scheduledTasks = [] const scheduledTasks = []
...@@ -214,7 +241,7 @@ export class TerserPlugin { ...@@ -214,7 +241,7 @@ export class TerserPlugin {
const { name, inputSource, info, eTag } = asset const { name, inputSource, info, eTag } = asset
let { output } = asset let { output } = asset
const minifySpan = terserSpan.traceChild('minify-fs') const minifySpan = terserSpan.traceChild('minify-js')
minifySpan.setAttribute('name', name) minifySpan.setAttribute('name', name)
minifySpan.setAttribute( minifySpan.setAttribute(
'cache', 'cache',
......
...@@ -85,6 +85,8 @@ export type NextConfig = { [key: string]: any } & { ...@@ -85,6 +85,8 @@ export type NextConfig = { [key: string]: any } & {
strictPostcssConfiguration?: boolean strictPostcssConfiguration?: boolean
} }
experimental?: { experimental?: {
swcMinify?: boolean
swcLoader?: boolean
cpus?: number cpus?: number
plugins?: boolean plugins?: boolean
profiling?: boolean profiling?: boolean
...@@ -157,6 +159,8 @@ export const defaultConfig: NextConfig = { ...@@ -157,6 +159,8 @@ export const defaultConfig: NextConfig = {
keepAlive: true, keepAlive: true,
}, },
experimental: { experimental: {
swcLoader: false,
swcMinify: false,
cpus: Math.max( cpus: Math.max(
1, 1,
(Number(process.env.CIRCLE_NODE_TOTAL) || (Number(process.env.CIRCLE_NODE_TOTAL) ||
......
...@@ -3849,85 +3849,85 @@ ...@@ -3849,85 +3849,85 @@
"@svgr/plugin-svgo" "^5.5.0" "@svgr/plugin-svgo" "^5.5.0"
loader-utils "^2.0.0" loader-utils "^2.0.0"
"@swc/core-android-arm64@^1.2.66": "@swc/core-android-arm64@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-android-arm64/-/core-android-arm64-1.2.66.tgz#ce45abb2220684739616443d2c455ba0b8713e1d" resolved "https://registry.yarnpkg.com/@swc/core-android-arm64/-/core-android-arm64-1.2.74.tgz#7e12fde1ba557dad803bc27b5b6cef04957e7ba3"
integrity sha512-qSc+wvqeHh+rjyJDBZSXQI2VCJ9xHPZpZk9fehvgcYmsPHkcjtUt6lwj6SIFdkklasw4p1Jq7vMQzAdegUa9VQ== integrity sha512-mKqs5QmY4uEUopk98rM4dH0g7iWRH172Z8Bd752/eR9R5Yzut/dEGZCN5lnDfCLc1hecJz3DFsU/71jG4T+1WQ==
"@swc/core-darwin-arm64@^1.2.66": "@swc/core-darwin-arm64@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.66.tgz#804d10c5ccaa359a48eb02047c91f029bdc0618a" resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.74.tgz#6b6c6f1a9c12f5c4647f324985aa8f52a6967113"
integrity sha512-ij0vh+HJJRggN6zwY/WQ1BaQHit+w/VbdHjM+nzYtzASpSiN3+jvb6XeON5bKLxnDGPvuKsk4Bgg1k5ib9oTxQ== integrity sha512-i8bRE/oQAyPmB3Vwk1GfydFbCnsidfXQgyFK0qDsQN7tNPZg5esqQVeAzDWhGWdMK6VAGcMDY3/RinR8KkKCmg==
"@swc/core-darwin-x64@^1.2.66": "@swc/core-darwin-x64@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.2.66.tgz#47dbe1b8b5ceb145267a419ebaedc9e260ded5fc" resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.2.74.tgz#588393d8d5d7b52985cbdeaa93ccdf2f8233a9d4"
integrity sha512-TvxV/ntjdwsUdvhuvIG53kZUtrMcBGAwqYNveuk24fjytZqtV0UC6TfHw+iUd+DeAm+4wLIgyZIatlyxqmm3TQ== integrity sha512-3vcKNlkCa40FosdltLytRHHT4KFnzg5Ws2k40nYT2g55UBk4SHou6eeq9gP0FYkerTNPWhS5c8KyAHCnBXOhoA==
"@swc/core-freebsd-x64@^1.2.66": "@swc/core-freebsd-x64@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.66.tgz#609b68a9612e92cb7d86ff6f98da5a46103c204f" resolved "https://registry.yarnpkg.com/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.74.tgz#353ec8a9d60031fe39f3ba1ecc0488842226e79b"
integrity sha512-5D/MBbnOU4NCpG9UyYJCkqOKH0+hPX9T/x8GqQbPy9BBBYQLey42ISyvx33HgD2XTVy8cnLr3vFrhLnWmoFy1A== integrity sha512-YFIuIYbs3TUWQFBjs8KCff/nj4yBm1WIrq2w1ZfHOSbTMRnz3slksEviz6QzUhDK6fO8HUwudhxO5INRuWWxfQ==
"@swc/core-linux-arm-gnueabihf@^1.2.66": "@swc/core-linux-arm-gnueabihf@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.66.tgz#df4242f842f096ac4cc581099ae86db517070e91" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.74.tgz#16486b80a30401604bf1524918447ff1bb7baf8a"
integrity sha512-aWPdEGAkDUJ326BzK5f26hq6Ra2MMzwe2saJW6xjkefbJn0CFtpGX/koFmqpL6ewRlkOQlKcjvN+3ndjtmQEhw== integrity sha512-iwLMOGwfH6r1U5Kyu76I2E+6BVKYWFA+l1z6Ja+9rk9qHBeQws6p5vP3HcezQQeKBbmNx6kcF9+RRT6v8yUz7w==
"@swc/core-linux-arm64-gnu@^1.2.66": "@swc/core-linux-arm64-gnu@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.66.tgz#3b62f0f9d1af1e549a98480609a85c39bc797941" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.74.tgz#192b805894ca6c09aa6e5dbd1c8caabbaf9fff7b"
integrity sha512-Jc5ePO2zsvFgFp5myesOTcRxOb/SVwJvDDDGrilyE+5Ou9iACfYRwFk/2E9P6FK3t5KnZbRMPLJVIoPQ0mm10A== integrity sha512-2ndc5Ei88Ifxc9joDtANIhlUSpq5C3Qbc+g/gUUGF2lPCiMk6kPxnpwvDKpAowi7dSeIW94+/9O8l58D8cHRVg==
"@swc/core-linux-arm64-musl@^1.2.66": "@swc/core-linux-arm64-musl@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.66.tgz#272e2ad543308936f46de07a349931844700470e" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.74.tgz#c9ec655f6c8f77fc600f078ce1b169baacb76c05"
integrity sha512-S/3jriGPYipACxGdgo2tEjr9J3ZRk2K8nsyQQRwsDofr1P5PTN9coGWpSX+/YdbJa1bYo0CCLpdaeJIDiP/bng== integrity sha512-xKNg87bdmmXwyjspiDOdFvGNcuHJ/lL5ouWTriICJ0W8lzuTNs8E9rpk/aPXdPvOhdxT4ACf8x+c1+eHZPsJPA==
"@swc/core-linux-x64-gnu@^1.2.66": "@swc/core-linux-x64-gnu@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.66.tgz#79825533b43f3938985a1846b4bbd22b19f3b92a" resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.74.tgz#f1dd963c7017f4fc4d95413b6b3f656a981b7621"
integrity sha512-nk+saTGX4LoVl1m5rIaDJZ/zdr7lqxtQ2ab/cAk158Bpix1W+YaWTM14YojVurE0h8U6OmNYBQd1gB9wm+eTHQ== integrity sha512-1q+9WWykTj4Mg5p22O7klr2kx67LL1TSmVJKtCVUNBHNeqlSGTCHA9lGh8ETGIW/iWuvXHTnYMlV9RhPWMZVHQ==
"@swc/core-linux-x64-musl@^1.2.66": "@swc/core-linux-x64-musl@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.66.tgz#32f89bc35befaca577e2009fe18b37a1e596d6db" resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.74.tgz#abe7e5280879f9ea290a6eecced4da8cf65ee0de"
integrity sha512-LkGwggHPa4v4dn/61AbqWELxTqkLRXSZeFT7TN3fqsJ7fZn5U0G/TvTIODFEw1hz6B4d4OQpvx8NZ9woIrbgFQ== integrity sha512-r/ZnFGn/VwOpboW6dKolStxArBFM0fb1xk+og6KZJtKZE9sE+Y5CAOvcvAxNzic+K2FX47ZSWHIFoHg5yoTkuQ==
"@swc/core-win32-arm64-msvc@^1.2.66": "@swc/core-win32-arm64-msvc@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.66.tgz#829a5b97a3f3283ddff72534488dbdcc0c5246ce" resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.74.tgz#8354673065c951955dc3af958cc938f297c57c96"
integrity sha512-KYHcBKAIfBC0Sv8QXi2p0xJpY4P1LaVbxUey+m9aQJG+yAq/MPq5emO+leZ34veJHQgw876VTsVTqPcqrMyGTw== integrity sha512-u1ww9SaY4sMqogXZorlHpaursJnvgTi86lwJN1E+kKo4MFANcB354FvBUNg+QIRwN7itNvoP+lxHHP9NF87gdg==
"@swc/core-win32-ia32-msvc@^1.2.66": "@swc/core-win32-ia32-msvc@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.66.tgz#ccacda98ec99337075e94e3d1c48df86381ecb7b" resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.74.tgz#3f5aadc10381409c79106b24030da5d2066ad061"
integrity sha512-+QbC1W245rLOmP6YXJAiizfC28MLol+0w+TFf+n42cQMecjfwZpdmhLCwaJNOfT3sq5F8mY77+rk3KngUaOvfw== integrity sha512-yftd+MMxJUCmH8DRZ7ZeRE4bTD7+jYFgf2epswF4gdyotB4clvCcL2BDxEN56sMJzrO0+SkTKYEkfFmPQtVUBQ==
"@swc/core-win32-x64-msvc@^1.2.66": "@swc/core-win32-x64-msvc@^1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.66.tgz#71d7e02f929a7dbbe670e8c374d65253b7dd79a9" resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.74.tgz#def33e667ed707f9071f03b10a255f15871262bd"
integrity sha512-xnuLSpmgUJ/9KI4O7dIKAhoiWPRjDd0175Fqeltj8o87FQQkskc+c6BS5Lp7XnroWIf/UE6os8sRxt5LbcfSOA== integrity sha512-zRBBPNLj+hJHNzQ3JZ3YJjSHmVgcVg4wKV5pChr8PO6dMPrYX5RpuOCLwVIUHvCdQ6TmTc/AdGJDP/VpMQfkdA==
"@swc/core@1.2.66": "@swc/core@1.2.74":
version "1.2.66" version "1.2.74"
resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.2.66.tgz#f82409ffadba4a4bc3333b0fd230cbd970a1657e" resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.2.74.tgz#66348ddfae8c15ba5eaeb0a509fb30a0e354c0b1"
integrity sha512-zwQlgXvpBkDwIXlVBp9VRYm8NoEmFQSpIiDzFrrvTeYKXPOIjDDMDFiFz5k1UEZejR4nCHo1MUyCXaRoykRDqg== integrity sha512-ICIXnLUYutYiK6wWb2DXNPZyKgTLHY+BxGbCZs45WwOBjsxden/bznIilPN4lEkNgjzYCZbwi9asuVzH+Ar9BA==
dependencies: dependencies:
"@node-rs/helper" "^1.0.0" "@node-rs/helper" "^1.0.0"
optionalDependencies: optionalDependencies:
"@swc/core-android-arm64" "^1.2.66" "@swc/core-android-arm64" "^1.2.74"
"@swc/core-darwin-arm64" "^1.2.66" "@swc/core-darwin-arm64" "^1.2.74"
"@swc/core-darwin-x64" "^1.2.66" "@swc/core-darwin-x64" "^1.2.74"
"@swc/core-freebsd-x64" "^1.2.66" "@swc/core-freebsd-x64" "^1.2.74"
"@swc/core-linux-arm-gnueabihf" "^1.2.66" "@swc/core-linux-arm-gnueabihf" "^1.2.74"
"@swc/core-linux-arm64-gnu" "^1.2.66" "@swc/core-linux-arm64-gnu" "^1.2.74"
"@swc/core-linux-arm64-musl" "^1.2.66" "@swc/core-linux-arm64-musl" "^1.2.74"
"@swc/core-linux-x64-gnu" "^1.2.66" "@swc/core-linux-x64-gnu" "^1.2.74"
"@swc/core-linux-x64-musl" "^1.2.66" "@swc/core-linux-x64-musl" "^1.2.74"
"@swc/core-win32-arm64-msvc" "^1.2.66" "@swc/core-win32-arm64-msvc" "^1.2.74"
"@swc/core-win32-ia32-msvc" "^1.2.66" "@swc/core-win32-ia32-msvc" "^1.2.74"
"@swc/core-win32-x64-msvc" "^1.2.66" "@swc/core-win32-x64-msvc" "^1.2.74"
"@szmarczak/http-timer@^1.1.2": "@szmarczak/http-timer@^1.1.2":
version "1.1.2" version "1.1.2"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment