@wasm-fmt/shfmt 0.2.4 → 0.2.5

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
@@ -69,6 +69,12 @@ await init();
69
69
  // ...
70
70
  ```
71
71
 
72
+ Or use the `./bundler` entry with [vite-plugin-wasm](https://www.npmjs.com/package/vite-plugin-wasm)
73
+
74
+ ```javascript
75
+ import { format } from "@wasm-fmt/shfmt/bundler";
76
+ ```
77
+
72
78
  ## Entry Points
73
79
 
74
80
  - `.` - Auto-detects environment (Node.js uses node, Webpack uses bundler, default is ESM)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wasm-fmt/shfmt",
3
3
  "description": "A wasm based shell script formatter",
4
4
  "author": "magic-akari <akari.ccino@gmail.com>",
5
- "version": "0.2.4",
5
+ "version": "0.2.5",
6
6
  "license": "MIT",
7
7
  "keywords": [
8
8
  "wasm",
package/shfmt_vite.js CHANGED
@@ -1,6 +1,5 @@
1
1
  /* @ts-self-types="./shfmt_web.d.ts" */
2
2
  import init from "./shfmt.wasm?init";
3
- import initAsync from "./shfmt_web.js";
4
3
  import { format as _format } from "./shfmt_binding.js";
5
4
 
6
5
  let wasm, wasmModule;