Skip to content

Commit

Permalink
fix sourcemap test #17
Browse files Browse the repository at this point in the history
  • Loading branch information
tbela99 committed Sep 21, 2023
1 parent 6d434b9 commit 63058d8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 31 deletions.
13 changes: 6 additions & 7 deletions dist/index-umd-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,13 +657,12 @@
return `data:application/json,${encodeURIComponent(JSON.stringify(this.toJSON()))}`;
}
toJSON() {
// console.error(this.#line);
// console.error([...this.#map.keys()]);
console.error({
version: this.#version,
sources: this.#sources.slice(),
mappings: [...this.#map.values()]
});
// console.error({
//
// version: this.#version,
// sources: this.#sources.slice(),
// mappings: [...this.#map.values()]
// });
const mappings = [];
let i = 0;
for (; i <= this.#line; i++) {
Expand Down
13 changes: 6 additions & 7 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -655,13 +655,12 @@ class SourceMap {
return `data:application/json,${encodeURIComponent(JSON.stringify(this.toJSON()))}`;
}
toJSON() {
// console.error(this.#line);
// console.error([...this.#map.keys()]);
console.error({
version: this.#version,
sources: this.#sources.slice(),
mappings: [...this.#map.values()]
});
// console.error({
//
// version: this.#version,
// sources: this.#sources.slice(),
// mappings: [...this.#map.values()]
// });
const mappings = [];
let i = 0;
for (; i <= this.#line; i++) {
Expand Down
13 changes: 6 additions & 7 deletions dist/lib/renderer/sourcemap/sourcemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ class SourceMap {
return `data:application/json,${encodeURIComponent(JSON.stringify(this.toJSON()))}`;
}
toJSON() {
// console.error(this.#line);
// console.error([...this.#map.keys()]);
console.error({
version: this.#version,
sources: this.#sources.slice(),
mappings: [...this.#map.values()]
});
// console.error({
//
// version: this.#version,
// sources: this.#sources.slice(),
// mappings: [...this.#map.values()]
// });
const mappings = [];
let i = 0;
for (; i <= this.#line; i++) {
Expand Down
16 changes: 6 additions & 10 deletions src/lib/renderer/sourcemap/sourcemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,12 @@ export class SourceMap {

toJSON(): SourceMapObject
{

// console.error(this.#line);
// console.error([...this.#map.keys()]);

console.error({

version: this.#version,
sources: this.#sources.slice(),
mappings: [...this.#map.values()]
});
// console.error({
//
// version: this.#version,
// sources: this.#sources.slice(),
// mappings: [...this.#map.values()]
// });

const mappings: string[] = [];

Expand Down

0 comments on commit 63058d8

Please sign in to comment.