Skip to content

Commit

Permalink
Revert "Upgrade to parcel 2.13.3 (jlfwong#492)"
Browse files Browse the repository at this point in the history
This reverts commit c7be11d.
  • Loading branch information
cerisier committed Jan 14, 2025
1 parent b7a2788 commit 6ffa4d3
Show file tree
Hide file tree
Showing 7 changed files with 16,268 additions and 21,218 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
.parcel-cache
.cache
dist
.idea
coverage
Expand Down
2 changes: 1 addition & 1 deletion assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
</head>

<body>
<script type="module" src="../src/speedscope.tsx"></script>
<script src="../src/speedscope.tsx"></script>
</body>

</html>
37,473 changes: 16,261 additions & 21,212 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"jsverify": "0.8.3",
"jszip": "3.1.5",
"pako": "1.0.6",
"parcel": "2.13.3",
"parcel-bundler": "1.12.4",
"preact": "10.4.1",
"prettier": "3.1.1",
"process": "^0.11.10",
Expand Down
1 change: 0 additions & 1 deletion sample/types.d.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/gl/graphics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
declare const process: any

// Dependencies & polyfills for import from skew
const RELEASE = process.env.NODE_ENV === 'production'
const RELEASE =
typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'production'

function assert(condition: boolean) {
if (!RELEASE) {
Expand Down
3 changes: 2 additions & 1 deletion src/views/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ async function importFromFileSystemDirectoryEntry(entry: FileSystemDirectoryEntr
return (await importModule).importFromFileSystemDirectoryEntry(entry)
}

import exampleProfileURL from 'url:../../sample/profiles/stackcollapse/perf-vertx-stacks-01-collapsed-all.txt'
declare function require(x: string): any
const exampleProfileURL = require('../../sample/profiles/stackcollapse/perf-vertx-stacks-01-collapsed-all.txt')

function isFileSystemDirectoryEntry(entry: FileSystemEntry): entry is FileSystemDirectoryEntry {
return entry != null && entry.isDirectory
Expand Down

0 comments on commit 6ffa4d3

Please sign in to comment.