diff --git a/bunfig.toml b/bunfig.toml deleted file mode 100644 index d20eff3..0000000 --- a/bunfig.toml +++ /dev/null @@ -1,2 +0,0 @@ -[test] -preload = "./happydom.ts" diff --git a/dist/index-umd-web.js b/dist/index-umd-web.js index 15e15b3..85f0bdb 100644 --- a/dist/index-umd-web.js +++ b/dist/index-umd-web.js @@ -654,7 +654,7 @@ } } toUrl() { - // /*# sourceMappingURL=${url} */ + // sourceMappingURL = ${url} return `data:application/json,${encodeURIComponent(JSON.stringify(this.toJSON()))}`; } toJSON() { diff --git a/dist/index.cjs b/dist/index.cjs index b2911f1..2463c51 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -652,7 +652,7 @@ class SourceMap { } } toUrl() { - // /*# sourceMappingURL=${url} */ + // sourceMappingURL = ${url} return `data:application/json,${encodeURIComponent(JSON.stringify(this.toJSON()))}`; } toJSON() { diff --git a/dist/lib/renderer/sourcemap/sourcemap.js b/dist/lib/renderer/sourcemap/sourcemap.js index 89d4455..78aea23 100644 --- a/dist/lib/renderer/sourcemap/sourcemap.js +++ b/dist/lib/renderer/sourcemap/sourcemap.js @@ -33,7 +33,7 @@ class SourceMap { } } toUrl() { - // /*# sourceMappingURL=${url} */ + // sourceMappingURL = ${url} return `data:application/json,${encodeURIComponent(JSON.stringify(this.toJSON()))}`; } toJSON() { diff --git a/happydom.ts b/happydom.ts deleted file mode 100644 index 9cae201..0000000 --- a/happydom.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { GlobalRegistrator } from "@happy-dom/global-registrator"; - -GlobalRegistrator.register(); \ No newline at end of file diff --git a/package.json b/package.json index 33fff09..bb37638 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "scripts": { "build": "rollup -c", "test": "web-test-runner \"test/**/*.web.spec.js\" --node-resolve --root-dir=.; mocha --reporter-options='maxDiffSize=1801920' \"test/**/*.node.spec.js\"", - "test:cov": "web-test-runner \"test/**/*.web.spec.js\" --node-resolve --root-dir=. --coverage; c8 --reporter=html --reporter=text --reporter=json-summary mocha --reporter-options='maxDiffSize=1801920' \"test/**/*.spec.js\"", + "test:cov": "c8 --reporter=html --reporter=text --reporter=json-summary mocha --reporter-options='maxDiffSize=1801920' \"test/**/*.node.spec.js\"", + "test:web-cov": "web-test-runner \"test/**/*.web.spec.js\" --node-resolve --root-dir=. --coverage", "profile": "node --inspect-brk test/inspect.mjs", "debug": "web-test-runner \"test/**/*.web.spec.js\" --manual --open --node-resolve --root-dir=." }, @@ -43,7 +44,6 @@ "homepage": "https://github.com/tbela99/css-parser#readme", "devDependencies": { "@esm-bundle/chai": "^4.3.4-fix.0", - "@happy-dom/global-registrator": "^12.8.0", "@rollup/plugin-commonjs": "^25.0.4", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^15.1.0", diff --git a/src/lib/renderer/sourcemap/sourcemap.ts b/src/lib/renderer/sourcemap/sourcemap.ts index 6b89df2..09442e5 100644 --- a/src/lib/renderer/sourcemap/sourcemap.ts +++ b/src/lib/renderer/sourcemap/sourcemap.ts @@ -53,7 +53,7 @@ export class SourceMap { toUrl() { - // /*# sourceMappingURL=${url} */ + // sourceMappingURL = ${url} return `data:application/json,${encodeURIComponent(JSON.stringify(this.toJSON()))}`; }