Compare commits

...

4 Commits

Author SHA1 Message Date
semantic-release-bot b7f7235fe0 chore(release): 0.0.2-develop.6 [skip ci]
## [0.0.2-develop.6](https://git.lumeweb.com/LumeWeb/kernel-swarm/compare/v0.0.2-develop.5...v0.0.2-develop.6) (2023-07-08)

### Bug Fixes

* need to patch our own sdk for bundling so we don't need to put the hack in directly ([10170bd](10170bd673))
2023-07-08 08:05:58 +00:00
Derrick Hammer 8008bfe98d
Merge remote-tracking branch 'origin/develop' into develop 2023-07-08 04:04:02 -04:00
Derrick Hammer 10170bd673
fix: need to patch our own sdk for bundling so we don't need to put the hack in directly 2023-07-08 04:03:54 -04:00
Derrick Hammer cb3421b662
refactor: move to vite bundler 2023-07-08 04:03:18 -04:00
6 changed files with 996 additions and 1557 deletions

View File

@ -3,7 +3,12 @@
"@lumeweb/presetter-kernel-module-preset"
],
"config": {
"official": true,
"browser": true
"vite": {
"resolve": {
"alias": {
"sodium-universal": "@screamingvoid/sodium-universal"
}
}
}
}
}

View File

@ -1,3 +1,10 @@
## [0.0.2-develop.6](https://git.lumeweb.com/LumeWeb/kernel-swarm/compare/v0.0.2-develop.5...v0.0.2-develop.6) (2023-07-08)
### Bug Fixes
* need to patch our own sdk for bundling so we don't need to put the hack in directly ([10170bd](https://git.lumeweb.com/LumeWeb/kernel-swarm/commit/10170bd673ccd4070c2ab9e0b444cba81080311d))
## [0.0.2-develop.5](https://git.lumeweb.com/LumeWeb/kernel-swarm/compare/v0.0.2-develop.4...v0.0.2-develop.5) (2023-07-05)

2450
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,14 +10,14 @@
},
"scripts": {
"prepare": "presetter bootstrap",
"build": "shx touch nop.js; run build",
"build": "run build",
"semantic-release": "semantic-release",
"postinstall": "patch-package"
},
"type": "module",
"dependencies": {
"@lumeweb/hyperswarm-web": "0.0.2-develop.7",
"@lumeweb/libkernel": "^0.1.0-develop.13",
"@lumeweb/libkernel": "^0.1.0-develop.14",
"@lumeweb/rpc": "0.0.2-develop.1",
"@noble/curves": "^1.1.0",
"@peculiar/webcrypto": "^1.4.3",
@ -31,13 +31,13 @@
"protomux": "^3.5.0"
},
"devDependencies": {
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.29",
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.38",
"@rollup/plugin-alias": "^5.0.0",
"@types/b4a": "^1.6.0",
"crypto-browserify": "^3.12.0",
"patch-package": "^7.0.0",
"presetter": "*"
},
"version": "0.0.2-develop.5",
"version": "0.0.2-develop.6",
"readme": "ERROR: No README data found!"
}

View File

@ -0,0 +1,13 @@
diff --git a/node_modules/@lumeweb/libportal/lib/wasm.mjs b/node_modules/@lumeweb/libportal/lib/wasm.mjs
index 32726cf..6fdc525 100644
--- a/node_modules/@lumeweb/libportal/lib/wasm.mjs
+++ b/node_modules/@lumeweb/libportal/lib/wasm.mjs
@@ -6,7 +6,7 @@ export default async function (imports) {
const wasm = await fs.readFile(wasmPath);
return (await WebAssembly.instantiate(wasm, imports)).instance;
}
- let wasm = await import("./wasm/bao.wasm");
+ let wasm = await import("./wasm/bao.wasm?init");
wasm = wasm.default || wasm;
return (await wasm(imports)).instance;
}

View File

@ -1,66 +0,0 @@
// @ts-nocheck
import * as import0 from "@rollup/plugin-json";
import * as import1 from "@rollup/plugin-node-resolve";
import * as import2 from "@rollup/plugin-commonjs";
import * as import3 from "@rollup/plugin-graphql";
import * as import4 from "@rollup/plugin-image";
import * as import5 from "@rollup/plugin-yaml";
import * as import6 from "rollup-plugin-postcss";
import * as import7 from "rollup-plugin-visualizer";
import * as import8 from "@rollup/plugin-wasm";
import * as import9 from "@rollup/plugin-alias";
const customResolver = import1.default({
extensions: [".js"],
browser: true,
});
export default {
input: "build/index.js",
output: [
{
file: "lib/index.js",
format: "cjs",
sourcemap: false,
inlineDynamicImports: true,
},
],
plugins: [
import0.default(...([] as const)),
import9.default({
entries: {
"crypto": "crypto-browserify",
"sodium-universal": "@screamingvoid/sodium-universal",
},
customResolver,
}),
import9.default({
entries: {
"node-fetch": "./nop.js",
"stream": "./nop.js",
"formdata-polyfill/formdata-to-blob.js": "./nop.js",
},
}),
import1.default(
...([
{
browser: true,
preferBuiltins: false,
dedupe: [
"@lumeweb/libkernel",
"@lumeweb/libweb",
"@lumeweb/libportal",
],
},
] as const),
),
import2.default(
...([{ extensions: [".js", ".jsx", ".ts", ".tsx"] }] as const),
),
import3.default(...([] as const)),
import4.default(...([] as const)),
import5.default(...([] as const)),
import6.default(...([{ inject: { insertAt: "top" } }] as const)),
import7.visualizer(...([] as const)),
import8.default(...([{ targetEnv: "auto-inline" }] as const)),
],
};