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,
|
"isolatedModules": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"types": ["node", "react", "react-dom", "jest", "@babel/core", "webpack", "url"],
|
|
||||||
"typeRoots": ["./node_modules/@types"],
|
"typeRoots": ["./node_modules/@types"],
|
||||||
"allowImportingTsExtensions": true
|
"allowImportingTsExtensions": true
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,13 +1,11 @@
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { fileURLToPath } from 'url';
|
|
||||||
import { Configuration } from 'webpack';
|
import { Configuration } from 'webpack';
|
||||||
import CopyWebpackPlugin from 'copy-webpack-plugin';
|
import CopyWebpackPlugin from 'copy-webpack-plugin';
|
||||||
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
||||||
import { version } from './package.json';
|
import { version } from './package.json';
|
||||||
|
|
||||||
// Setup __dirname equivalent for TypeScript
|
// Declare __dirname for TypeScript
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
declare const __dirname: string;
|
||||||
const __dirname = path.dirname(__filename);
|
|
||||||
|
|
||||||
const config: Configuration = {
|
const config: Configuration = {
|
||||||
entry: './src/index.js',
|
entry: './src/index.js',
|
||||||
|
|||||||
Reference in New Issue
Block a user