mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
[Flight] Switch to __turbopack_load_by_url__ (#33791)
This commit is contained in:
parent
345ca24f13
commit
56d0ddae18
|
|
@ -474,7 +474,7 @@ module.exports = {
|
|||
{
|
||||
files: ['packages/react-server-dom-turbopack/**/*.js'],
|
||||
globals: {
|
||||
__turbopack_load__: 'readonly',
|
||||
__turbopack_load_by_url__: 'readonly',
|
||||
__turbopack_require__: 'readonly',
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -8,5 +8,5 @@
|
|||
*/
|
||||
|
||||
export function loadChunk(filename: string): Promise<mixed> {
|
||||
return __turbopack_load__(filename);
|
||||
return __turbopack_load_by_url__(filename);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,5 +8,5 @@
|
|||
*/
|
||||
|
||||
export function loadChunk(filename: string): Promise<mixed> {
|
||||
return __turbopack_load__(filename);
|
||||
return __turbopack_load_by_url__(filename);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ declare const __webpack_require__: ((id: string) => any) & {
|
|||
u: string => string,
|
||||
};
|
||||
|
||||
declare function __turbopack_load__(id: string): Promise<mixed>;
|
||||
declare function __turbopack_load_by_url__(id: string): Promise<mixed>;
|
||||
declare const __turbopack_require__: ((id: string) => any) & {
|
||||
u: string => string,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ module.exports = {
|
|||
__webpack_require__: 'readonly',
|
||||
|
||||
// Flight Turbopack
|
||||
__turbopack_load__: 'readonly',
|
||||
__turbopack_load_by_url__: 'readonly',
|
||||
__turbopack_require__: 'readonly',
|
||||
|
||||
// Flight Parcel
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ module.exports = {
|
|||
__webpack_require__: 'readonly',
|
||||
|
||||
// Flight Turbopack
|
||||
__turbopack_load__: 'readonly',
|
||||
__turbopack_load_by_url__: 'readonly',
|
||||
__turbopack_require__: 'readonly',
|
||||
|
||||
// Flight Parcel
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ module.exports = {
|
|||
__webpack_require__: 'readonly',
|
||||
|
||||
// Flight Turbopack
|
||||
__turbopack_load__: 'readonly',
|
||||
__turbopack_load_by_url__: 'readonly',
|
||||
__turbopack_require__: 'readonly',
|
||||
|
||||
// Flight Parcel
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user