fix(fes): [hackFesInBuild] fix issues #210

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

View File

@ -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() {