|
/* eslint-disable no-restricted-globals */ |
|
const _dirname = |
|
typeof __dirname !== 'undefined' |
|
? __dirname |
|
: dirname(fileURLToPath(import.meta.url)) |
|
const resolve = createRequire( |
|
typeof __filename !== 'undefined' ? __filename : import.meta.url, |
|
).resolve |
|
/* eslint-enable no-restricted-globals */ |
@AriPerkkio reported this check is broken when running vite through --eval based script. Probably this was only meant for esm/cjs support, but the package is now esm only, so we can probably remove this.
vite-plugin-react/packages/plugin-react-swc/src/index.ts
Lines 24 to 32 in a2d76d9
@AriPerkkio reported this check is broken when running vite through --eval based script. Probably this was only meant for esm/cjs support, but the package is now esm only, so we can probably remove this.