18 lines
2.2 KiB
JavaScript
18 lines
2.2 KiB
JavaScript
"use strict";
|
|
const extensionKeys = Object.keys(require.extensions);
|
|
const realExtensions = {};
|
|
for (const ext of extensionKeys) {
|
|
realExtensions[ext] = require.extensions[ext];
|
|
require.extensions[ext] = (mod, filename) => {
|
|
// @ts-ignore
|
|
const hook = global.customExtensionHook;
|
|
if (hook)
|
|
hook();
|
|
else
|
|
realExtensions[ext](mod, filename);
|
|
};
|
|
}
|
|
// eslint-disable-next-line
|
|
require = require('@miherlosev/esm')(module);
|
|
module.exports = require('./service');
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS1sb2FkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2VydmljZXMvY29tcGlsZXIvc2VydmljZS1sb2FkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE1BQU0sYUFBYSxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxDQUFDO0FBRXRELE1BQU0sY0FBYyxHQUFnQyxFQUFFLENBQUM7QUFFdkQsS0FBSyxNQUFNLEdBQUcsSUFBSSxhQUFhLEVBQUU7SUFDN0IsY0FBYyxDQUFDLEdBQUcsQ0FBQyxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFDLENBQUM7SUFFOUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsRUFBRSxRQUFRLEVBQUUsRUFBRTtRQUN4QyxhQUFhO1FBQ2IsTUFBTSxJQUFJLEdBQUcsTUFBTSxDQUFDLG1CQUFtQixDQUFDO1FBRXhDLElBQUksSUFBSTtZQUNKLElBQUksRUFBRSxDQUFDOztZQUVQLGNBQWMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxHQUFHLEVBQUUsUUFBUS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