mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
Co-authored-by: neo.st.fox <neo.st.fox@outlook.com>
This commit is contained in:
parent
cca6223477
commit
3de08bc024
@ -1,9 +1,9 @@
|
|||||||
// my-module/register.js
|
// my-module/register.js
|
||||||
|
import { join } from 'node:path';
|
||||||
import { addHook } from 'pirates';
|
import { addHook } from 'pirates';
|
||||||
|
|
||||||
function matcher(filename) {
|
function matcher(filename) {
|
||||||
if (filename.endsWith('/fes/lib/index.js')) return true;
|
return filename.endsWith(join(...['fes', 'lib', 'index.js']));
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function hackFesInBuild() {
|
export function hackFesInBuild() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user