Skip to content

Commit

Permalink
Upgrade to parcel 2.13.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jlfwong committed Jan 14, 2025
1 parent 146477a commit f6975f0
Show file tree
Hide file tree
Showing 7 changed files with 24,829 additions and 19,879 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
.cache
.parcel-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 src="../src/speedscope.tsx"></script>
<script type="module" src="../src/speedscope.tsx"></script>
</body>

</html>
44,695 changes: 24,823 additions & 19,872 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-bundler": "1.12.4",
"parcel": "2.13.3",
"preact": "10.4.1",
"prettier": "3.1.1",
"protobufjs": "6.8.8",
Expand Down
1 change: 1 addition & 0 deletions sample/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module '*.txt'
3 changes: 1 addition & 2 deletions src/gl/graphics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
// NOTE: This file intentionally has no dependencies.

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

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

declare function require(x: string): any
const exampleProfileURL = require('../../sample/profiles/stackcollapse/perf-vertx-stacks-01-collapsed-all.txt')
import exampleProfileURL from 'url:../../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 f6975f0

Please sign in to comment.