Very basic version working

This commit is contained in:
Jamie Wong
2025-01-14 22:09:54 -08:00
parent 911feb609b
commit 53c8e8aafd
5 changed files with 561 additions and 11331 deletions
+1 -1
View File
@@ -166,7 +166,7 @@
</head>
<body>
<script src="../src/speedscope.tsx"></script>
<script src="speedscope.js"></script>
</body>
</html>
+552 -11328
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -16,7 +16,7 @@
"coverage": "npm run jest -- --coverage",
"typecheck": "tsc --noEmit",
"test": "./scripts/ci.sh",
"serve": "parcel assets/index.html --open --no-autoinstall"
"serve": "esbuild --serve --bundle src/speedscope.tsx --loader:.txt=file --outdir=assets --servedir=assets"
},
"files": [
"bin/cli.js",
@@ -45,7 +45,6 @@
"jsverify": "0.8.3",
"jszip": "3.1.5",
"pako": "1.0.6",
"parcel-bundler": "1.12.4",
"preact": "10.4.1",
"prettier": "3.1.1",
"protobufjs": "6.8.8",
@@ -77,6 +76,7 @@
]
},
"dependencies": {
"esbuild": "0.18.9",
"open": "7.2.0"
}
}
+3
View File
@@ -66,6 +66,8 @@ declare const module: any
if (process.env.NODE_ENV === 'development') {
;(window as any)['Atom'] = AtomDev = {}
/*
TODO(jlfwong): Fix this
module.hot.dispose(() => {
if (AtomDev) {
hotReloadStash = new Map()
@@ -76,6 +78,7 @@ if (process.env.NODE_ENV === 'development') {
;(window as any)['Atom_hotReloadStash'] = hotReloadStash
})
*/
hotReloadStash = (window as any)['Atom_hotReloadStash'] || null
}
+3
View File
@@ -4,6 +4,8 @@ import {ThemeProvider} from './views/themes/theme'
console.log(`speedscope v${require('../package.json').version}`)
/*
TODO(jlfwong): Fix this
declare const module: any
if (module.hot) {
module.hot.dispose(() => {
@@ -12,6 +14,7 @@ if (module.hot) {
})
module.hot.accept()
}
*/
render(
<ThemeProvider>