next 15.4.0-canary.48 → 15.4.0-canary.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/next +1 -1
- package/dist/build/index.js +2 -2
- package/dist/build/swc/index.js +1 -1
- package/dist/build/webpack-config.js +6 -2
- package/dist/build/webpack-config.js.map +1 -1
- package/dist/client/app-bootstrap.js +1 -1
- package/dist/client/components/react-dev-overlay/utils/launch-editor.d.ts +2 -2
- package/dist/client/components/react-dev-overlay/utils/launch-editor.js +30 -7
- package/dist/client/components/react-dev-overlay/utils/launch-editor.js.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/compiled/next-server/app-page-experimental.runtime.dev.js +2 -2
- package/dist/compiled/next-server/app-page-turbo-experimental.runtime.dev.js +2 -2
- package/dist/compiled/next-server/app-page-turbo.runtime.dev.js +2 -2
- package/dist/compiled/next-server/app-page.runtime.dev.js +2 -2
- package/dist/compiled/next-server/pages-api.runtime.dev.js +1 -1
- package/dist/compiled/next-server/pages-api.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/pages.runtime.dev.js +2 -2
- package/dist/compiled/next-server/pages.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/server.runtime.prod.js +1 -1
- package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
- package/dist/esm/build/index.js +2 -2
- package/dist/esm/build/swc/index.js +1 -1
- package/dist/esm/build/webpack-config.js +6 -2
- package/dist/esm/build/webpack-config.js.map +1 -1
- package/dist/esm/client/app-bootstrap.js +1 -1
- package/dist/esm/client/components/react-dev-overlay/utils/launch-editor.js +16 -6
- package/dist/esm/client/components/react-dev-overlay/utils/launch-editor.js.map +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/export/worker.js +8 -0
- package/dist/esm/export/worker.js.map +1 -1
- package/dist/esm/server/base-server.js +8 -4
- package/dist/esm/server/base-server.js.map +1 -1
- package/dist/esm/server/dev/hot-reloader-turbopack.js +1 -1
- package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/esm/server/lib/app-info-log.js +1 -1
- package/dist/esm/server/lib/start-server.js +1 -1
- package/dist/esm/shared/lib/canary-only.js +1 -1
- package/dist/export/worker.js +8 -0
- package/dist/export/worker.js.map +1 -1
- package/dist/server/base-server.js +7 -3
- package/dist/server/base-server.js.map +1 -1
- package/dist/server/dev/hot-reloader-turbopack.js +1 -1
- package/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/server/lib/app-info-log.js +1 -1
- package/dist/server/lib/start-server.js +1 -1
- package/dist/shared/lib/canary-only.js +1 -1
- package/dist/telemetry/anonymous-meta.js +1 -1
- package/dist/telemetry/events/session-stopped.js +2 -2
- package/dist/telemetry/events/version.js +2 -2
- package/package.json +15 -15
package/dist/esm/build/index.js
CHANGED
@@ -296,7 +296,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
296
296
|
const nextBuildSpan = trace('next-build', undefined, {
|
297
297
|
buildMode: experimentalBuildMode,
|
298
298
|
isTurboBuild: String(isTurbopack),
|
299
|
-
version: "15.4.0-canary.
|
299
|
+
version: "15.4.0-canary.49"
|
300
300
|
});
|
301
301
|
NextBuildContext.nextBuildSpan = nextBuildSpan;
|
302
302
|
NextBuildContext.dir = dir;
|
@@ -678,7 +678,7 @@ export default async function build(dir, reactProductionProfiling = false, debug
|
|
678
678
|
// Files outside of the distDir can be "type": "module"
|
679
679
|
await writeFileUtf8(path.join(distDir, 'package.json'), '{"type": "commonjs"}');
|
680
680
|
// These are written to distDir, so they need to come after creating and cleaning distDr.
|
681
|
-
await recordFrameworkVersion("15.4.0-canary.
|
681
|
+
await recordFrameworkVersion("15.4.0-canary.49");
|
682
682
|
await updateBuildDiagnostics({
|
683
683
|
buildStage: 'start'
|
684
684
|
});
|
@@ -11,7 +11,7 @@ import { isDeepStrictEqual } from 'util';
|
|
11
11
|
import { getDefineEnv } from '../define-env';
|
12
12
|
import { getReactCompilerLoader } from '../get-babel-loader-config';
|
13
13
|
import { TurbopackInternalError } from '../../shared/lib/turbopack/utils';
|
14
|
-
const nextVersion = "15.4.0-canary.
|
14
|
+
const nextVersion = "15.4.0-canary.49";
|
15
15
|
const ArchName = arch();
|
16
16
|
const PlatformName = platform();
|
17
17
|
function infoLog(...args) {
|
@@ -491,6 +491,10 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
|
|
491
491
|
isNodeServer ? new OptionalPeerDependencyResolverPlugin() : undefined
|
492
492
|
].filter(Boolean),
|
493
493
|
...isRspack && jsConfigPath ? {
|
494
|
+
// Skip paths that are routed to a .d.ts file
|
495
|
+
restrictions: [
|
496
|
+
/^(?!.*\.d\.ts$).*$/
|
497
|
+
],
|
494
498
|
tsConfig: {
|
495
499
|
configFile: jsConfigPath
|
496
500
|
}
|
@@ -1572,7 +1576,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
|
|
1572
1576
|
isClient && new CopyFilePlugin({
|
1573
1577
|
// file path to build output of `@next/polyfill-nomodule`
|
1574
1578
|
filePath: require.resolve('./polyfills/polyfill-nomodule'),
|
1575
|
-
cacheKey: "15.4.0-canary.
|
1579
|
+
cacheKey: "15.4.0-canary.49",
|
1576
1580
|
name: `static/chunks/polyfills${dev ? '' : '-[hash]'}.js`,
|
1577
1581
|
minimize: false,
|
1578
1582
|
info: {
|
@@ -1749,7 +1753,7 @@ export default async function getBaseWebpackConfig(dir, { buildId, encryptionKey
|
|
1749
1753
|
// - Next.js location on disk (some loaders use absolute paths and some resolve options depend on absolute paths)
|
1750
1754
|
// - Next.js version
|
1751
1755
|
// - next.config.js keys that affect compilation
|
1752
|
-
version: `${__dirname}|${"15.4.0-canary.
|
1756
|
+
version: `${__dirname}|${"15.4.0-canary.49"}|${configVars}`,
|
1753
1757
|
cacheDirectory: path.join(distDir, 'cache', 'webpack'),
|
1754
1758
|
// For production builds, it's more efficient to compress all cache files together instead of compression each one individually.
|
1755
1759
|
// So we disable compression here and allow the build runner to take care of compressing the cache as a whole.
|