deno.land / x / lume@v2.1.4 / tests / source_maps.test.ts

source_maps.test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { assertSiteSnapshot, build, getSite } from "./utils.ts";import sass from "../plugins/sass.ts";import postcss from "../plugins/postcss.ts";import lightningcss from "../plugins/lightningcss.ts";import sourceMaps from "../plugins/source_maps.ts";import esbuild from "../plugins/esbuild.ts";import terser from "../plugins/terser.ts";
Deno.test("Source maps from CSS files", async (t) => { const site = getSite({ src: "sass", });
site.use(sass()); site.use(postcss()); site.use(lightningcss({ includes: false, })); site.use(sourceMaps());
await build(site); await assertSiteSnapshot(t, site);});
Deno.test("Source maps from Js files", { sanitizeOps: false, sanitizeResources: false,}, async (t) => { const site = getSite({ src: "esbuild", });
site.use(esbuild()); site.use(terser()); site.use(sourceMaps());
await build(site); await assertSiteSnapshot(t, site);});
lume

Version Info

Tagged at
7 months ago