This commit is contained in:
koalasat
2025-07-18 14:17:26 +02:00
parent f8640bfb40
commit 8fef656b87
2 changed files with 2 additions and 5 deletions

View File

@ -14,7 +14,6 @@
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"types": ["node", "react", "react-dom", "jest", "@babel/core", "webpack", "url"],
"typeRoots": ["./node_modules/@types"],
"allowImportingTsExtensions": true
},

View File

@ -1,13 +1,11 @@
import path from 'path';
import { fileURLToPath } from 'url';
import { Configuration } from 'webpack';
import CopyWebpackPlugin from 'copy-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import { version } from './package.json';
// Setup __dirname equivalent for TypeScript
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
// Declare __dirname for TypeScript
declare const __dirname: string;
const config: Configuration = {
entry: './src/index.js',