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

Co-authored-by: neo.st.fox <neo.st.fox@outlook.com>
This commit is contained in:
Shaobo Lua 2024-02-21 19:33:39 +08:00 committed by GitHub
parent cca6223477
commit 3de08bc024
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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