Skip to content

Commit

Permalink
fix: add init to ts types
Browse files Browse the repository at this point in the history
  • Loading branch information
DeMoorJasper committed Jun 19, 2022
1 parent 2ea89a5 commit d84c22d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,8 @@ export default class SourceMap {
delete(): void;
stringify(options: SourceMapStringifyOptions): Promise<string | VLQMap>;
}

/**
* Only used by the wasm version, await this to ensure the wasm binary is loaded
*/
export const init: Promise<void>

1 comment on commit d84c22d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parcel sourcemap benchmark

Benchmark suite Current: d84c22d Previous: 2ea89a5 Ratio
consume#consume buffer 72015 ops/sec (±1.2e+2%) 108609 ops/sec (±14%) 1.51
consume#consume JS Mappings 59322 ops/sec (±5.8%) 32028 ops/sec (±37%) 0.54
consume#consume vlq mappings 55847 ops/sec (±15%) 36766 ops/sec (±14%) 0.66
serialize#Save buffer 404 ops/sec (±0.76%) 347 ops/sec (±2.8%) 0.86
serialize#Serialize to vlq 290 ops/sec (±0.79%) 251 ops/sec (±2.9%) 0.87
modify#negative column offset 155714 ops/sec (±24%) 80727 ops/sec (±18%) 0.52
modify#positive column offset 141262 ops/sec (±30%) 72314 ops/sec (±23%) 0.51
modify#negative line offset 49034 ops/sec (±5.7%) 17698 ops/sec (±5.5%) 0.36
modify#positive line offset 48407 ops/sec (±7.8%) 18893 ops/sec (±18%) 0.39
append#addSourceMap 229 ops/sec (±1.5%) 176 ops/sec (±6.8%) 0.77

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.