refactor: move to vite bundler
This commit is contained in:
parent
00a83a5f84
commit
cc00a0fe7d
|
@ -3,7 +3,16 @@
|
|||
"@lumeweb/presetter-kernel-module-preset"
|
||||
],
|
||||
"config": {
|
||||
"official": true,
|
||||
"browser": true
|
||||
"vite": {
|
||||
"resolve": {
|
||||
"alias": {
|
||||
"timers": "timers-browserify",
|
||||
"protomux-rpc": "@lumeweb/protomux-rpc-web"
|
||||
}
|
||||
},
|
||||
"optimize": {
|
||||
"hyperswarm": "export default {}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
export default {};
|
File diff suppressed because it is too large
Load Diff
|
@ -15,13 +15,13 @@
|
|||
"_id": "@lumeweb/kernel-rpc@0.1.0",
|
||||
"dependencies": {
|
||||
"@lumeweb/kernel-swarm-client": "^0.0.2-develop.7",
|
||||
"@lumeweb/libkernel": "^0.1.0-develop.14",
|
||||
"@lumeweb/libkernel": "^0.1.0-develop.15",
|
||||
"@lumeweb/protomux-rpc-web": "^0.0.2-develop.5",
|
||||
"@lumeweb/rpc-client": "^0.0.2-develop.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lumeweb/interface-relay": "^0.0.2-develop.1",
|
||||
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.30",
|
||||
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.38",
|
||||
"@rollup/plugin-alias": "^5.0.0",
|
||||
"presetter": "^4.0.1",
|
||||
"timers-browserify": "^2.0.12"
|
||||
|
|
|
@ -1,55 +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";
|
||||
|
||||
export default {
|
||||
input: "build/index.js",
|
||||
output: [
|
||||
{
|
||||
file: "lib/index.js",
|
||||
format: "cjs",
|
||||
sourcemap: true,
|
||||
inlineDynamicImports: true,
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
import0.default(...([] as const)),
|
||||
import9.default({
|
||||
entries: {
|
||||
"hyperswarm": "./mock-hyperswarm.js",
|
||||
"protomux-rpc": "@lumeweb/protomux-rpc-web",
|
||||
"timers": "timers-browserify",
|
||||
},
|
||||
}),
|
||||
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)),
|
||||
],
|
||||
};
|
Loading…
Reference in New Issue