Stop using stupid __dirname

This commit is contained in:
2025-03-19 13:27:02 +01:00
parent 461782207f
commit 4b6ad2fa86
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,10 @@
import path from 'path';
import webpack from 'webpack';
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const config: webpack.Configuration = {
entry: "./src/mushroom-strategy.ts",

View File

@ -2,6 +2,10 @@
import path from 'path';
import webpack from 'webpack';
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const config: webpack.Configuration = {
entry: "./src/mushroom-strategy.ts",