Skip to content

Commit 9773518

Browse files
fix...
1 parent 0e7ad53 commit 9773518

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/myreact-refresh-tools/src/webpackPlugin.ts

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class RefreshWebpackPlugin {
128128
// @ts-ignore exists in webpack 5
129129
RuntimeModule: typeof WebpackRuntimeModule;
130130
Template: typeof WebpackTemplate;
131+
// eslint-disable-next-line @typescript-eslint/no-require-imports
131132
constructor({ version, RuntimeGlobals, RuntimeModule, Template } = require("webpack")) {
132133
this.webpackMajorVersion = parseInt(version ?? "", 10);
133134
this.RuntimeGlobals = RuntimeGlobals;

packages/myreact-refresh/src/RefreshBabelPlugin.ts

+1
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ export default function (babel, opts: Record<string, any> = {}) {
305305
// e.g. a useState initializer with some code inside.
306306
// We also need it for www that has transforms like cx()
307307
// that don't understand if something is part of a string.
308+
// eslint-disable-next-line @typescript-eslint/no-require-imports
308309
finalKey = require("crypto").createHash("sha1").update(key).digest("base64");
309310
}
310311

0 commit comments

Comments
 (0)