-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turbopack: use file:// uris for server resources in development #71984
Conversation
Tests Passed |
Stats from current PRDefault BuildGeneral
Client Bundles (main, webpack)
Legacy Client Bundles (polyfills)
Client Pages
Client Build Manifests
Rendered Page Sizes
Edge SSR bundle Size
Middleware size
Next Runtimes
build cache
Diff detailsDiff for page.jsDiff too large to display Diff for middleware.jsDiff too large to display Diff for edge-ssr.jsDiff too large to display Diff for image-HASH.js@@ -1,7 +1,7 @@
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
- [2983],
+ [8358],
{
- /***/ 8916: /***/ (
+ /***/ 8942: /***/ (
__unused_webpack_module,
__unused_webpack_exports,
__webpack_require__
@@ -9,7 +9,7 @@
(window.__NEXT_P = window.__NEXT_P || []).push([
"/image",
function () {
- return __webpack_require__(4209);
+ return __webpack_require__(2864);
},
]);
if (false) {
@@ -18,7 +18,7 @@
/***/
},
- /***/ 9265: /***/ (module, exports, __webpack_require__) => {
+ /***/ 1673: /***/ (module, exports, __webpack_require__) => {
"use strict";
/* __next_internal_client_entry_do_not_use__ cjs */
Object.defineProperty(exports, "__esModule", {
@@ -30,27 +30,27 @@
return Image;
},
});
- const _interop_require_default = __webpack_require__(1739);
- const _interop_require_wildcard = __webpack_require__(1474);
- const _jsxruntime = __webpack_require__(7515);
+ const _interop_require_default = __webpack_require__(9608);
+ const _interop_require_wildcard = __webpack_require__(4856);
+ const _jsxruntime = __webpack_require__(2073);
const _react = /*#__PURE__*/ _interop_require_wildcard._(
- __webpack_require__(7611)
+ __webpack_require__(102)
);
const _reactdom = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(9577)
+ __webpack_require__(8693)
);
const _head = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(1436)
+ __webpack_require__(5838)
);
- const _getimgprops = __webpack_require__(8517);
- const _imageconfig = __webpack_require__(2168);
- const _imageconfigcontextsharedruntime = __webpack_require__(9202);
- const _warnonce = __webpack_require__(6992);
- const _routercontextsharedruntime = __webpack_require__(8155);
+ const _getimgprops = __webpack_require__(5726);
+ const _imageconfig = __webpack_require__(187);
+ const _imageconfigcontextsharedruntime = __webpack_require__(5786);
+ const _warnonce = __webpack_require__(3673);
+ const _routercontextsharedruntime = __webpack_require__(759);
const _imageloader = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(345)
+ __webpack_require__(2182)
);
- const _usemergedref = __webpack_require__(2806);
+ const _usemergedref = __webpack_require__(9363);
// This is replaced by webpack define plugin
const configEnv = {
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
@@ -371,7 +371,7 @@
/***/
},
- /***/ 2806: /***/ (module, exports, __webpack_require__) => {
+ /***/ 9363: /***/ (module, exports, __webpack_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -383,7 +383,7 @@
return useMergedRef;
},
});
- const _react = __webpack_require__(7611);
+ const _react = __webpack_require__(102);
function useMergedRef(refA, refB) {
const cleanupA = (0, _react.useRef)(() => {});
const cleanupB = (0, _react.useRef)(() => {});
@@ -432,7 +432,7 @@
/***/
},
- /***/ 8517: /***/ (
+ /***/ 5726: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -448,9 +448,9 @@
return getImgProps;
},
});
- const _warnonce = __webpack_require__(6992);
- const _imageblursvg = __webpack_require__(1692);
- const _imageconfig = __webpack_require__(2168);
+ const _warnonce = __webpack_require__(3673);
+ const _imageblursvg = __webpack_require__(5499);
+ const _imageconfig = __webpack_require__(187);
const VALID_LOADING_VALUES =
/* unused pure expression or super */ null && [
"lazy",
@@ -824,7 +824,7 @@
/***/
},
- /***/ 1692: /***/ (__unused_webpack_module, exports) => {
+ /***/ 5499: /***/ (__unused_webpack_module, exports) => {
"use strict";
/**
* A shared function, used on both client and server, to generate a SVG blur placeholder.
@@ -879,7 +879,7 @@
/***/
},
- /***/ 4673: /***/ (
+ /***/ 6157: /***/ (
__unused_webpack_module,
exports,
__webpack_require__
@@ -905,11 +905,11 @@
return getImageProps;
},
});
- const _interop_require_default = __webpack_require__(1739);
- const _getimgprops = __webpack_require__(8517);
- const _imagecomponent = __webpack_require__(9265);
+ const _interop_require_default = __webpack_require__(9608);
+ const _getimgprops = __webpack_require__(5726);
+ const _imagecomponent = __webpack_require__(1673);
const _imageloader = /*#__PURE__*/ _interop_require_default._(
- __webpack_require__(345)
+ __webpack_require__(2182)
);
function getImageProps(imgProps) {
const { props } = (0, _getimgprops.getImgProps)(imgProps, {
@@ -941,7 +941,7 @@
/***/
},
- /***/ 345: /***/ (__unused_webpack_module, exports) => {
+ /***/ 2182: /***/ (__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", {
@@ -976,7 +976,7 @@
/***/
},
- /***/ 4209: /***/ (
+ /***/ 2864: /***/ (
__unused_webpack_module,
__webpack_exports__,
__webpack_require__
@@ -992,10 +992,10 @@
});
// EXTERNAL MODULE: ./node_modules/.pnpm/react@19.0.0-rc-7c8e5e7a-20241101/node_modules/react/jsx-runtime.js
- var jsx_runtime = __webpack_require__(7515);
- // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-7c8e5e7a-20241101_re_ngsqfltlxii45umrwe6rktuauy/node_modules/next/image.js
- var next_image = __webpack_require__(7265);
- var image_default = /*#__PURE__*/ __webpack_require__.n(next_image); // ./pages/nextjs.png
+ var jsx_runtime = __webpack_require__(2073);
+ // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-7c8e5e7a-20241101_re_ay5jspqvpcpk5357qiimbatlya/node_modules/next/image.js
+ var next_image = __webpack_require__(9915);
+ var image_default = /*#__PURE__*/ __webpack_require__.n(next_image); // CONCATENATED MODULE: ./pages/nextjs.png
/* harmony default export */ const nextjs = {
src: "/_next/static/media/nextjs.cae0b805.png",
height: 1347,
@@ -1004,7 +1004,7 @@
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAD1BMVEX////x8fH6+vrb29vo6Oh8o70bAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAH0lEQVR4nGNgwARMjIyMjCAGCzMzMwsTRISJCcRABwAEcAAkLCQfgAAAAABJRU5ErkJggg==",
blurWidth: 8,
blurHeight: 7,
- }; // ./pages/image.js
+ }; // CONCATENATED MODULE: ./pages/image.js
function ImagePage(props) {
return /*#__PURE__*/ (0, jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [
@@ -1024,12 +1024,12 @@
/***/
},
- /***/ 7265: /***/ (
+ /***/ 9915: /***/ (
module,
__unused_webpack_exports,
__webpack_require__
) => {
- module.exports = __webpack_require__(4673);
+ module.exports = __webpack_require__(6157);
/***/
},
@@ -1038,8 +1038,8 @@
// webpackRuntimeModules
/******/ var __webpack_exec__ = (moduleId) =>
__webpack_require__((__webpack_require__.s = moduleId));
- /******/ __webpack_require__.O(0, [636, 6593, 8792], () =>
- __webpack_exec__(8916)
+ /******/ __webpack_require__.O(0, [2888, 9774, 179], () =>
+ __webpack_exec__(8942)
);
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__; Diff for 3073-HASH.jsDiff too large to display Diff for main-HASH.jsDiff too large to display Diff for 10-experimen..ntime.dev.jsdeleted Diff for 10.runtime.dev.jsdeleted Diff for 973-experime..ntime.dev.js@@ -0,0 +1,2 @@
+"use strict";exports.id=973,exports.ids=[973],exports.modules={"./dist/client/dev/noop-turbopack-hmr.js":(module,exports1)=>{function connect(){}Object.defineProperty(exports1,"__esModule",{value:!0}),Object.defineProperty(exports1,"connect",{enumerable:!0,get:function(){return connect}}),("function"==typeof exports1.default||"object"==typeof exports1.default&&null!==exports1.default)&&void 0===exports1.default.__esModule&&(Object.defineProperty(exports1.default,"__esModule",{value:!0}),Object.assign(exports1.default,exports1),module.exports=exports1.default)}};
+//# sourceMappingURL=973-experimental.runtime.dev.js.map
\ No newline at end of file Diff for 973.runtime.dev.js@@ -0,0 +1,2 @@
+"use strict";exports.id=973,exports.ids=[973],exports.modules={"./dist/client/dev/noop-turbopack-hmr.js":(module,exports1)=>{function connect(){}Object.defineProperty(exports1,"__esModule",{value:!0}),Object.defineProperty(exports1,"connect",{enumerable:!0,get:function(){return connect}}),("function"==typeof exports1.default||"object"==typeof exports1.default&&null!==exports1.default)&&void 0===exports1.default.__esModule&&(Object.defineProperty(exports1.default,"__esModule",{value:!0}),Object.assign(exports1.default,exports1),module.exports=exports1.default)}};
+//# sourceMappingURL=973.runtime.dev.js.map
\ No newline at end of file Diff for app-page-exp..ntime.dev.jsfailed to diff Diff for app-page-exp..time.prod.jsDiff too large to display Diff for app-page-tur..time.prod.jsDiff too large to display Diff for app-page-tur..time.prod.jsDiff too large to display Diff for app-page.runtime.dev.jsfailed to diff Diff for app-page.runtime.prod.jsDiff too large to display Diff for app-route-ex..ntime.dev.jsDiff too large to display Diff for app-route-ex..time.prod.jsDiff too large to display Diff for app-route-tu..time.prod.jsDiff too large to display Diff for app-route-tu..time.prod.jsDiff too large to display Diff for app-route.runtime.dev.jsDiff too large to display Diff for app-route.ru..time.prod.jsDiff too large to display Diff for pages-turbo...time.prod.jsDiff too large to display Diff for pages.runtime.dev.jsDiff too large to display Diff for pages.runtime.prod.jsDiff too large to display Diff for server.runtime.prod.jsfailed to diff |
ea95183
to
5f665ed
Compare
If you stack it on top of #71940, you should have an easier time asserting in the correct stacks since it'll no longer show the full, absolute path. |
or normalizing works as well for now. |
Do all generated source maps now include the absolute paths or just the ones for dev? |
Just dev. |
5f665ed
to
e5da935
Compare
'\nError: Boom' + | ||
'\n at logError (app/rsc-error-log/page.js:2:16)' + | ||
(isTurbopack | ||
? '\n at Page (app/rsc-error-log/page.js:7:2)' | ||
: // FIXME: Method name should be "Page" | ||
'\n at logError (app/rsc-error-log/page.js:7:2)') + | ||
'\n 1 | function logError() {' + | ||
"\n> 2 | const error = new Error('Boom')" + | ||
'\n | ^' + | ||
'\n 3 | console.error(error)' + | ||
'\n 4 | }' + | ||
'\n 5 |' + | ||
'\n' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So good
9ccdf4b
to
e9e1eff
Compare
902e496
to
0990dfe
Compare
0737f9d
to
c8f7831
Compare
62665f3
to
19d9976
Compare
c6bd19e
to
9430f84
Compare
9430f84
to
679929a
Compare
@wbinnssmith Landed the base now. Once you rebase, we should be able to land this. |
Follows up from #71489, extending this to sourcemaps for server bundles. Test Plan: - [ ] CI - [x] https://github.com/vercel/next.js/blob/61dbe6fb00885068e7ae89ed397e2112076a4577/test/development/app-dir/source-mapping/README.md
19d9976
to
cf20441
Compare
…el#71984) Follows up from vercel#71489, extending this to sourcemaps for server bundles. Test Plan: - [x] CI - [x] https://github.com/vercel/next.js/blob/61dbe6fb00885068e7ae89ed397e2112076a4577/test/development/app-dir/source-mapping/README.md Closes PACK-3348
Follows up from #71489, extending this to sourcemaps for server bundles.
Test Plan:
Closes PACK-3348