Skip to content

Instantly share code, notes, and snippets.

@jankaifer
Created February 16, 2023 16:01
Show Gist options
  • Save jankaifer/9e95dc84adef98f719b80dad33e7b1c1 to your computer and use it in GitHub Desktop.
Save jankaifer/9e95dc84adef98f719b80dad33e7b1c1 to your computer and use it in GitHub Desktop.
Cool the entrypiont has bunch of hidden stuff that we can use to try this hypothesis:
<ref *1> Entrypoint {
groupDebugId: 5013,
options: {
name: 'react-refresh',
filename: undefined,
runtime: 'webpack',
layer: undefined,
dependOn: undefined,
baseUri: undefined,
publicPath: undefined,
chunkLoading: undefined,
asyncChunks: undefined,
wasmLoading: undefined,
library: undefined
},
_children: SortableSet(0) [Set] {
_sortFn: [Function: sortById],
_lastActiveSortFn: Symbol(not sorted),
_cache: undefined,
_cacheOrderIndependent: undefined
},
_parents: SortableSet(0) [Set] {
_sortFn: [Function: sortById],
_lastActiveSortFn: Symbol(not sorted),
_cache: undefined,
_cacheOrderIndependent: undefined
},
_asyncEntrypoints: SortableSet(0) [Set] {
_sortFn: [Function: sortById],
_lastActiveSortFn: Symbol(not sorted),
_cache: undefined,
_cacheOrderIndependent: undefined
},
_blocks: SortableSet(0) [Set] {
_sortFn: undefined,
_lastActiveSortFn: Symbol(not sorted),
_cache: undefined,
_cacheOrderIndependent: undefined
},
chunks: [
Chunk {
id: 'webpack',
ids: [Array],
debugId: 1025,
name: 'webpack',
idNameHints: [SortableSet [Set]],
preventIntegration: true,
filenameTemplate: undefined,
cssFilenameTemplate: undefined,
_groups: [SortableSet [Set]],
runtime: 'webpack',
files: [SetDeprecatedArray [Set]],
auxiliaryFiles: Set(0) {},
rendered: true,
hash: '24d4db31a9b7a27c',
contentHash: [Object: null prototype],
renderedHash: '24d4db31a9b7a27c',
chunkReason: undefined,
extraAsync: false
},
Chunk {
id: 'react-refresh',
ids: [Array],
debugId: 1016,
name: 'react-refresh',
idNameHints: [SortableSet [Set]],
preventIntegration: false,
filenameTemplate: undefined,
cssFilenameTemplate: undefined,
_groups: [SortableSet [Set]],
runtime: 'webpack',
files: [SetDeprecatedArray [Set]],
auxiliaryFiles: Set(0) {},
rendered: false,
hash: 'ad52f386f2fe33f4',
contentHash: [Object: null prototype],
renderedHash: 'ad52f386f2fe33f4',
chunkReason: undefined,
extraAsync: false
}
],
origins: [
{
module: null,
loc: [Object],
request: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js'
}
],
_modulePreOrderIndices: Map(4) {
NormalModule {
dependencies: [Array],
blocks: [],
parent: undefined,
type: 'javascript/auto',
context: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist',
layer: null,
needId: true,
debugId: 1002,
resolveOptions: [Object],
factoryMeta: undefined,
useSourceMap: true,
useSimpleSourceMap: false,
_warnings: undefined,
_errors: undefined,
buildMeta: {},
buildInfo: [Object],
presentationalDependencies: [Array],
codeGenerationDependencies: undefined,
request: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js',
userRequest: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js',
rawRequest: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js',
binary: false,
parser: [JavascriptParser],
parserOptions: undefined,
generator: JavascriptGenerator {},
generatorOptions: undefined,
resource: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js',
resourceResolveData: [Object],
matchResource: undefined,
loaders: [],
error: null,
_source: [OriginalSource],
_sourceSizes: [Map],
_sourceTypes: [Set],
_lastSuccessfulBuildMeta: {},
_forceBuild: false,
_isEvaluatingSideEffects: false,
_addedSideEffectsBailout: undefined,
_ast: null
} => 0,
NormalModule {
dependencies: [Array],
blocks: [],
parent: undefined,
type: 'javascript/auto',
context: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh',
layer: null,
needId: true,
debugId: 1076,
resolveOptions: [Object],
factoryMeta: undefined,
useSourceMap: true,
useSimpleSourceMap: false,
_warnings: undefined,
_errors: undefined,
buildMeta: [Object],
buildInfo: [Object],
presentationalDependencies: [Array],
codeGenerationDependencies: undefined,
request: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/runtime.js',
userRequest: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/runtime.js',
rawRequest: 'next/dist/compiled/react-refresh/runtime',
binary: false,
parser: [JavascriptParser],
parserOptions: undefined,
generator: JavascriptGenerator {},
generatorOptions: undefined,
resource: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/runtime.js',
resourceResolveData: [Object],
matchResource: undefined,
loaders: [],
error: null,
_source: [OriginalSource],
_sourceSizes: [Map],
_sourceTypes: [Set],
_lastSuccessfulBuildMeta: [Object],
_forceBuild: false,
_isEvaluatingSideEffects: false,
_addedSideEffectsBailout: undefined,
_ast: null
} => 1,
NormalModule {
dependencies: [Array],
blocks: [],
parent: undefined,
type: 'javascript/auto',
context: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/cjs',
layer: null,
needId: true,
debugId: 1253,
resolveOptions: [Object],
factoryMeta: undefined,
useSourceMap: true,
useSimpleSourceMap: false,
_warnings: undefined,
_errors: undefined,
buildMeta: [Object],
buildInfo: [Object],
presentationalDependencies: [Array],
codeGenerationDependencies: undefined,
request: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js',
userRequest: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js',
rawRequest: './cjs/react-refresh-runtime.development.js',
binary: false,
parser: [JavascriptParser],
parserOptions: undefined,
generator: JavascriptGenerator {},
generatorOptions: undefined,
resource: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js',
resourceResolveData: [Object],
matchResource: undefined,
loaders: [],
error: null,
_source: [OriginalSource],
_sourceSizes: [Map],
_sourceTypes: [Set],
_lastSuccessfulBuildMeta: [Object],
_forceBuild: false,
_isEvaluatingSideEffects: false,
_addedSideEffectsBailout: undefined,
_ast: null
} => 2,
NormalModule {
dependencies: [Array],
blocks: [],
parent: undefined,
type: 'javascript/auto',
context: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/internal',
layer: null,
needId: true,
debugId: 1027,
resolveOptions: [Object],
factoryMeta: undefined,
useSourceMap: true,
useSimpleSourceMap: false,
_warnings: undefined,
_errors: undefined,
buildMeta: {},
buildInfo: [Object],
presentationalDependencies: [Array],
codeGenerationDependencies: undefined,
request: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js',
userRequest: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js',
rawRequest: './internal/helpers',
binary: false,
parser: [JavascriptParser],
parserOptions: undefined,
generator: JavascriptGenerator {},
generatorOptions: undefined,
resource: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js',
resourceResolveData: [Object],
matchResource: undefined,
loaders: [],
error: null,
_source: [OriginalSource],
_sourceSizes: [Map],
_sourceTypes: [Set],
_lastSuccessfulBuildMeta: {},
_forceBuild: false,
_isEvaluatingSideEffects: false,
_addedSideEffectsBailout: undefined,
_ast: null
} => 3
},
_modulePostOrderIndices: Map(4) {
NormalModule {
dependencies: [Array],
blocks: [],
parent: undefined,
type: 'javascript/auto',
context: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/cjs',
layer: null,
needId: true,
debugId: 1253,
resolveOptions: [Object],
factoryMeta: undefined,
useSourceMap: true,
useSimpleSourceMap: false,
_warnings: undefined,
_errors: undefined,
buildMeta: [Object],
buildInfo: [Object],
presentationalDependencies: [Array],
codeGenerationDependencies: undefined,
request: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js',
userRequest: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js',
rawRequest: './cjs/react-refresh-runtime.development.js',
binary: false,
parser: [JavascriptParser],
parserOptions: undefined,
generator: JavascriptGenerator {},
generatorOptions: undefined,
resource: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js',
resourceResolveData: [Object],
matchResource: undefined,
loaders: [],
error: null,
_source: [OriginalSource],
_sourceSizes: [Map],
_sourceTypes: [Set],
_lastSuccessfulBuildMeta: [Object],
_forceBuild: false,
_isEvaluatingSideEffects: false,
_addedSideEffectsBailout: undefined,
_ast: null
} => 0,
NormalModule {
dependencies: [Array],
blocks: [],
parent: undefined,
type: 'javascript/auto',
context: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh',
layer: null,
needId: true,
debugId: 1076,
resolveOptions: [Object],
factoryMeta: undefined,
useSourceMap: true,
useSimpleSourceMap: false,
_warnings: undefined,
_errors: undefined,
buildMeta: [Object],
buildInfo: [Object],
presentationalDependencies: [Array],
codeGenerationDependencies: undefined,
request: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/runtime.js',
userRequest: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/runtime.js',
rawRequest: 'next/dist/compiled/react-refresh/runtime',
binary: false,
parser: [JavascriptParser],
parserOptions: undefined,
generator: JavascriptGenerator {},
generatorOptions: undefined,
resource: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/react-refresh/runtime.js',
resourceResolveData: [Object],
matchResource: undefined,
loaders: [],
error: null,
_source: [OriginalSource],
_sourceSizes: [Map],
_sourceTypes: [Set],
_lastSuccessfulBuildMeta: [Object],
_forceBuild: false,
_isEvaluatingSideEffects: false,
_addedSideEffectsBailout: undefined,
_ast: null
} => 1,
NormalModule {
dependencies: [Array],
blocks: [],
parent: undefined,
type: 'javascript/auto',
context: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/internal',
layer: null,
needId: true,
debugId: 1027,
resolveOptions: [Object],
factoryMeta: undefined,
useSourceMap: true,
useSimpleSourceMap: false,
_warnings: undefined,
_errors: undefined,
buildMeta: {},
buildInfo: [Object],
presentationalDependencies: [Array],
codeGenerationDependencies: undefined,
request: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js',
userRequest: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js',
rawRequest: './internal/helpers',
binary: false,
parser: [JavascriptParser],
parserOptions: undefined,
generator: JavascriptGenerator {},
generatorOptions: undefined,
resource: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js',
resourceResolveData: [Object],
matchResource: undefined,
loaders: [],
error: null,
_source: [OriginalSource],
_sourceSizes: [Map],
_sourceTypes: [Set],
_lastSuccessfulBuildMeta: {},
_forceBuild: false,
_isEvaluatingSideEffects: false,
_addedSideEffectsBailout: undefined,
_ast: null
} => 2,
NormalModule {
dependencies: [Array],
blocks: [],
parent: undefined,
type: 'javascript/auto',
context: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist',
layer: null,
needId: true,
debugId: 1002,
resolveOptions: [Object],
factoryMeta: undefined,
useSourceMap: true,
useSimpleSourceMap: false,
_warnings: undefined,
_errors: undefined,
buildMeta: {},
buildInfo: [Object],
presentationalDependencies: [Array],
codeGenerationDependencies: undefined,
request: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js',
userRequest: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js',
rawRequest: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js',
binary: false,
parser: [JavascriptParser],
parserOptions: undefined,
generator: JavascriptGenerator {},
generatorOptions: undefined,
resource: '/home/pearman/dev/vercel/next.js/packages/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js',
resourceResolveData: [Object],
matchResource: undefined,
loaders: [],
error: null,
_source: [OriginalSource],
_sourceSizes: [Map],
_sourceTypes: [Set],
_lastSuccessfulBuildMeta: {},
_forceBuild: false,
_isEvaluatingSideEffects: false,
_addedSideEffectsBailout: undefined,
_ast: null
} => 3
},
index: 0,
_runtimeChunk: Chunk {
id: 'webpack',
ids: [ 'webpack' ],
debugId: 1025,
name: 'webpack',
idNameHints: SortableSet(0) [Set] {
_sortFn: undefined,
_lastActiveSortFn: Symbol(not sorted),
_cache: undefined,
_cacheOrderIndependent: undefined
},
preventIntegration: true,
filenameTemplate: undefined,
cssFilenameTemplate: undefined,
_groups: SortableSet(4) [Set] {
[Circular *1],
[Entrypoint],
[Entrypoint],
[Entrypoint],
_sortFn: [Function: compareChunkGroupsByIndex],
_lastActiveSortFn: [Function: compareChunkGroupsByIndex],
_cache: undefined,
_cacheOrderIndependent: undefined
},
runtime: 'webpack',
files: SetDeprecatedArray(2) [Set] {
'static/chunks/webpack.js',
'static/webpack/webpack.d32e0cecf7480d6f.hot-update.js'
},
auxiliaryFiles: Set(0) {},
rendered: true,
hash: '24d4db31a9b7a27c',
contentHash: [Object: null prototype] { javascript: '6291ac293981e719' },
renderedHash: '24d4db31a9b7a27c',
chunkReason: undefined,
extraAsync: false
},
_entrypointChunk: Chunk {
id: 'react-refresh',
ids: [ 'react-refresh' ],
debugId: 1016,
name: 'react-refresh',
idNameHints: SortableSet(0) [Set] {
_sortFn: undefined,
_lastActiveSortFn: Symbol(not sorted),
_cache: undefined,
_cacheOrderIndependent: undefined
},
preventIntegration: false,
filenameTemplate: undefined,
cssFilenameTemplate: undefined,
_groups: SortableSet(1) [Set] {
[Circular *1],
_sortFn: [Function: compareChunkGroupsByIndex],
_lastActiveSortFn: Symbol(not sorted),
_cache: undefined,
_cacheOrderIndependent: undefined
},
runtime: 'webpack',
files: SetDeprecatedArray(1) [Set] { 'static/chunks/react-refresh.js' },
auxiliaryFiles: Set(0) {},
rendered: false,
hash: 'ad52f386f2fe33f4',
contentHash: [Object: null prototype] { javascript: '76b9fb6cdbd5deda' },
renderedHash: 'ad52f386f2fe33f4',
chunkReason: undefined,
extraAsync: false
},
_initial: true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment