lambda-live-debugger 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -228,9 +228,10 @@ export class CdkFramework {
|
|
|
228
228
|
banner: {
|
|
229
229
|
js: [
|
|
230
230
|
`import { createRequire as topLevelCreateRequire } from 'module';`,
|
|
231
|
+
`import.meta.url = 'file:///${dirname}/cdkFrameworkWorker.mjs';`,
|
|
231
232
|
`global.require = global.require ?? topLevelCreateRequire(import.meta.url);`,
|
|
232
233
|
`import { fileURLToPath as topLevelFileUrlToPath, URL as topLevelURL } from "url"`,
|
|
233
|
-
`global.__dirname =
|
|
234
|
+
`global.__dirname = global.__dirname ?? topLevelFileUrlToPath(new topLevelURL(".", import.meta.url))`,
|
|
234
235
|
].join('\n'),
|
|
235
236
|
},
|
|
236
237
|
}
|