mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-01 19:38:24 +08:00
exported db snapshot globally for debugging in the browser
This commit is contained in:
parent
b879a5967d
commit
1679e69123
3 changed files with 7 additions and 0 deletions
|
@ -101,6 +101,7 @@ const globalSrc = [
|
|||
"./src/js/settings.js",
|
||||
"./src/js/account.js",
|
||||
"./src/js/script.js",
|
||||
"./src/js/exports.js",
|
||||
];
|
||||
|
||||
//concatenates and lints legacy js files and writes the output to dist/gen/index.js
|
||||
|
|
4
src/js/exports.js
Normal file
4
src/js/exports.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
//this file should be concatenated with the legacy js files
|
||||
|
||||
//these exports are just for debugging in the browser
|
||||
global.snapshot = db_getSnapshot;
|
|
@ -1,3 +1,5 @@
|
|||
//this file should be concatenated at the top of the legacy js files
|
||||
|
||||
import {
|
||||
db_getSnapshot,
|
||||
db_setSnapshot,
|
||||
|
|
Loading…
Reference in a new issue