sdfsdfs
This commit is contained in:
13
node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileHooks.mjs
generated
vendored
Normal file
13
node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileHooks.mjs
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
const findHooksRx = /\{\{(.*?)\}\}/g;
|
||||
function compileHooks(programSrc) {
|
||||
const parts = {};
|
||||
const partMatches = programSrc.match(findHooksRx)?.map((hook) => hook.replace(/[{()}]/g, "")) ?? [];
|
||||
partMatches.forEach((hook) => {
|
||||
parts[hook] = [];
|
||||
});
|
||||
return parts;
|
||||
}
|
||||
|
||||
export { compileHooks, findHooksRx };
|
||||
//# sourceMappingURL=compileHooks.mjs.map
|
Reference in New Issue
Block a user