vite-plugin-wasm-pack
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -114,3 +114,3 @@ "use strict"; | ||
const jsName = crateName.replace(/\-/g, '_') + '.js'; | ||
const jsPath = path_1.default.join('./node_modules', crateName, jsName); | ||
const jsPath = path_1.default.join('./node_modules', cratePath, jsName); | ||
const regex = /input = new URL\('(.+)'.+;/g; | ||
@@ -117,0 +117,0 @@ let code = fs_extra_1.default.readFileSync(path_1.default.resolve(jsPath), { encoding: 'utf-8' }); |
{ | ||
"name": "vite-plugin-wasm-pack", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Vite plugin for rust using wasm-pack 🦀", | ||
@@ -38,4 +38,4 @@ "main": "dist/index.js", | ||
"prettier": "^2.4.1", | ||
"typescript": "^4.4.3", | ||
"vite": "^2.6.5" | ||
"typescript": "^4.4.4", | ||
"vite": "^2.6.13" | ||
}, | ||
@@ -42,0 +42,0 @@ "dependencies": { |
@@ -1,7 +0,19 @@ | ||
# 🦀 vite-plugin-wasm-pack | ||
<p align="center"> | ||
<img width="404" src="./banner.png" alt="vite + wasm pic"/> | ||
</p> | ||
<h1 align="center"> | ||
🦀 Vite plugin for rust [wasm-pack](https://github.com/rustwasm/wasm-pack), it's simple. | ||
</h1> | ||
<h4 align="center"> | ||
[![npm](https://img.shields.io/npm/v/vite-plugin-wasm-pack.svg)](https://www.npmjs.com/package/vite-plugin-wasm-pack) | ||
[![npm](https://img.shields.io/npm/dt/vite-plugin-wasm-pack)](https://www.npmjs.com/package/vite-plugin-wasm-pack) | ||
[![npm](https://img.shields.io/github/license/nshen/vite-plugin-wasm-pack)](https://www.npmjs.com/package/vite-plugin-wasm-pack) | ||
</h4> | ||
🦀 Vite plugin for rust [wasm-pack](https://github.com/rustwasm/wasm-pack), it's simple. | ||
## Quick start | ||
@@ -126,3 +138,4 @@ | ||
- Quick starter is in [./example](./example) folder. | ||
- Game of life [[source]](https://github.com/nshen/vite-wasm-game-of-life) [[demo]](http://github.nshen.net/vite-wasm-game-of-life/dist/) | ||
- Game of life [[demo]](http://github.nshen.net/vite-wasm-game-of-life/dist/) [[source]](https://github.com/nshen/vite-wasm-game-of-life) | ||
- Photon-vite [[demo]](http://github.nshen.net/photon-vite/) [[source]](https://github.com/nshen/photon-vite) | ||
@@ -129,0 +142,0 @@ ## License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12969
144