From dc7a795122e1fd3c04341add88de7445a3c7fc2c Mon Sep 17 00:00:00 2001 From: Henry Schimke Date: Fri, 20 Dec 2024 18:55:21 +0000 Subject: [PATCH] udpate for breaking webpack breaking issue --- Cargo.toml | 3 ++- examples/webpack+js/index.html | 2 +- examples/webpack+js/package-lock.json | 17 +++++++++-------- examples/webpack+js/package.json | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f550f6a..7c58ac8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rxing-wasm" -version = "0.3.2" +version = "0.3.3" edition = "2021" description = "wasm bindings for rxing to provide commong barcode operations (decode/encode)" repository = "https://github.com/rxing-core/rxing-wasm" @@ -36,6 +36,7 @@ wasm-bindgen-test = "0.3.34" # Tell `rustc` to optimize for small code size. opt-level = "s" lto = "fat" +strip = true [package.metadata.wasm-pack.profile.release] wasm-opt = false diff --git a/examples/webpack+js/index.html b/examples/webpack+js/index.html index f4e77a9..adc34d4 100644 --- a/examples/webpack+js/index.html +++ b/examples/webpack+js/index.html @@ -106,4 +106,4 @@

RXing - Decode Barcodes

- + diff --git a/examples/webpack+js/package-lock.json b/examples/webpack+js/package-lock.json index c69517c..ecf14e5 100644 --- a/examples/webpack+js/package-lock.json +++ b/examples/webpack+js/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "license": "(MIT OR Apache-2.0)", "dependencies": { - "rxing-wasm": "0.3.1" + "rxing-wasm": "0.3.3" }, "bin": { "create-wasm-app": ".bin/create-wasm-app.js" @@ -25,6 +25,11 @@ "node": ">=18.0.0" } }, + "../../pkg": { + "name": "rxing-wasm", + "version": "0.3.3", + "license": "Apache 2.0" + }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", @@ -3003,10 +3008,8 @@ } }, "node_modules/rxing-wasm": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/rxing-wasm/-/rxing-wasm-0.3.1.tgz", - "integrity": "sha512-ubeVPOp0ahIfanZHt6743GQ4FDJijhoskEea6jDbHR+Pd3373+vUQv5HvALA88gYwNMsWWJ0qcWoVBVnXXZRew==", - "license": "Apache 2.0" + "resolved": "../../pkg", + "link": true }, "node_modules/safe-buffer": { "version": "5.2.1", @@ -6458,9 +6461,7 @@ } }, "rxing-wasm": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/rxing-wasm/-/rxing-wasm-0.3.1.tgz", - "integrity": "sha512-ubeVPOp0ahIfanZHt6743GQ4FDJijhoskEea6jDbHR+Pd3373+vUQv5HvALA88gYwNMsWWJ0qcWoVBVnXXZRew==" + "version": "file:../../pkg" }, "safe-buffer": { "version": "5.2.1", diff --git a/examples/webpack+js/package.json b/examples/webpack+js/package.json index 7e51262..09de847 100644 --- a/examples/webpack+js/package.json +++ b/examples/webpack+js/package.json @@ -23,6 +23,6 @@ "node" : ">=18.0.0" }, "dependencies": { - "rxing-wasm": "0.3.2" + "rxing-wasm": "0.3.3" } }