Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-wasm-pack

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-wasm-pack - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

2

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc