fix: extensions

This commit is contained in:
cha0s 2024-01-10 06:43:26 -06:00
parent c001be6647
commit 7b38b34b1f

View File

@ -112,7 +112,7 @@ exports.executable = () => ([
exports.externals = nodeExternals;
exports.regexFromExtensions = (exts) => (
new RegExp(String.raw`(?:${exts.map((ext) => ext.replace('.', '\\.')).join('|')})$`)
new RegExp(String.raw`(?:${exts.map((ext) => ext.replaceAll('.', '\\.')).join('|')})$`)
);
exports.webpack = webpack;