Skip to content

Commit

Permalink
Update: Use ESM in webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Oct 14, 2023
1 parent 7e85051 commit 9148dd7
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/register": "^7.22.15",
"@types/chrome": "^0.0.246",
"@types/node": "^20.8.4",
"@types/webpack": "^5.28.3",
Expand Down
87 changes: 87 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions webpack.config.js → webpack.config.babel.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");
const fs = require("fs");
const CopyPlugin = require("copy-webpack-plugin");
const ESLintPlugin = require("eslint-webpack-plugin");
import CopyPlugin from "copy-webpack-plugin";
import ESLintPlugin from "eslint-webpack-plugin";
import fs from "fs";
import path from "path";

const loadFilesInScripts = function () {
const dir = path.join(__dirname, "src/scripts");
Expand Down

0 comments on commit 9148dd7

Please sign in to comment.