vite-plugin-wasm-pack
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -114,3 +114,8 @@ "use strict"; | ||
const jsName = crateName.replace(/\-/g, '_') + '.js'; | ||
const jsPath = path_1.default.join('./node_modules', crateName, jsName); | ||
/** | ||
* if use node module and name is '@group/test' | ||
* cratePath === '@group/test' | ||
* crateName === 'test' | ||
*/ | ||
const jsPath = path_1.default.join('./node_modules', isNodeModule ? cratePath : crateName, jsName); | ||
const regex = /input = new URL\('(.+)'.+;/g; | ||
@@ -117,0 +122,0 @@ let code = fs_extra_1.default.readFileSync(path_1.default.resolve(jsPath), { encoding: 'utf-8' }); |
{ | ||
"name": "vite-plugin-wasm-pack", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Vite plugin for rust using wasm-pack 🦀", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
14286
197