* Automatically add the target of an alias to it's dependency list.
()
| 291 | * Automatically add the target of an alias to it's dependency list. |
| 292 | */ |
| 293 | addAliasDependencies() { |
| 294 | const aliases = {}; |
| 295 | for (const [key, value] of Object.entries(this.library)) { |
| 296 | if (this.isAlias(value)) { |
| 297 | aliases[key] = value; |
| 298 | } |
| 299 | } |
| 300 | for (const [key, value] of Object.entries(aliases)) { |
| 301 | (this.library[key + '__deps'] ??= []).push(value); |
| 302 | } |
| 303 | }, |
| 304 | |
| 305 | executeJSLibraryFile(filename, contents) { |
| 306 | const userLibraryProxy = new Proxy(this.library, { |