Very basic version working
This commit is contained in:
+1
-1
@@ -166,7 +166,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src="../src/speedscope.tsx"></script>
|
||||
<script src="speedscope.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Generated
+552
-11328
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user