From 5c70e2c32f4c3ef8dfeb6543ff7f58cb3cd9ef5a Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 30 Aug 2026 11:16:00 +0000 Subject: [PATCH] fix(webpack): drop eval-based `import.meta.url` fallback --- packages/beasties-webpack-plugin/src/index.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/beasties-webpack-plugin/src/index.ts b/packages/beasties-webpack-plugin/src/index.ts index e6e9d7e..c5bacc5 100644 --- a/packages/beasties-webpack-plugin/src/index.ts +++ b/packages/beasties-webpack-plugin/src/index.ts @@ -23,12 +23,7 @@ import Beasties from 'beasties' import { minimatch } from 'minimatch' import { tap } from './util' -const $require - = typeof require !== 'undefined' - ? require - // TODO remove this - // eslint-disable-next-line no-eval - : createRequire(eval('import.meta.url')) +const $require = createRequire(import.meta.url) // Used to annotate this plugin's hooks in Tappable invocations const PLUGIN_NAME = 'beasties-webpack-plugin' -- 2.51.2