astro-strip-whitespace 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,9 +9,9 @@ Under the hood, this prepends the Vite plugin from [`unplugin-strip-whitespace`]
9
9
  ```bash
10
10
  astro add astro-strip-whitespace
11
11
 
12
- # pnpm add -D astro-strip-whitespace
13
- # npm i -D astro-strip-whitespace
14
- # yarn add -D astro-strip-whitespace
12
+ # or: pnpm add -D astro-strip-whitespace
13
+ # or: npm i -D astro-strip-whitespace
14
+ # or: yarn add -D astro-strip-whitespace
15
15
  ```
16
16
 
17
17
  ## Usage
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;iBAIS,oBAAA,WACG,yBACT"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;iBAIS,oBAAA,CACP,OAAA,GAAU,sBAAA,GACT,gBAAA"}
package/dist/index.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import viteStripWhitespace from "unplugin-strip-whitespace/vite";
2
-
3
2
  //#region src/index.ts
4
3
  function astroStripWhitespace(options) {
5
4
  return {
@@ -11,8 +10,7 @@ function astroStripWhitespace(options) {
11
10
  } }
12
11
  };
13
12
  }
14
- var src_default = astroStripWhitespace;
15
-
16
13
  //#endregion
17
- export { src_default as default };
14
+ export { astroStripWhitespace as default };
15
+
18
16
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { AstroIntegration } from \"astro\";\nimport type { StripWhitespaceOptions } from \"unplugin-strip-whitespace\";\nimport viteStripWhitespace from \"unplugin-strip-whitespace/vite\";\n\nfunction astroStripWhitespace(\n options?: StripWhitespaceOptions,\n): AstroIntegration {\n return {\n name: \"astro-strip-whitespace\",\n hooks: {\n \"astro:config:done\": ({ config }) => {\n config.vite ??= {};\n config.vite.plugins ??= [];\n config.vite.plugins.unshift(viteStripWhitespace(options));\n },\n },\n } satisfies AstroIntegration;\n}\n\nexport default astroStripWhitespace;\n"],"mappings":";;;AAIA,SAAS,qBACP,SACkB;AAClB,QAAO;EACL,MAAM;EACN,OAAO,EACL,sBAAsB,EAAE,aAAa;AACnC,UAAO,SAAS,EAAE;AAClB,UAAO,KAAK,YAAY,EAAE;AAC1B,UAAO,KAAK,QAAQ,QAAQ,oBAAoB,QAAQ,CAAC;KAE5D;EACF;;AAGH,kBAAe"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { AstroIntegration } from \"astro\";\nimport type { StripWhitespaceOptions } from \"unplugin-strip-whitespace\";\nimport viteStripWhitespace from \"unplugin-strip-whitespace/vite\";\n\nfunction astroStripWhitespace(\n options?: StripWhitespaceOptions,\n): AstroIntegration {\n return {\n name: \"astro-strip-whitespace\",\n hooks: {\n \"astro:config:done\": ({ config }) => {\n config.vite ??= {};\n config.vite.plugins ??= [];\n config.vite.plugins.unshift(viteStripWhitespace(options));\n },\n },\n } satisfies AstroIntegration;\n}\n\nexport default astroStripWhitespace;\n"],"mappings":";;AAIA,SAAS,qBACP,SACkB;AAClB,QAAO;EACL,MAAM;EACN,OAAO,EACL,sBAAsB,EAAE,aAAa;AACnC,UAAO,SAAS,EAAE;AAClB,UAAO,KAAK,YAAY,EAAE;AAC1B,UAAO,KAAK,QAAQ,QAAQ,oBAAoB,QAAQ,CAAC;KAE5D;EACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-strip-whitespace",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Astro integration that strips inter-node whitespace in Astro and Svelte templates.",
5
5
  "license": "MIT",
6
6
  "author": "SegaraRai",
@@ -35,17 +35,18 @@
35
35
  "LICENSE"
36
36
  ],
37
37
  "dependencies": {
38
- "unplugin-strip-whitespace": "0.2.0"
38
+ "unplugin-strip-whitespace": "0.2.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@arethetypeswrong/core": "^0.18.2",
42
- "@types/node": "^25.0.6",
43
- "astro": "^5.16.8",
44
- "prettier": "^3.7.4",
42
+ "@types/node": "^25.5.0",
43
+ "astro": "^6.1.1",
44
+ "prettier": "^3.8.1",
45
45
  "prettier-plugin-organize-imports": "^4.3.0",
46
- "tsdown": "^0.19.0",
46
+ "tsdown": "^0.21.6",
47
47
  "typescript": "^5.9.3",
48
- "vitest": "^4.0.16",
48
+ "vite": "^7.3.1",
49
+ "vitest": "^4.1.2",
49
50
  "strip-whitespace-wasm": "0.1.0"
50
51
  },
51
52
  "peerDependencies": {
@@ -53,6 +54,7 @@
53
54
  },
54
55
  "scripts": {
55
56
  "build": "tsdown",
56
- "test": "vitest run"
57
+ "test": "vitest",
58
+ "typecheck": "tsc --noEmit"
57
59
  }
58
60
  }