Skip to content

Commit

Permalink
Fix rspack config
Browse files Browse the repository at this point in the history
  • Loading branch information
magcius committed Dec 20, 2024
1 parent 77f8b00 commit af0bb0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rspack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import HtmlWebpackPlugin from 'html-webpack-plugin';
import { GitRevisionPlugin } from 'git-revision-webpack-plugin';
import { CleanWebpackPlugin } from 'clean-webpack-plugin';
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

const targets = JSON.parse(fs.readFileSync(__dirname + '/package.json', 'utf8')).browserslist;
const targets = JSON.parse(fs.readFileSync(path.join(path.dirname(fileURLToPath(import.meta.url)), 'package.json'), 'utf8')).browserslist;
const gitRevision = new GitRevisionPlugin();

const config: rspack.Configuration = {
Expand Down

0 comments on commit af0bb0b

Please sign in to comment.