mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-13 00:56:22 +00:00
Fix
This commit is contained in:
@ -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
|
||||
},
|
||||
|
||||
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user