Unverified Commit 7e370134 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Use import() to load next.config.js (#29935)

Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
Co-authored-by: 's avatarSteven <steven@ceriously.com>
parent 00c68f38
...@@ -4,7 +4,7 @@ module.exports = { ...@@ -4,7 +4,7 @@ module.exports = {
verbose: true, verbose: true,
rootDir: 'test', rootDir: 'test',
modulePaths: ['<rootDir>/lib'], modulePaths: ['<rootDir>/lib'],
transformIgnorePatterns: ['/node_modules/', '/next[/\\\\]dist/'], transformIgnorePatterns: ['/node_modules/', '/next[/\\\\]dist/', '/.next/'],
transform: { transform: {
'.+\\.(t|j)sx?$': [ '.+\\.(t|j)sx?$': [
// this matches our SWC options used in https://github.com/vercel/next.js/blob/canary/packages/next/taskfile-swc.js // this matches our SWC options used in https://github.com/vercel/next.js/blob/canary/packages/next/taskfile-swc.js
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
"@mdx-js/loader": "0.18.0", "@mdx-js/loader": "0.18.0",
"@svgr/webpack": "5.5.0", "@svgr/webpack": "5.5.0",
"@swc/cli": "0.1.49", "@swc/cli": "0.1.49",
"@swc/core": "1.2.88", "@swc/core": "1.2.97",
"@swc/jest": "0.2.3", "@swc/jest": "0.2.3",
"@testing-library/react": "11.2.5", "@testing-library/react": "11.2.5",
"@types/cheerio": "0.22.16", "@types/cheerio": "0.22.16",
......
...@@ -16,12 +16,13 @@ import { NON_STANDARD_NODE_ENV } from '../lib/constants' ...@@ -16,12 +16,13 @@ import { NON_STANDARD_NODE_ENV } from '../lib/constants'
const defaultCommand = 'dev' const defaultCommand = 'dev'
export type cliCommand = (argv?: string[]) => void export type cliCommand = (argv?: string[]) => void
const commands: { [command: string]: () => Promise<cliCommand> } = { const commands: { [command: string]: () => Promise<cliCommand> } = {
build: () => import('../cli/next-build').then((i) => i.nextBuild), build: () => Promise.resolve(require('../cli/next-build').nextBuild),
start: () => import('../cli/next-start').then((i) => i.nextStart), start: () => Promise.resolve(require('../cli/next-start').nextStart),
export: () => import('../cli/next-export').then((i) => i.nextExport), export: () => Promise.resolve(require('../cli/next-export').nextExport),
dev: () => import('../cli/next-dev').then((i) => i.nextDev), dev: () => Promise.resolve(require('../cli/next-dev').nextDev),
lint: () => import('../cli/next-lint').then((i) => i.nextLint), lint: () => Promise.resolve(require('../cli/next-lint').nextLint),
telemetry: () => import('../cli/next-telemetry').then((i) => i.nextTelemetry), telemetry: () =>
Promise.resolve(require('../cli/next-telemetry').nextTelemetry),
} }
const args = arg( const args = arg(
...@@ -108,13 +109,16 @@ commands[command]() ...@@ -108,13 +109,16 @@ commands[command]()
}) })
if (command === 'dev') { if (command === 'dev') {
const { CONFIG_FILE } = require('../shared/lib/constants') const { CONFIG_FILES } = require('../shared/lib/constants')
const { watchFile } = require('fs') const { watchFile } = require('fs')
watchFile(`${process.cwd()}/${CONFIG_FILE}`, (cur: any, prev: any) => {
if (cur.size > 0 || prev.size > 0) { for (const CONFIG_FILE of CONFIG_FILES) {
console.log( watchFile(`${process.cwd()}/${CONFIG_FILE}`, (cur: any, prev: any) => {
`\n> Found a change in ${CONFIG_FILE}. Restart the server to see the changes in effect.` if (cur.size > 0 || prev.size > 0) {
) console.log(
} `\n> Found a change in ${CONFIG_FILE}. Restart the server to see the changes in effect.`
}) )
}
})
}
} }
...@@ -170,7 +170,7 @@ export default async function build( ...@@ -170,7 +170,7 @@ export default async function build(
const hasPublicDir = await fileExists(publicDir) const hasPublicDir = await fileExists(publicDir)
telemetry.record( telemetry.record(
eventCliSession(PHASE_PRODUCTION_BUILD, dir, { eventCliSession(dir, config, {
webpackVersion: 5, webpackVersion: 5,
cliCommand: 'build', cliCommand: 'build',
isSrcDir: path.relative(dir, pagesDir!).startsWith('src'), isSrcDir: path.relative(dir, pagesDir!).startsWith('src'),
......
...@@ -393,7 +393,9 @@ export default async function getBaseWebpackConfig( ...@@ -393,7 +393,9 @@ export default async function getBaseWebpackConfig(
Log.info(`Using tsconfig file: ${config.typescript.tsconfigPath}`) Log.info(`Using tsconfig file: ${config.typescript.tsconfigPath}`)
} }
const ts = (await import(typeScriptPath!)) as typeof import('typescript') const ts = (await Promise.resolve(
require(typeScriptPath!)
)) as typeof import('typescript')
const tsConfig = await getTypeScriptConfiguration(ts, tsConfigPath, true) const tsConfig = await getTypeScriptConfiguration(ts, tsConfigPath, true)
jsConfig = { compilerOptions: tsConfig.options } jsConfig = { compilerOptions: tsConfig.options }
} }
......
...@@ -58,7 +58,9 @@ const nextDev: cliCommand = (argv) => { ...@@ -58,7 +58,9 @@ const nextDev: cliCommand = (argv) => {
} }
async function preflight() { async function preflight() {
const { getPackageVersion } = await import('../lib/get-package-version') const { getPackageVersion } = await Promise.resolve(
require('../lib/get-package-version')
)
const [sassVersion, nodeSassVersion] = await Promise.all([ const [sassVersion, nodeSassVersion] = await Promise.all([
getPackageVersion({ cwd: dir, name: 'sass' }), getPackageVersion({ cwd: dir, name: 'sass' }),
getPackageVersion({ cwd: dir, name: 'node-sass' }), getPackageVersion({ cwd: dir, name: 'node-sass' }),
......
...@@ -20,7 +20,6 @@ import { ...@@ -20,7 +20,6 @@ import {
BUILD_ID_FILE, BUILD_ID_FILE,
CLIENT_PUBLIC_FILES_PATH, CLIENT_PUBLIC_FILES_PATH,
CLIENT_STATIC_FILES_PATH, CLIENT_STATIC_FILES_PATH,
CONFIG_FILE,
EXPORT_DETAIL, EXPORT_DETAIL,
EXPORT_MARKER, EXPORT_MARKER,
PAGES_MANIFEST, PAGES_MANIFEST,
...@@ -169,7 +168,7 @@ export default async function exportApp( ...@@ -169,7 +168,7 @@ export default async function exportApp(
if (telemetry) { if (telemetry) {
telemetry.record( telemetry.record(
eventCliSession(PHASE_EXPORT, distDir, { eventCliSession(distDir, nextConfig, {
webpackVersion: null, webpackVersion: null,
cliCommand: 'export', cliCommand: 'export',
isSrcDir: null, isSrcDir: null,
...@@ -317,7 +316,7 @@ export default async function exportApp( ...@@ -317,7 +316,7 @@ export default async function exportApp(
if (typeof nextConfig.exportPathMap !== 'function') { if (typeof nextConfig.exportPathMap !== 'function') {
if (!options.silent) { if (!options.silent) {
Log.info( Log.info(
`No "exportPathMap" found in "${CONFIG_FILE}". Generating map from "./pages"` `No "exportPathMap" found in "${nextConfig.configFile}". Generating map from "./pages"`
) )
} }
nextConfig.exportPathMap = async (defaultMap: ExportPathMap) => { nextConfig.exportPathMap = async (defaultMap: ExportPathMap) => {
......
...@@ -40,7 +40,9 @@ async function cliPrompt() { ...@@ -40,7 +40,9 @@ async function cliPrompt() {
) )
try { try {
const cliSelect = (await import('next/dist/compiled/cli-select')).default const cliSelect = (
await Promise.resolve(require('next/dist/compiled/cli-select'))
).default
const { value } = await cliSelect({ const { value } = await cliSelect({
values: ESLINT_PROMPT_VALUES, values: ESLINT_PROMPT_VALUES,
valueRenderer: ( valueRenderer: (
......
...@@ -49,8 +49,8 @@ export async function verifyTypeScriptSetup( ...@@ -49,8 +49,8 @@ export async function verifyTypeScriptSetup(
} }
// Load TypeScript after we're sure it exists: // Load TypeScript after we're sure it exists:
const ts = (await import( const ts = (await Promise.resolve(
deps.resolved.get('typescript')! require(deps.resolved.get('typescript')!)
)) as typeof import('typescript') )) as typeof import('typescript')
if (semver.lt(ts.version, '4.3.2')) { if (semver.lt(ts.version, '4.3.2')) {
......
...@@ -9,6 +9,8 @@ import { ...@@ -9,6 +9,8 @@ import {
export type NextConfigComplete = Required<NextConfig> & { export type NextConfigComplete = Required<NextConfig> & {
images: ImageConfigComplete images: ImageConfigComplete
typescript: Required<TypeScriptConfig> typescript: Required<TypeScriptConfig>
configOrigin?: string
configFile?: string
} }
export interface I18NConfig { export interface I18NConfig {
......
import chalk from 'chalk' import chalk from 'chalk'
import findUp from 'next/dist/compiled/find-up' import findUp from 'next/dist/compiled/find-up'
import { basename, extname } from 'path' import { basename, extname, relative } from 'path'
import { Agent as HttpAgent } from 'http' import { Agent as HttpAgent } from 'http'
import { Agent as HttpsAgent } from 'https' import { Agent as HttpsAgent } from 'https'
import * as Log from '../build/output/log' import * as Log from '../build/output/log'
import { CONFIG_FILE, PHASE_DEVELOPMENT_SERVER } from '../shared/lib/constants' import { CONFIG_FILES, PHASE_DEVELOPMENT_SERVER } from '../shared/lib/constants'
import { execOnce } from '../shared/lib/utils' import { execOnce } from '../shared/lib/utils'
import { import {
defaultConfig, defaultConfig,
...@@ -523,14 +523,14 @@ export default async function loadConfig( ...@@ -523,14 +523,14 @@ export default async function loadConfig(
}) as NextConfigComplete }) as NextConfigComplete
} }
const path = await findUp(CONFIG_FILE, { cwd: dir }) const path = await findUp(CONFIG_FILES, { cwd: dir })
// If config file was found // If config file was found
if (path?.length) { if (path?.length) {
let userConfigModule: any let userConfigModule: any
try { try {
userConfigModule = require(path) userConfigModule = await import(path)
} catch (err) { } catch (err) {
console.error( console.error(
chalk.red('Error:') + chalk.red('Error:') +
...@@ -571,12 +571,12 @@ export default async function loadConfig( ...@@ -571,12 +571,12 @@ export default async function loadConfig(
} }
return assignDefaults({ return assignDefaults({
configOrigin: CONFIG_FILE, configOrigin: relative(dir, path),
configFile: path, configFile: path,
...userConfig, ...userConfig,
}) as NextConfigComplete }) as NextConfigComplete
} else { } else {
const configBaseName = basename(CONFIG_FILE, extname(CONFIG_FILE)) const configBaseName = basename(CONFIG_FILES[0], extname(CONFIG_FILES[0]))
const nonJsPath = findUp.sync( const nonJsPath = findUp.sync(
[ [
`${configBaseName}.jsx`, `${configBaseName}.jsx`,
...@@ -590,7 +590,7 @@ export default async function loadConfig( ...@@ -590,7 +590,7 @@ export default async function loadConfig(
throw new Error( throw new Error(
`Configuring Next.js via '${basename( `Configuring Next.js via '${basename(
nonJsPath nonJsPath
)}' is not supported. Please replace the file with 'next.config.js'.` )}' is not supported. Please replace the file with 'next.config.js' or 'next.config.mjs'.`
) )
} }
} }
......
...@@ -334,7 +334,7 @@ export default class DevServer extends Server { ...@@ -334,7 +334,7 @@ export default class DevServer extends Server {
const telemetry = new Telemetry({ distDir: this.distDir }) const telemetry = new Telemetry({ distDir: this.distDir })
telemetry.record( telemetry.record(
eventCliSession(PHASE_DEVELOPMENT_SERVER, this.distDir, { eventCliSession(this.distDir, this.nextConfig, {
webpackVersion: 5, webpackVersion: 5,
cliCommand: 'dev', cliCommand: 'dev',
isSrcDir: relative(this.dir, this.pagesDir!).startsWith('src'), isSrcDir: relative(this.dir, this.pagesDir!).startsWith('src'),
......
...@@ -22,7 +22,7 @@ let ServerImpl: typeof Server ...@@ -22,7 +22,7 @@ let ServerImpl: typeof Server
const getServerImpl = async () => { const getServerImpl = async () => {
if (ServerImpl === undefined) if (ServerImpl === undefined)
ServerImpl = (await import('./next-server')).default ServerImpl = (await Promise.resolve(require('./next-server'))).default
return ServerImpl return ServerImpl
} }
......
...@@ -1277,7 +1277,7 @@ function renderToStream( ...@@ -1277,7 +1277,7 @@ function renderToStream(
}) })
let resolved = false let resolved = false
const doResolve = () => { const doResolve = (startWriting: any) => {
if (!resolved) { if (!resolved) {
resolved = true resolved = true
resolve((res, next) => { resolve((res, next) => {
...@@ -1314,11 +1314,11 @@ function renderToStream( ...@@ -1314,11 +1314,11 @@ function renderToStream(
}, },
onCompleteShell() { onCompleteShell() {
if (!generateStaticHTML) { if (!generateStaticHTML) {
doResolve() doResolve(startWriting)
} }
}, },
onCompleteAll() { onCompleteAll() {
doResolve() doResolve(startWriting)
}, },
} }
) )
......
...@@ -15,7 +15,7 @@ export const REACT_LOADABLE_MANIFEST = 'react-loadable-manifest.json' ...@@ -15,7 +15,7 @@ export const REACT_LOADABLE_MANIFEST = 'react-loadable-manifest.json'
export const FONT_MANIFEST = 'font-manifest.json' export const FONT_MANIFEST = 'font-manifest.json'
export const SERVER_DIRECTORY = 'server' export const SERVER_DIRECTORY = 'server'
export const SERVERLESS_DIRECTORY = 'serverless' export const SERVERLESS_DIRECTORY = 'serverless'
export const CONFIG_FILE = 'next.config.js' export const CONFIG_FILES = ['next.config.js', 'next.config.mjs']
export const BUILD_ID_FILE = 'BUILD_ID' export const BUILD_ID_FILE = 'BUILD_ID'
export const BLOCKED_PAGES = ['/_document', '/_app', '/_error'] export const BLOCKED_PAGES = ['/_document', '/_app', '/_error']
export const CLIENT_PUBLIC_FILES_PATH = 'public' export const CLIENT_PUBLIC_FILES_PATH = 'public'
......
...@@ -20,6 +20,7 @@ module.exports = function (task) { ...@@ -20,6 +20,7 @@ module.exports = function (task) {
const swcClientOptions = { const swcClientOptions = {
module: { module: {
type: 'commonjs', type: 'commonjs',
ignoreDynamic: true,
}, },
jsc: { jsc: {
loose: true, loose: true,
...@@ -45,6 +46,7 @@ module.exports = function (task) { ...@@ -45,6 +46,7 @@ module.exports = function (task) {
const swcServerOptions = { const swcServerOptions = {
module: { module: {
type: 'commonjs', type: 'commonjs',
ignoreDynamic: true,
}, },
env: { env: {
targets: { targets: {
......
import findUp from 'next/dist/compiled/find-up'
import path from 'path' import path from 'path'
import { import { NextConfigComplete } from '../../server/config-shared'
CONFIG_FILE,
PHASE_DEVELOPMENT_SERVER,
PHASE_EXPORT,
PHASE_PRODUCTION_BUILD,
} from '../../shared/lib/constants'
import { normalizeConfig } from '../../server/config'
const EVENT_VERSION = 'NEXT_CLI_SESSION_STARTED' const EVENT_VERSION = 'NEXT_CLI_SESSION_STARTED'
...@@ -53,40 +46,9 @@ function hasBabelConfig(dir: string): boolean { ...@@ -53,40 +46,9 @@ function hasBabelConfig(dir: string): boolean {
} }
} }
type NextConfigurationPhase =
| typeof PHASE_DEVELOPMENT_SERVER
| typeof PHASE_PRODUCTION_BUILD
| typeof PHASE_EXPORT
function getNextConfig(
phase: NextConfigurationPhase,
dir: string
): { [key: string]: any } | null {
try {
const configurationPath = findUp.sync(CONFIG_FILE, {
cwd: dir,
})
if (configurationPath) {
// This should've already been loaded, and thus should be cached / won't
// be re-evaluated.
const configurationModule = require(configurationPath)
// Re-normalize the configuration.
return normalizeConfig(
phase,
configurationModule.default || configurationModule
)
}
} catch {
// ignored
}
return null
}
export function eventCliSession( export function eventCliSession(
phase: NextConfigurationPhase,
dir: string, dir: string,
nextConfig: NextConfigComplete,
event: Omit< event: Omit<
EventCliSessionStarted, EventCliSessionStarted,
| 'nextVersion' | 'nextVersion'
...@@ -113,9 +75,7 @@ export function eventCliSession( ...@@ -113,9 +75,7 @@ export function eventCliSession(
return [] return []
} }
const userConfiguration = getNextConfig(phase, dir) const { images, i18n } = nextConfig || {}
const { images, i18n } = userConfiguration || {}
const payload: EventCliSessionStarted = { const payload: EventCliSessionStarted = {
nextVersion: process.env.__NEXT_VERSION, nextVersion: process.env.__NEXT_VERSION,
...@@ -124,21 +84,21 @@ export function eventCliSession( ...@@ -124,21 +84,21 @@ export function eventCliSession(
isSrcDir: event.isSrcDir, isSrcDir: event.isSrcDir,
hasNowJson: event.hasNowJson, hasNowJson: event.hasNowJson,
isCustomServer: event.isCustomServer, isCustomServer: event.isCustomServer,
hasNextConfig: !!userConfiguration, hasNextConfig: nextConfig.configOrigin !== 'default',
buildTarget: userConfiguration?.target ?? 'default', buildTarget: nextConfig.target === 'server' ? 'default' : nextConfig.target,
hasWebpackConfig: typeof userConfiguration?.webpack === 'function', hasWebpackConfig: typeof nextConfig?.webpack === 'function',
hasBabelConfig: hasBabelConfig(dir), hasBabelConfig: hasBabelConfig(dir),
imageEnabled: !!images, imageEnabled: !!images,
basePathEnabled: !!userConfiguration?.basePath, basePathEnabled: !!nextConfig?.basePath,
i18nEnabled: !!i18n, i18nEnabled: !!i18n,
locales: i18n?.locales ? i18n.locales.join(',') : null, locales: i18n?.locales ? i18n.locales.join(',') : null,
localeDomainsCount: i18n?.domains ? i18n.domains.length : null, localeDomainsCount: i18n?.domains ? i18n.domains.length : null,
localeDetectionEnabled: !i18n ? null : i18n.localeDetection !== false, localeDetectionEnabled: !i18n ? null : i18n.localeDetection !== false,
imageDomainsCount: images?.domains ? images.domains.length : null, imageDomainsCount: images?.domains ? images.domains.length : null,
imageSizes: images?.sizes ? images.sizes.join(',') : null, imageSizes: images?.imageSizes ? images.imageSizes.join(',') : null,
imageLoader: images?.loader, imageLoader: images?.loader,
trailingSlashEnabled: !!userConfiguration?.trailingSlash, trailingSlashEnabled: !!nextConfig?.trailingSlash,
reactStrictMode: !!userConfiguration?.reactStrictMode, reactStrictMode: !!nextConfig?.reactStrictMode,
webpackVersion: event.webpackVersion || null, webpackVersion: event.webpackVersion || null,
} }
return [{ eventName: EVENT_VERSION, payload }] return [{ eventName: EVENT_VERSION, payload }]
......
!node_modules
\ No newline at end of file
import css from './hello-webpack-css.css'
import sass from './hello-webpack-sass.scss'
import framework from 'css-framework/framework.css'
export default () => (
<div
className={`hello-world ${css.helloWorld} ${sass.helloWorldSass} ${framework.frameworkClass}`}
>
Hello World
</div>
)
$color: yellow;
.helloWorldSass {
color: $color;
}
export default {
onDemandEntries: {
// Make sure entries are not getting disposed.
maxInactiveAge: 1000 * 60 * 60,
},
poweredByHeader: false,
cssModules: true,
serverRuntimeConfig: {
mySecret: 'secret',
},
publicRuntimeConfig: {
staticFolder: '/static',
},
env: {
customVar: 'hello',
},
webpack(config, { dev, buildId, webpack }) {
if (dev) {
if (config.bail !== false) {
throw new Error('Wrong bail value for development!')
}
} else {
if (config.bail !== true) {
throw new Error('Wrong bail value for production!')
}
}
config.plugins.push(
new webpack.DefinePlugin({
'process.env.CONFIG_BUILD_ID': JSON.stringify(buildId),
})
)
return config
},
}
{
"name": "module-only-package",
"description": "I'm a hipster package that only ships a module entrypoint.",
"module": "./modern.js"
}
export default () => {
return <p id="buildId">{process.env.CONFIG_BUILD_ID}</p>
}
import messageInAPackage from 'module-only-package'
export default () => <p id="messageInAPackage">{messageInAPackage}</p>
import getConfig from 'next/config'
const { serverRuntimeConfig, publicRuntimeConfig } = getConfig()
export default () => (
<div>
<p id="server-only">{serverRuntimeConfig.mySecret}</p>
<p id="server-and-client">{publicRuntimeConfig.staticFolder}</p>
<p id="env">{process.env.customVar}</p>
</div>
)
/* eslint-env jest */
import cheerio from 'cheerio'
import { findPort, killApp, launchApp, renderViaHTTP } from 'next-test-utils'
import webdriver from 'next-webdriver'
import fetch from 'node-fetch'
import { join } from 'path'
const context = {}
describe('Configuration', () => {
beforeAll(async () => {
context.output = ''
const handleOutput = (msg) => {
context.output += msg
}
context.appPort = await findPort()
context.server = await launchApp(join(__dirname, '../'), context.appPort, {
env: {
NODE_OPTIONS: '--inspect',
},
onStdout: handleOutput,
onStderr: handleOutput,
})
// pre-build all pages at the start
await Promise.all([
renderViaHTTP(context.appPort, '/next-config'),
renderViaHTTP(context.appPort, '/build-id'),
renderViaHTTP(context.appPort, '/module-only-component'),
])
})
afterAll(() => {
killApp(context.server)
})
async function get$(path, query) {
const html = await renderViaHTTP(context.appPort, path, query)
return cheerio.load(html)
}
it('should disable X-Powered-By header support', async () => {
const url = `http://localhost:${context.appPort}/`
const header = (await fetch(url)).headers.get('X-Powered-By')
expect(header).not.toBe('Next.js')
})
test('renders server config on the server only', async () => {
const $ = await get$('/next-config')
expect($('#server-only').text()).toBe('secret')
})
test('renders public config on the server only', async () => {
const $ = await get$('/next-config')
expect($('#server-and-client').text()).toBe('/static')
})
test('renders the build id in development mode', async () => {
const $ = await get$('/build-id')
expect($('#buildId').text()).toBe('development')
})
test('correctly imports a package that defines `module` but no `main` in package.json', async () => {
const $ = await get$('/module-only-content')
expect($('#messageInAPackage').text()).toBe('OK')
})
it('should have config available on the client', async () => {
const browser = await webdriver(context.appPort, '/next-config')
const serverText = await browser.elementByCss('#server-only').text()
const serverClientText = await browser
.elementByCss('#server-and-client')
.text()
const envValue = await browser.elementByCss('#env').text()
expect(serverText).toBe('')
expect(serverClientText).toBe('/static')
expect(envValue).toBe('hello')
await browser.close()
})
})
module.exports = phase => { module.exports = phase => {
return { return {
images: { images: {
sizes: [64, 128, 256, 512, 1024], imageSizes: [64, 128, 256, 512, 1024],
domains: ['example.com'], domains: ['example.com'],
}, },
i18n: { i18n: {
......
...@@ -4149,85 +4149,79 @@ ...@@ -4149,85 +4149,79 @@
slash "3.0.0" slash "3.0.0"
source-map "^0.7.3" source-map "^0.7.3"
"@swc/core-android-arm64@^1.2.88": "@swc/core-android-arm64@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-android-arm64/-/core-android-arm64-1.2.88.tgz#ecd527a7e07285501f3d004ced8743d2e9092409" resolved "https://registry.yarnpkg.com/@swc/core-android-arm64/-/core-android-arm64-1.2.97.tgz#889f2fcef1c4c8e3491d1620aea2cb712a6647c9"
integrity sha512-XuQIPCRVMHgdVKkIUj5ZQps0VhgopreZgq6dYpTOIf5bHtxvaIMOWFQUkJs1+YacjCskFMUo7t876VCEqZFOhQ== integrity sha512-SBZLuGH8nGHPkahGk93BSkI7JAZqJUF/Ko6vYWfgn/qGYdHWEACMs8CCS5qR/DCli/6NeHf5EBE4/XfnApTslw==
"@swc/core-darwin-arm64@^1.2.88": "@swc/core-darwin-arm64@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.88.tgz#c0f89591f16c6dace26a7e58d7934d69aadffe65" resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.97.tgz#0204c8473f0d150b465e0d36587dd30e894aeef7"
integrity sha512-tzzNfGrMk7W6P3HuROHL4AJ4KzJMJJCb3/Ghi8l1ldzNCAfdTWRvbP1hv4aaOt5Lejzx40Gyt4tieHLRPUGNEQ== integrity sha512-rKGFo241PPCQN/sRPz3+9OvdfIrs8DKZrTK+bx2kQPQ8DmPBoo/iOSGESmUltFV6PQOgMEr2Qni78hvX8Fi5oQ==
"@swc/core-darwin-x64@^1.2.88": "@swc/core-darwin-x64@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.2.88.tgz#ce2cf970fc748f32a0a8200cfd82ca314686c1ac" resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.2.97.tgz#496cc45a517bfb7fc4e8332a0544eaaa08589af4"
integrity sha512-illK43lA2Y36NL1cZfutYz/Iu2cWoJt2hveu7uJpy9xdkyjHG4qP+blt8lrNMRlveekFsU46tN566RSEDJ3snw== integrity sha512-+ow1lXq9yaRStwgR+1XMj67S1KLsp+aMT9pVM5YplYjbZ17eG6BugpTVur14rmR/UQFpgY+1B+X7LWLw7I+O+g==
"@swc/core-freebsd-x64@^1.2.88": "@swc/core-linux-arm-gnueabihf@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.88.tgz#bfa66de4469466a2684c24ad0c4e2fd771d98703" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.97.tgz#fcfa12a59540ee6462d542f50c6c6fd34bc59db3"
integrity sha512-KQIX5PqhFMlf+qhvmRmQukGdhOY9QRBgt/GVmc4H9NUX78mHDONdraKhNFXJ26bLIJXMFRlnOqE4GQCDgbAAyg== integrity sha512-7GlQVOB7MtieW/z3DnQ++DOF507BWxeTfeTl0/6WUfx9YldMec3zlVkLut3cwtehKTsrZQfWmucxoK7kOGmWcw==
"@swc/core-linux-arm-gnueabihf@^1.2.88": "@swc/core-linux-arm64-gnu@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.88.tgz#9f13e9fca1f73e92105a559be253bab639fe4713" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.97.tgz#d723b91f271e93563c6bba822e44ec16f7c2d051"
integrity sha512-z+bRlZ2VW5ap8tri0vpC8cBtROmvOujOfWVuFhkdx6/+XoyPKEsZJBdW3Z1CSB1eXz4kvtGBGBgOTCNj8i7T1Q== integrity sha512-ZHg2cVr4aUPfNS95fwiP50w4T1C8xJgde2qYoWSNRHcpl06jQWEWNcEXRVDuH1GLdcn/m0iYkjPXoxM15Y487g==
"@swc/core-linux-arm64-gnu@^1.2.88": "@swc/core-linux-arm64-musl@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.88.tgz#df6c86c3ba7985ec2c5723dde514804b09a6ab79" resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.97.tgz#b1a5519061bf2f39e93cbfd2a1a2aad7f3edb3b0"
integrity sha512-PxL3zZYE1ktGfwqHqt139oFpg5AzIaExPT1X7UC85+RLiMUuRsfKUNTJgzMkZDfPhV/Crjx5BiBrUfOp9KLzdQ== integrity sha512-qRKP7w2pC67RQhW0YwexhSOLowJjmhxzzhfiKfV7xAw0EnhzzAAHA9QHsVpnQ8hnchk8NUkKTq9LPGx6CCvd6A==
"@swc/core-linux-arm64-musl@^1.2.88": "@swc/core-linux-x64-gnu@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.88.tgz#a6ea5da02a154527b4f2e5042cb5923f288b2836" resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.97.tgz#fe74a4cd0b42be5d0bd7cd94fb145d2b35052c11"
integrity sha512-/M9Sb+ETGS4HUZYagQ0gr50yPrDPSaZKdCRlrVfD/GWvpJNvzu/8ILOiR/e2saSQE1vTPFbu+sYjUBaYavtucQ== integrity sha512-TMiz5/d9/StshZBs9qniICWGOyQwI9uxIwamnIlvmzCQCHnu1ymBmoxlQfLvcFxieNyl2VGrIsbgryQqy0Sb3w==
"@swc/core-linux-x64-gnu@^1.2.88": "@swc/core-linux-x64-musl@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.88.tgz#e3113b7882d5d8547774597f331371241d0c0cba" resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.97.tgz#0a633ea62612811aaf7161655d7cd465326f3cf7"
integrity sha512-dKCfYQjI+9L62DCXycJS/hBRd6Ta5KOauK7rNk1Md09QoK1ozAtK0t5WSS6qJV6Qz+McGx0DT363VRRsUxItNw== integrity sha512-/x1DS2FwF69ET+mRhhYiQcMeOl459kQ2FYs2RIlFkVs25r3X5mqUO0W+RG0p8SDUb6xOxVX9cW4Io6pXZ2QXFQ==
"@swc/core-linux-x64-musl@^1.2.88": "@swc/core-win32-arm64-msvc@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.88.tgz#99cf927398dc8605412d97b4624d4a0f7eca12c8" resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.97.tgz#fda211ba492a126fc5f6a40d563586ac8f848882"
integrity sha512-IgIdLA5xBaAx6VnaxEHtHzumeuVtPTOIneDX7vqLMVf87VF5QzqXNj/PXbRtnutE2Yw0lDoslkz/ABmKWtyiEA== integrity sha512-YgcKnjOwuhxVvVXfWCqRwaiNSHCmmQDnZILyPL1/urODQAmmXLY0mmg3HypyQQs3sDbIjG75RhkobHSxRYxaDA==
"@swc/core-win32-arm64-msvc@^1.2.88": "@swc/core-win32-ia32-msvc@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.88.tgz#b4b59028d7872892bfdeae08156c31cefaf2992a" resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.97.tgz#15f15ddb5176dc826de086f068604d0aec981a7c"
integrity sha512-cDaYQaSQvTacadfszmzs/ekfEaoLYlK1Pdgc03AUiJFRwPekMQ3i9jsDqPzwttML1FDlLPgkJJHy6FLKuc2omw== integrity sha512-CtUtk3o9hpQkYJn8pRimo5KIxELeArIvZQ/kbuCyGI+rFWVqQ++v41gOpJUSqdtNkBN/eW5e8jPBaRyOwOssfQ==
"@swc/core-win32-ia32-msvc@^1.2.88": "@swc/core-win32-x64-msvc@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.88.tgz#5096c985a4c280cfc5bf18d46604c24c59a280fd" resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.97.tgz#93656286dbdef3f2e8e56c4dbfd6158be1b9d8aa"
integrity sha512-4vkyxjmk/zt8GQPfLos1X4BX0W/VudBlVwLU9L4OmuloDhNCdVCEAc2o36Hgw3Q338VrM46xWQ+fB/cPIJEfgg== integrity sha512-/bAzSGBtPGdG/sJlAPw42njb2VZW5p3PgfMyRtM7+anzMLkQIRelNwJpjQD/4L4nxwRehmFcjVMl2bsMUxme5w==
"@swc/core-win32-x64-msvc@^1.2.88": "@swc/core@1.2.97":
version "1.2.88" version "1.2.97"
resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.88.tgz#a42ce013e5690d311fb7eb4ca29e404a0f8c8973" resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.2.97.tgz#28a4d236fd74fddd7d9667059ba03379a52647d5"
integrity sha512-8+LhfWO4ytIc2voKbAhd3j6hypdpWDM0xODzrXPceZ3MI91NUyBTSk7o2R+PpOgpyXNmmz9ATQ7EM0BgZGeAAw== integrity sha512-6fUkXMHD3o41n5HYv6ewP0tH4fsrRqJOfAdGSOAjPYKL6G7ZnWvxM5gJDYah7mGrpgm+MmtheI/S6CiyP2YH1Q==
"@swc/core@1.2.88":
version "1.2.88"
resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.2.88.tgz#6a866d7a3020ef35eb0f1662635a5e2d0ca5683b"
integrity sha512-CTnMGafEKEG8404Av9bKpffUVdKedYrmRPsQShJNg6wY7dPltbqsNcZUuC+8b1lQzY8axG4ypemxNAnOYtbwfg==
dependencies: dependencies:
"@node-rs/helper" "^1.0.0" "@node-rs/helper" "^1.0.0"
optionalDependencies: optionalDependencies:
"@swc/core-android-arm64" "^1.2.88" "@swc/core-android-arm64" "1.2.97"
"@swc/core-darwin-arm64" "^1.2.88" "@swc/core-darwin-arm64" "1.2.97"
"@swc/core-darwin-x64" "^1.2.88" "@swc/core-darwin-x64" "1.2.97"
"@swc/core-freebsd-x64" "^1.2.88" "@swc/core-linux-arm-gnueabihf" "1.2.97"
"@swc/core-linux-arm-gnueabihf" "^1.2.88" "@swc/core-linux-arm64-gnu" "1.2.97"
"@swc/core-linux-arm64-gnu" "^1.2.88" "@swc/core-linux-arm64-musl" "1.2.97"
"@swc/core-linux-arm64-musl" "^1.2.88" "@swc/core-linux-x64-gnu" "1.2.97"
"@swc/core-linux-x64-gnu" "^1.2.88" "@swc/core-linux-x64-musl" "1.2.97"
"@swc/core-linux-x64-musl" "^1.2.88" "@swc/core-win32-arm64-msvc" "1.2.97"
"@swc/core-win32-arm64-msvc" "^1.2.88" "@swc/core-win32-ia32-msvc" "1.2.97"
"@swc/core-win32-ia32-msvc" "^1.2.88" "@swc/core-win32-x64-msvc" "1.2.97"
"@swc/core-win32-x64-msvc" "^1.2.88"
"@swc/jest@0.2.3": "@swc/jest@0.2.3":
version "0.2.3" version "0.2.3"
......
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