Compare commits

..

10 Commits

6 changed files with 1478 additions and 1680 deletions

View File

@ -3,7 +3,13 @@
"@lumeweb/presetter-kernel-module-preset" "@lumeweb/presetter-kernel-module-preset"
], ],
"config": { "config": {
"official": true, "vite": {
"browser": true "resolve": {
"alias": {
"tls": "./build/net.js",
"net": "./build/net.js"
}
}
}
} }
} }

View File

@ -1,3 +1,5 @@
## [0.0.2-develop.3](https://git.lumeweb.com/LumeWeb/kernel-discovery-irc/compare/v0.0.2-develop.2...v0.0.2-develop.3) (2023-07-12)
## [0.0.2-develop.2](https://git.lumeweb.com/LumeWeb/kernel-discovery-irc/compare/v0.0.2-develop.1...v0.0.2-develop.2) (2023-07-04) ## [0.0.2-develop.2](https://git.lumeweb.com/LumeWeb/kernel-discovery-irc/compare/v0.0.2-develop.1...v0.0.2-develop.2) (2023-07-04)

3036
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/kernel-discovery-irc", "name": "@lumeweb/kernel-discovery-irc",
"version": "0.0.2-develop.2", "version": "0.0.2-develop.3",
"type": "module", "type": "module",
"scripts": { "scripts": {
"prepare": "presetter bootstrap", "prepare": "presetter bootstrap",
@ -8,16 +8,15 @@
"semantic-release": "semantic-release" "semantic-release": "semantic-release"
}, },
"devDependencies": { "devDependencies": {
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.30", "@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.43",
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-inject": "^5.0.3",
"presetter": "*" "presetter": "*"
}, },
"readme": "ERROR: No README data found!", "readme": "ERROR: No README data found!",
"dependencies": { "dependencies": {
"@lumeweb/kernel-peer-discovery-client": "^0.0.2-develop.9", "@lumeweb/chardet": "^1.6.1",
"@lumeweb/libkernel": "^0.1.0-develop.14", "@lumeweb/kernel-peer-discovery-client": "^0.0.2-develop.10",
"@lumeweb/peer-discovery-irc": "^0.0.2-develop.3" "@lumeweb/libkernel": "^0.1.0-develop.16",
"@lumeweb/peer-discovery-irc": "^0.0.2-develop.6"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -1,63 +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";
import * as import10 from "@rollup/plugin-inject";
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: [
{
find: "net",
replacement: "./build/net.js",
},
{
find: "tls",
replacement: "./build/net.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),
),
import10.default({
Buffer: ["buffer", "Buffer"],
}),
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)),
],
};

34
vite.config.js Normal file
View File

@ -0,0 +1,34 @@
import { defineConfig } from "vite";
import optimizer from "vite-plugin-optimizer";
import inject from "@rollup/plugin-inject";
export default defineConfig({
build: {
outDir: "lib",
lib: {
entry: "build/index.js",
name: "main",
formats: ["cjs"],
fileName: "index",
},
minify: false,
rollupOptions: { output: { inlineDynamicImports: true } },
},
resolve: {
dedupe: ["@lumeweb/libportal", "@lumeweb/libweb", "@lumeweb/libkernel"],
alias: {
tls: "./build/net.js",
net: "./build/net.js",
chardet: "@lumeweb/chardet",
},
},
plugins: [
optimizer({
"node-fetch":
"const e = undefined; export default e;export {e as Response, e as FormData, e as Blob};",
}),
inject({
Buffer: ["buffer", "Buffer"],
}),
],
});