diff --git a/src/server/headed-mode-plugin.js b/src/server/headed-mode-plugin.js index 684c5f8b..f1fe755f 100644 --- a/src/server/headed-mode-plugin.js +++ b/src/server/headed-mode-plugin.js @@ -11,7 +11,7 @@ export function headedMode({ open, watch, pattern }) { async transform(context) { if ((watch || open) && files.includes(context.path.slice(1))) { await delay(0); - return `import '@brightspace-ui/testing/pause.js';\ndebugger;\n${context.body}`; + return `debugger;\nimport '@brightspace-ui/testing/pause.js';\n${context.body}`; } } }; diff --git a/src/server/pause.js b/src/server/pause.js index 0293b784..569144cd 100644 --- a/src/server/pause.js +++ b/src/server/pause.js @@ -3,11 +3,11 @@ window.d2lTestPause = new Promise(r => window.d2lTestStart = r); const controls = `