vite-plugin-rebundle 1.24.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rebundle.d.ts +12 -9
- package/dist/rebundle.js +154 -140
- package/dist/rebundle.js.map +1 -1
- package/package.json +9 -9
package/dist/rebundle.d.ts
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { InputOptions, OutputOptions } from 'rolldown';
|
|
2
|
-
import { Plugin } from 'vite';
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type InputOptions, type OutputOptions } from 'rolldown';
|
|
2
|
+
import type { Plugin } from 'vite';
|
|
3
|
+
declare global {
|
|
4
|
+
interface ImportMetaEnv {
|
|
5
|
+
readonly REBUNDLE_PORT: number;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export type RolldownOptions = {
|
|
5
9
|
input?: InputOptions;
|
|
6
10
|
output?: OutputOptions;
|
|
7
11
|
};
|
|
8
|
-
type BundleOptions = {
|
|
12
|
+
export type BundleOptions = {
|
|
9
13
|
[bundleName: string]: RolldownOptions;
|
|
10
14
|
};
|
|
11
|
-
declare class RebundleVite {
|
|
15
|
+
export declare class RebundleVite {
|
|
12
16
|
private commonOptions;
|
|
13
17
|
private bundleOptions;
|
|
14
18
|
private config;
|
|
@@ -31,6 +35,5 @@ declare class RebundleVite {
|
|
|
31
35
|
private getEntryChunks;
|
|
32
36
|
private merge;
|
|
33
37
|
}
|
|
34
|
-
declare function rebundle(commonOptions?: RolldownOptions | null, bundleOptions?: BundleOptions): Plugin<any>;
|
|
35
|
-
|
|
36
|
-
export { type BundleOptions, RebundleVite, type RolldownOptions, rebundle as default, rebundle };
|
|
38
|
+
export declare function rebundle(commonOptions?: RolldownOptions | null, bundleOptions?: BundleOptions): Plugin<any>;
|
|
39
|
+
export default rebundle;
|
package/dist/rebundle.js
CHANGED
|
@@ -1,149 +1,163 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
onConfig = async (config) => {
|
|
36
|
-
if (config.build?.watch) {
|
|
37
|
-
this.port = await getPort({ port: 3100 });
|
|
38
|
-
this.ws = new WebSocketServer({ port: this.port });
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
import { is } from 'dropcap/utils';
|
|
3
|
+
import { filesize } from 'filesize';
|
|
4
|
+
import { rm, stat } from 'node:fs/promises';
|
|
5
|
+
import { extname, join } from 'node:path';
|
|
6
|
+
import { getPort } from 'portfinder';
|
|
7
|
+
import { rolldown } from 'rolldown';
|
|
8
|
+
import { WebSocketServer } from 'ws';
|
|
9
|
+
export class RebundleVite {
|
|
10
|
+
commonOptions;
|
|
11
|
+
bundleOptions;
|
|
12
|
+
config = null;
|
|
13
|
+
originals = {};
|
|
14
|
+
port = null;
|
|
15
|
+
ws = null;
|
|
16
|
+
isRollupVite = false;
|
|
17
|
+
isRolldownVite = false;
|
|
18
|
+
ORIGINALS_DIR = 'REBUNDLE_originals';
|
|
19
|
+
constructor(commonOptions, bundleOptions) {
|
|
20
|
+
this.commonOptions = commonOptions ?? {};
|
|
21
|
+
this.bundleOptions = bundleOptions ?? {};
|
|
22
|
+
}
|
|
23
|
+
get plugin() {
|
|
24
|
+
return {
|
|
25
|
+
name: 'vite-plugin-rebundle',
|
|
26
|
+
apply: 'build',
|
|
27
|
+
enforce: 'post',
|
|
28
|
+
config: this.onConfig,
|
|
29
|
+
configResolved: this.onConfigResolved,
|
|
30
|
+
generateBundle: this.onGenerateBundle,
|
|
31
|
+
writeBundle: this.onWriteBundle,
|
|
32
|
+
};
|
|
39
33
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
onConfig = async (config) => {
|
|
35
|
+
if (config.build?.watch) {
|
|
36
|
+
this.port = await getPort({ port: 3100 });
|
|
37
|
+
this.ws = new WebSocketServer({ port: this.port });
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
define: { 'import.meta.env.REBUNDLE_PORT': JSON.stringify(this.port) },
|
|
41
|
+
build: { sourcemap: false },
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
onConfigResolved = async (config) => {
|
|
45
|
+
// Detect Vite variant
|
|
46
|
+
this.isRollupVite = !('oxc' in config);
|
|
47
|
+
this.isRolldownVite = !this.isRollupVite;
|
|
48
|
+
// Save resolved config
|
|
49
|
+
this.config = config;
|
|
50
|
+
// Hide js files from output logs for rollup Vite
|
|
51
|
+
if (this.isRollupVite) {
|
|
52
|
+
const info = this.config.logger.info;
|
|
53
|
+
this.config.logger.info = (message, options) => {
|
|
54
|
+
const path = message.split(/\s+/)[0];
|
|
55
|
+
if (is.absent(path))
|
|
56
|
+
return;
|
|
57
|
+
if (extname(path) === '.js')
|
|
58
|
+
return;
|
|
59
|
+
info(message, options);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
onGenerateBundle = (_, bundle) => {
|
|
64
|
+
for (const chunk of this.getChunks(bundle)) {
|
|
65
|
+
const originalFileName = chunk.fileName;
|
|
66
|
+
// Move all chunks to a temporary subfolder
|
|
67
|
+
chunk.fileName = this.prefixed(originalFileName);
|
|
68
|
+
chunk.imports = chunk.imports.map(name => this.prefixed(name));
|
|
69
|
+
// Use prefixed names as bundle keys for rollup Vite (rolldown Vite does this automatically)
|
|
70
|
+
if (this.isRollupVite) {
|
|
71
|
+
bundle[chunk.fileName] = chunk;
|
|
72
|
+
delete bundle[originalFileName];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
onWriteBundle = async (_, bundle) => {
|
|
77
|
+
// Get modified entry chunks
|
|
78
|
+
const modifiedEntryChunks = this.getEntryChunks(bundle).filter(chunk => {
|
|
79
|
+
const usedPaths = [chunk.fileName, ...chunk.imports];
|
|
80
|
+
return usedPaths.some(path => {
|
|
81
|
+
if (!bundle[path])
|
|
82
|
+
return false;
|
|
83
|
+
if (!('code' in bundle[path]))
|
|
84
|
+
return false;
|
|
85
|
+
return bundle[path].code !== this.originals[path];
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
// Rebundle modified entry chunks
|
|
89
|
+
await Promise.all(modifiedEntryChunks.map(async chunk => {
|
|
90
|
+
const originalFileName = this.unprefixed(chunk.fileName);
|
|
91
|
+
// Build with rolldown
|
|
92
|
+
const build = await rolldown({
|
|
93
|
+
...this.merge(this.commonOptions.input ?? {}, this.bundleOptions[chunk.name]?.input ?? {}),
|
|
94
|
+
input: join(this.dist, chunk.fileName),
|
|
95
|
+
});
|
|
96
|
+
await build.write({
|
|
97
|
+
...this.merge(this.commonOptions.output ?? {}, this.bundleOptions[chunk.name]?.output ?? {}),
|
|
98
|
+
sourcemap: false,
|
|
99
|
+
file: join(this.dist, originalFileName),
|
|
100
|
+
});
|
|
101
|
+
// Log successful build
|
|
102
|
+
const { size } = await stat(join(this.dist, originalFileName));
|
|
103
|
+
const $dist = chalk.dim(`${this.dist}/`);
|
|
104
|
+
const $fileName = chalk.cyan(originalFileName);
|
|
105
|
+
const $rebundle = chalk.dim.cyan('[rebundle]');
|
|
106
|
+
const $size = chalk.bold.dim(`${filesize(size)}`);
|
|
107
|
+
console.log(`${$dist}${$fileName} ${$rebundle} ${$size}`);
|
|
108
|
+
}));
|
|
109
|
+
for (const chunk of this.getChunks(bundle)) {
|
|
110
|
+
// Save original chunk code
|
|
111
|
+
this.originals[chunk.fileName] = chunk.code;
|
|
112
|
+
// Delete chunk from the bundle to hide Vite's output log
|
|
113
|
+
if (this.isRolldownVite)
|
|
114
|
+
delete bundle[chunk.fileName];
|
|
115
|
+
}
|
|
116
|
+
// Remove folder with original chunks
|
|
117
|
+
await rm(join(this.dist, this.ORIGINALS_DIR), { recursive: true });
|
|
118
|
+
// Notify about modified chunks
|
|
119
|
+
if (this.ws && modifiedEntryChunks.length > 0) {
|
|
120
|
+
const names = modifiedEntryChunks.map(chunk => chunk.name);
|
|
121
|
+
this.ws.clients.forEach(client => client.send(JSON.stringify(names)));
|
|
122
|
+
}
|
|
43
123
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
this.config.logger.info = (message, options) => {
|
|
52
|
-
const path = message.split(/\s+/)[0];
|
|
53
|
-
if (is.absent(path)) return;
|
|
54
|
-
if (extname(path) === ".js") return;
|
|
55
|
-
info(message, options);
|
|
56
|
-
};
|
|
124
|
+
// ---------------------------------------------------------------------------
|
|
125
|
+
// HELPERS
|
|
126
|
+
// ---------------------------------------------------------------------------
|
|
127
|
+
get dist() {
|
|
128
|
+
if (!this.config)
|
|
129
|
+
throw 'never';
|
|
130
|
+
return this.config.build.outDir;
|
|
57
131
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
for (const chunk of this.getChunks(bundle)) {
|
|
61
|
-
const originalFileName = chunk.fileName;
|
|
62
|
-
chunk.fileName = this.prefixed(originalFileName);
|
|
63
|
-
chunk.imports = chunk.imports.map((name) => this.prefixed(name));
|
|
64
|
-
if (this.isRollupVite) {
|
|
65
|
-
bundle[chunk.fileName] = chunk;
|
|
66
|
-
delete bundle[originalFileName];
|
|
67
|
-
}
|
|
132
|
+
prefixed(path) {
|
|
133
|
+
return join(this.ORIGINALS_DIR, path);
|
|
68
134
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
const modifiedEntryChunks = this.getEntryChunks(bundle).filter((chunk) => {
|
|
72
|
-
const usedPaths = [chunk.fileName, ...chunk.imports];
|
|
73
|
-
return usedPaths.some((path) => {
|
|
74
|
-
if (!bundle[path]) return false;
|
|
75
|
-
if (!("code" in bundle[path])) return false;
|
|
76
|
-
return bundle[path].code !== this.originals[path];
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
await Promise.all(
|
|
80
|
-
modifiedEntryChunks.map(async (chunk) => {
|
|
81
|
-
const originalFileName = this.unprefixed(chunk.fileName);
|
|
82
|
-
const build = await rolldown({
|
|
83
|
-
...this.merge(this.commonOptions.input ?? {}, this.bundleOptions[chunk.name]?.input ?? {}),
|
|
84
|
-
input: join(this.dist, chunk.fileName)
|
|
85
|
-
});
|
|
86
|
-
await build.write({
|
|
87
|
-
...this.merge(this.commonOptions.output ?? {}, this.bundleOptions[chunk.name]?.output ?? {}),
|
|
88
|
-
sourcemap: false,
|
|
89
|
-
file: join(this.dist, originalFileName)
|
|
90
|
-
});
|
|
91
|
-
const { size } = await stat(join(this.dist, originalFileName));
|
|
92
|
-
const $dist = chalk.dim(`${this.dist}/`);
|
|
93
|
-
const $fileName = chalk.cyan(originalFileName);
|
|
94
|
-
const $rebundle = chalk.dim.cyan("[rebundle]");
|
|
95
|
-
const $size = chalk.bold.dim(`${filesize(size)}`);
|
|
96
|
-
console.log(`${$dist}${$fileName} ${$rebundle} ${$size}`);
|
|
97
|
-
})
|
|
98
|
-
);
|
|
99
|
-
for (const chunk of this.getChunks(bundle)) {
|
|
100
|
-
this.originals[chunk.fileName] = chunk.code;
|
|
101
|
-
if (this.isRolldownVite) delete bundle[chunk.fileName];
|
|
135
|
+
unprefixed(path) {
|
|
136
|
+
return path.replace(`${this.ORIGINALS_DIR}/`, '');
|
|
102
137
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
const names = modifiedEntryChunks.map((chunk) => chunk.name);
|
|
106
|
-
this.ws.clients.forEach((client) => client.send(JSON.stringify(names)));
|
|
138
|
+
getChunks(bundle) {
|
|
139
|
+
return Object.values(bundle).filter(item => item.type === 'chunk');
|
|
107
140
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
get dist() {
|
|
113
|
-
if (!this.config) throw "never";
|
|
114
|
-
return this.config.build.outDir;
|
|
115
|
-
}
|
|
116
|
-
prefixed(path) {
|
|
117
|
-
return join(this.ORIGINALS_DIR, path);
|
|
118
|
-
}
|
|
119
|
-
unprefixed(path) {
|
|
120
|
-
return path.replace(`${this.ORIGINALS_DIR}/`, "");
|
|
121
|
-
}
|
|
122
|
-
getChunks(bundle) {
|
|
123
|
-
return Object.values(bundle).filter((item) => item.type === "chunk");
|
|
124
|
-
}
|
|
125
|
-
getEntryChunks(bundle) {
|
|
126
|
-
return Object.values(bundle).filter((item) => item.type === "chunk").filter((chunk) => chunk.isEntry);
|
|
127
|
-
}
|
|
128
|
-
merge(obj1, obj2) {
|
|
129
|
-
const result = { ...obj1 };
|
|
130
|
-
for (const key in obj2) {
|
|
131
|
-
if (is.object(obj1[key]) && is.object(obj2[key])) {
|
|
132
|
-
result[key] = this.merge(obj1[key], obj2[key]);
|
|
133
|
-
} else {
|
|
134
|
-
result[key] = obj2[key];
|
|
135
|
-
}
|
|
141
|
+
getEntryChunks(bundle) {
|
|
142
|
+
return Object.values(bundle)
|
|
143
|
+
.filter(item => item.type === 'chunk')
|
|
144
|
+
.filter(chunk => chunk.isEntry);
|
|
136
145
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
146
|
+
merge(obj1, obj2) {
|
|
147
|
+
const result = { ...obj1 };
|
|
148
|
+
for (const key in obj2) {
|
|
149
|
+
if (is.object(obj1[key]) && is.object(obj2[key])) {
|
|
150
|
+
result[key] = this.merge(obj1[key], obj2[key]);
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
result[key] = obj2[key];
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return result;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
export function rebundle(commonOptions, bundleOptions) {
|
|
160
|
+
return new RebundleVite(commonOptions, bundleOptions).plugin;
|
|
142
161
|
}
|
|
143
|
-
|
|
144
|
-
export {
|
|
145
|
-
RebundleVite,
|
|
146
|
-
rebundle_default as default,
|
|
147
|
-
rebundle
|
|
148
|
-
};
|
|
162
|
+
export default rebundle;
|
|
149
163
|
//# sourceMappingURL=rebundle.js.map
|
package/dist/rebundle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/rebundle.ts"],"sourcesContent":["import chalk from 'chalk'\nimport { is } from 'dropcap/utils'\nimport { filesize } from 'filesize'\nimport { rm, stat } from 'node:fs/promises'\nimport { extname, join } from 'node:path'\nimport { getPort } from 'portfinder'\nimport { rolldown, type InputOptions, type OutputOptions } from 'rolldown'\nimport type { NormalizedOutputOptions, OutputBundle } from 'rollup'\nimport type { Plugin, ResolvedConfig, UserConfig } from 'vite'\nimport { WebSocketServer } from 'ws'\n\nexport type RolldownOptions = {\n input?: InputOptions\n output?: OutputOptions\n}\n\nexport type BundleOptions = {\n [bundleName: string]: RolldownOptions\n}\n\nexport class RebundleVite {\n private commonOptions: RolldownOptions\n private bundleOptions: BundleOptions\n private config: ResolvedConfig | null = null\n private originals: Record<string, string> = {}\n private port: number | null = null\n private ws: WebSocketServer | null = null\n private isRollupVite = false\n private isRolldownVite = false\n private ORIGINALS_DIR = 'REBUNDLE_originals'\n\n constructor(commonOptions?: RolldownOptions | null, bundleOptions?: BundleOptions) {\n this.commonOptions = commonOptions ?? {}\n this.bundleOptions = bundleOptions ?? {}\n }\n\n get plugin(): Plugin {\n return {\n name: 'vite-plugin-rebundle',\n apply: 'build',\n enforce: 'post',\n config: this.onConfig,\n configResolved: this.onConfigResolved,\n generateBundle: this.onGenerateBundle,\n writeBundle: this.onWriteBundle,\n }\n }\n\n private onConfig = async (config: UserConfig) => {\n if (config.build?.watch) {\n this.port = await getPort({ port: 3100 })\n this.ws = new WebSocketServer({ port: this.port })\n }\n\n return {\n define: { 'import.meta.env.REBUNDLE_PORT': JSON.stringify(this.port) },\n build: { sourcemap: false },\n }\n }\n\n private onConfigResolved = async (config: ResolvedConfig) => {\n // Detect Vite variant\n this.isRollupVite = !('oxc' in config)\n this.isRolldownVite = !this.isRollupVite\n\n // Save resolved config\n this.config = config\n\n // Hide js files from output logs for rollup Vite\n if (this.isRollupVite) {\n const info = this.config.logger.info\n this.config.logger.info = (message, options) => {\n const path = message.split(/\\s+/)[0]\n if (is.absent(path)) return\n if (extname(path) === '.js') return\n info(message, options)\n }\n }\n }\n\n private onGenerateBundle = async (_options: NormalizedOutputOptions, bundle: OutputBundle) => {\n for (const chunk of this.getChunks(bundle)) {\n const originalFileName = chunk.fileName\n\n // Move all chunks to a temporary subfolder\n chunk.fileName = this.prefixed(originalFileName)\n chunk.imports = chunk.imports.map(name => this.prefixed(name))\n\n // Use prefixed names as bundle keys for rollup Vite (rolldown Vite does this automatically)\n if (this.isRollupVite) {\n bundle[chunk.fileName] = chunk\n delete bundle[originalFileName]\n }\n }\n }\n\n private onWriteBundle = async (_output: NormalizedOutputOptions, bundle: OutputBundle) => {\n // Get modified entry chunks\n const modifiedEntryChunks = this.getEntryChunks(bundle).filter(chunk => {\n const usedPaths = [chunk.fileName, ...chunk.imports]\n return usedPaths.some(path => {\n if (!bundle[path]) return false\n if (!('code' in bundle[path])) return false\n return bundle[path].code !== this.originals[path]\n })\n })\n\n // Rebundle modified entry chunks\n await Promise.all(\n modifiedEntryChunks.map(async chunk => {\n const originalFileName = this.unprefixed(chunk.fileName)\n\n // Build with rolldown\n const build = await rolldown({\n ...this.merge(this.commonOptions.input ?? {}, this.bundleOptions[chunk.name]?.input ?? {}),\n input: join(this.dist, chunk.fileName),\n })\n await build.write({\n ...this.merge(this.commonOptions.output ?? {}, this.bundleOptions[chunk.name]?.output ?? {}),\n sourcemap: false,\n file: join(this.dist, originalFileName),\n })\n\n // Log successful build\n const { size } = await stat(join(this.dist, originalFileName))\n const $dist = chalk.dim(`${this.dist}/`)\n const $fileName = chalk.cyan(originalFileName)\n const $rebundle = chalk.dim.cyan('[rebundle]')\n const $size = chalk.bold.dim(`${filesize(size)}`)\n console.log(`${$dist}${$fileName} ${$rebundle} ${$size}`)\n }),\n )\n\n for (const chunk of this.getChunks(bundle)) {\n // Save original chunk code\n this.originals[chunk.fileName] = chunk.code\n\n // Delete chunk from the bundle to hide Vite's output log\n if (this.isRolldownVite) delete bundle[chunk.fileName]\n }\n\n // Remove folder with original chunks\n await rm(join(this.dist, this.ORIGINALS_DIR), { recursive: true })\n\n // Notify about modified chunks\n if (this.ws && modifiedEntryChunks.length > 0) {\n const names = modifiedEntryChunks.map(chunk => chunk.name)\n this.ws.clients.forEach(client => client.send(JSON.stringify(names)))\n }\n }\n\n // ---------------------------------------------------------------------------\n // HELPERS\n // ---------------------------------------------------------------------------\n\n private get dist() {\n if (!this.config) throw 'never'\n return this.config.build.outDir\n }\n\n private prefixed(path: string) {\n return join(this.ORIGINALS_DIR, path)\n }\n\n private unprefixed(path: string) {\n return path.replace(`${this.ORIGINALS_DIR}/`, '')\n }\n\n private getChunks(bundle: OutputBundle) {\n return Object.values(bundle).filter(item => item.type === 'chunk')\n }\n\n private getEntryChunks(bundle: OutputBundle) {\n return Object.values(bundle)\n .filter(item => item.type === 'chunk')\n .filter(chunk => chunk.isEntry)\n }\n\n private merge(obj1: Record<string, any>, obj2: Record<string, any>) {\n const result: Record<string, any> = { ...obj1 }\n for (const key in obj2) {\n if (is.object(obj1[key]) && is.object(obj2[key])) {\n result[key] = this.merge(obj1[key], obj2[key])\n } else {\n result[key] = obj2[key]\n }\n }\n\n return result\n }\n}\n\nexport function rebundle(commonOptions?: RolldownOptions | null, bundleOptions?: BundleOptions) {\n return new RebundleVite(commonOptions, bundleOptions).plugin\n}\n\nexport default rebundle\n"],"mappings":";AAAA,OAAO,W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10,9 @@
|
|
|
10
10
|
"vite-plugin"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"dev": "
|
|
14
|
-
"build": "
|
|
15
|
-
"lint": "
|
|
13
|
+
"dev": "rimraf dist && tsgo --watch",
|
|
14
|
+
"build": "rimraf dist && tsgo",
|
|
15
|
+
"lint": "tsgo --noEmit",
|
|
16
16
|
"release": "sh -c 'npm version ${1:-minor} && npm run build && npm publish' --"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@types/ws": "^8.18.1",
|
|
26
26
|
"chalk": "^5.6.2",
|
|
27
|
-
"dropcap": "^1.
|
|
27
|
+
"dropcap": "^1.9.0",
|
|
28
28
|
"filesize": "^11.0.13",
|
|
29
29
|
"portfinder": "^1.0.38",
|
|
30
|
-
"rolldown": "^1.0.0-beta.
|
|
31
|
-
"rollup": "^4.
|
|
32
|
-
"vite": "^7.3.
|
|
33
|
-
"ws": "^8.
|
|
30
|
+
"rolldown": "^1.0.0-beta.59",
|
|
31
|
+
"rollup": "^4.55.1",
|
|
32
|
+
"vite": "^7.3.1",
|
|
33
|
+
"ws": "^8.19.0"
|
|
34
34
|
}
|
|
35
35
|
}
|