Skip to content

Commit de20db8

Browse files
committed
use EntryObject
1 parent 03d015c commit de20db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
66
import {VueLoaderPlugin} from 'vue-loader';
77
import EsBuildLoader from 'esbuild-loader';
88
import {parse} from 'node:path';
9-
import webpack, {type Configuration} from 'webpack';
9+
import webpack, {type Configuration, type EntryObject} from 'webpack';
1010
import {fileURLToPath} from 'node:url';
1111
import {readFileSync, globSync} from 'node:fs';
1212
import {env} from 'node:process';
@@ -19,7 +19,7 @@ const {EsbuildPlugin} = EsBuildLoader;
1919
const {SourceMapDevToolPlugin, DefinePlugin, EnvironmentPlugin} = webpack;
2020
const formatLicenseText = (licenseText: string) => wrapAnsi(licenseText || '', 80).trim();
2121

22-
const themes: Record<string, Array<string>> = {};
22+
const themes: EntryObject = {};
2323
for (const path of globSync('web_src/css/themes/*.css', {cwd: import.meta.dirname})) {
2424
themes[parse(path).name] = [`./${path}`];
2525
}

0 commit comments

Comments
 (0)