(id)
| 82 | if (id === DevtoolsModule.Main) return DevtoolsModule.Main |
| 83 | }, |
| 84 | load(id) { |
| 85 | // Inject runtime debugger script |
| 86 | if (id !== DevtoolsModule.Main) return |
| 87 | |
| 88 | let code = `import "${DevtoolsModule.Setup}";` |
| 89 | |
| 90 | if (options.locator) { |
| 91 | code += `\nimport { setLocatorOptions } from "${DevtoolsModule.Setup}"; |
| 92 | setLocatorOptions(${JSON.stringify(options.locator)});` |
| 93 | } |
| 94 | |
| 95 | return code |
| 96 | }, |
| 97 | async transform(source, id, transformOptions) { |
| 98 | |
| 99 | // production and server should be disabled |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…