1
0
mirror of https://github.com/WeBankFinTech/fes.js.git synced 2025-04-06 03:59:53 +08:00

fix(fes): [hackFesInBuild] fix issues

This commit is contained in:
neo.st.fox 2024-02-19 17:08:40 +08:00
parent cca6223477
commit b7fcc3bc25

@ -1,9 +1,9 @@
// my-module/register.js
import { join } from 'node:path';
import { addHook } from 'pirates';
function matcher(filename) {
if (filename.endsWith('/fes/lib/index.js')) return true;
return false;
return filename.endsWith(join(...['fes', 'lib', 'index.js']));
}
export function hackFesInBuild() {