Skip to content

Commit 3667eba

Browse files
authored
Pre-compile more dependencies continued (#32679)
1 parent 4f67edd commit 3667eba

File tree

263 files changed

+4924
-1953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+4924
-1953
lines changed

packages/next/build/babel/plugins/no-anonymous-default-export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PluginObj, types as BabelTypes } from 'next/dist/compiled/babel/core'
2-
import chalk from 'chalk'
2+
import chalk from 'next/dist/compiled/chalk'
33

44
export default function NoAnonymousDefaultExport({
55
types: t,

packages/next/build/babel/preset.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,11 @@ export default (
177177
regenerator: true,
178178
useESModules: supportsESM && presetEnvConfig.modules !== 'commonjs',
179179
absoluteRuntime: isBabelLoader
180-
? dirname(require.resolve('@babel/runtime/package.json'))
180+
? dirname(
181+
require.resolve(
182+
'next/dist/compiled/@babel/runtime/package.json'
183+
)
184+
)
181185
: undefined,
182186
...options['transform-runtime'],
183187
},

packages/next/build/entries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chalk from 'chalk'
1+
import chalk from 'next/dist/compiled/chalk'
22
import { posix, join } from 'path'
33
import { stringify } from 'querystring'
44
import { API_ROUTE, DOT_NEXT_ALIAS, PAGES_DIR_ALIAS } from '../lib/constants'

packages/next/build/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { loadEnvConfig } from '@next/env'
2-
import chalk from 'chalk'
2+
import chalk from 'next/dist/compiled/chalk'
33
import crypto from 'crypto'
44
import { isMatch } from 'next/dist/compiled/micromatch'
55
import { promises, writeFileSync } from 'fs'

packages/next/build/output/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chalk from 'chalk'
1+
import chalk from 'next/dist/compiled/chalk'
22
import stripAnsi from 'next/dist/compiled/strip-ansi'
33
import textTable from 'next/dist/compiled/text-table'
44
import createStore from 'next/dist/compiled/unistore'

packages/next/build/output/log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chalk from 'chalk'
1+
import chalk from 'next/dist/compiled/chalk'
22

33
export const prefixes = {
44
wait: chalk.cyan('wait') + ' -',

packages/next/build/swc/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { platform, arch } from 'os'
2-
import { platformArchTriples } from '@napi-rs/triples'
2+
import { platformArchTriples } from 'next/dist/compiled/@napi-rs/triples'
33
import * as Log from '../output/log'
44

55
const ArchName = arch()

packages/next/build/swc/options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
const nextDistPath =
22
/(next[\\/]dist[\\/]shared[\\/]lib)|(next[\\/]dist[\\/]client)|(next[\\/]dist[\\/]pages)/
33

4-
const regeneratorRuntimePath = require.resolve('regenerator-runtime')
4+
const regeneratorRuntimePath = require.resolve(
5+
'next/dist/compiled/regenerator-runtime'
6+
)
57

68
function getBaseSWCOptions({
79
filename,

packages/next/build/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import '../server/node-polyfill-fetch'
2-
import chalk from 'chalk'
2+
import chalk from 'next/dist/compiled/chalk'
33
import getGzipSize from 'next/dist/compiled/gzip-size'
44
import textTable from 'next/dist/compiled/text-table'
55
import path from 'path'

packages/next/build/webpack-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ReactRefreshWebpackPlugin from '@next/react-refresh-utils/ReactRefreshWebpackPlugin'
2-
import chalk from 'chalk'
2+
import chalk from 'next/dist/compiled/chalk'
33
import crypto from 'crypto'
44
import { stringify } from 'querystring'
55
import semver from 'next/dist/compiled/semver'
@@ -50,7 +50,7 @@ import { FlightManifestPlugin } from './webpack/plugins/flight-manifest-plugin'
5050
import { TelemetryPlugin } from './webpack/plugins/telemetry-plugin'
5151
import type { Span } from '../trace'
5252
import { getRawPageExtensions } from './utils'
53-
import browserslist from 'browserslist'
53+
import browserslist from 'next/dist/compiled/browserslist'
5454
import loadJsConfig from './load-jsconfig'
5555

5656
const watchOptions = Object.freeze({

0 commit comments

Comments
 (0)