@@ -7,21 +7,21 @@ import { emitJSONFile } from '@nice-labs/emit-file-webpack-plugin'
77import DevtoolsIgnorePlugin from 'devtools-ignore-webpack-plugin'
88import WebExtensionPlugin from 'webpack-target-webextension'
99import ReactCompiler from 'react-compiler-webpack'
10- import { getGitInfo } from './git-info.js '
11- import { emitManifestFile } from './plugins/manifest.js '
10+ import { getGitInfo } from './git-info.ts '
11+ import { emitManifestFile } from './plugins/manifest.ts '
1212// @ts -expect-error
1313import LavaMoat from '@lavamoat/webpack'
1414
1515import { readFile , readdir } from 'node:fs/promises'
1616import { createRequire } from 'node:module'
1717import { join } from 'node:path'
1818
19- import { computeCacheKey , computedBuildFlags , normalizeBuildFlags , type BuildFlags } from './flags.js '
20- import { ProfilingPlugin } from './plugins/ProfilingPlugin.js '
21- import { joinEntryItem , normalizeEntryDescription , type EntryDescription } from './utils.js '
19+ import { computeCacheKey , computedBuildFlags , normalizeBuildFlags , type BuildFlags } from './flags.ts '
20+ import { ProfilingPlugin } from './plugins/ProfilingPlugin.ts '
21+ import { joinEntryItem , normalizeEntryDescription , type EntryDescription } from './utils.ts '
2222
23- import './clean-hmr.js '
24- import { TrustedTypesPlugin } from './plugins/TrustedTypesPlugin.js '
23+ import './clean-hmr.ts '
24+ import { TrustedTypesPlugin } from './plugins/TrustedTypesPlugin.ts '
2525
2626const require = createRequire ( import . meta. url )
2727const patchesDir = join ( import . meta. dirname , '../../../patches' )
@@ -492,11 +492,12 @@ export async function createConfiguration(
492492 }
493493}
494494
495- enum TemplateType {
496- Loading ,
497- NoLoading ,
498- Background ,
499- }
495+ const TemplateType = {
496+ Loading : 0 ,
497+ NoLoading : 1 ,
498+ Background : 2 ,
499+ } as const
500+ type TemplateType = ( typeof TemplateType ) [ keyof typeof TemplateType ]
500501const pages = {
501502 loading : readFile ( join ( import . meta. dirname , './with-loading.html' ) , 'utf8' ) ,
502503 noLoading : readFile ( join ( import . meta. dirname , './with-no-loading.html' ) , 'utf8' ) ,
0 commit comments