@emberkit/core 0.2.1 → 0.2.3
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/boundaries/error-boundary.d.ts.map +1 -1
- package/dist/cache/index.d.ts +5 -5
- package/dist/cache/index.d.ts.map +1 -1
- package/dist/cache/index.js +24 -22
- package/dist/compiler/compiler.d.ts.map +1 -1
- package/dist/compiler/helpers/utils.d.ts.map +1 -1
- package/dist/context/index.d.ts.map +1 -1
- package/dist/dev-server/index.d.ts +5 -5
- package/dist/dev-server/index.d.ts.map +1 -1
- package/dist/dev-server/index.js +27 -27
- package/dist/forms/index.d.ts.map +1 -1
- package/dist/forms/index.js +1 -1
- package/dist/forms/mutations.d.ts.map +1 -1
- package/dist/forms/mutations.js +4 -1
- package/dist/hmr/client.d.ts.map +1 -1
- package/dist/hmr/client.js +1 -1
- package/dist/hmr/types.d.ts +3 -3
- package/dist/hmr/types.d.ts.map +1 -1
- package/dist/hmr/types.js +7 -7
- package/dist/hydration/helpers/analyzer.d.ts.map +1 -1
- package/dist/hydration/helpers/hydration.d.ts.map +1 -1
- package/dist/hydration/helpers/hydration.js +1 -1
- package/dist/hydration/types.d.ts.map +1 -1
- package/dist/hydration/types.js +32 -8
- package/dist/image/index.d.ts +1 -1
- package/dist/image/index.d.ts.map +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/processor.d.ts +2 -2
- package/dist/image/processor.d.ts.map +1 -1
- package/dist/image/processor.js +20 -15
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/jsx-dev-runtime.d.ts.map +1 -1
- package/dist/jsx-runtime.d.ts.map +1 -1
- package/dist/loader/helpers/loader.d.ts.map +1 -1
- package/dist/markdown/index.d.ts +14 -14
- package/dist/markdown/index.d.ts.map +1 -1
- package/dist/markdown/index.js +178 -172
- package/dist/mdx/index.d.ts +6 -6
- package/dist/mdx/index.d.ts.map +1 -1
- package/dist/mdx/index.js +46 -40
- package/dist/mdx/loader.d.ts.map +1 -1
- package/dist/meta/head.d.ts.map +1 -1
- package/dist/meta/index.d.ts +3 -3
- package/dist/meta/index.d.ts.map +1 -1
- package/dist/meta/index.js +16 -16
- package/dist/navigation/helpers/navigation.d.ts.map +1 -1
- package/dist/navigation/helpers/navigation.js +4 -4
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/navigation/types.js +1 -2
- package/dist/plugin/index.d.ts +2 -2
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +4 -4
- package/dist/router/helpers/route.d.ts.map +1 -1
- package/dist/router/helpers/route.js +10 -3
- package/dist/router/types.d.ts.map +1 -1
- package/dist/router/types.js +1 -3
- package/dist/runtime/helpers/render.d.ts.map +1 -1
- package/dist/runtime/helpers/render.js +20 -6
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +17 -14
- package/dist/signals/helpers/core.d.ts.map +1 -1
- package/dist/signals/helpers/core.js +3 -1
- package/dist/signals/helpers/utils.d.ts.map +1 -1
- package/dist/ssg/index.d.ts +1 -1
- package/dist/ssg/index.d.ts.map +1 -1
- package/dist/ssg/index.js +8 -15
- package/dist/ssr/helpers/render-html.d.ts.map +1 -1
- package/dist/ssr/helpers/render-html.js +3 -2
- package/dist/ssr/helpers/ssr.d.ts.map +1 -1
- package/dist/ssr/helpers/ssr.js +3 -1
- package/dist/vite-plugin/index.d.ts.map +1 -1
- package/dist/vite-plugin/index.js +207 -28
- package/dist/vite-plugin/types.d.ts +8 -0
- package/dist/vite-plugin/types.d.ts.map +1 -1
- package/dist/vite-plugin/types.js +4 -0
- package/package.json +3 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DEFAULT_CONFIG } from './types.js';
|
|
2
|
-
import { readdirSync, statSync } from 'node:fs';
|
|
2
|
+
import { readdirSync, statSync, existsSync } from 'node:fs';
|
|
3
3
|
import { join, relative, dirname, resolve } from 'node:path';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
5
|
import { compile } from '@mdx-js/mdx';
|
|
6
6
|
import remarkGfm from 'remark-gfm';
|
|
7
|
+
import { compression } from 'vite-plugin-compression2';
|
|
7
8
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
9
|
const VIRTUAL_EMBERKIT_CONFIG = 'virtual:emberkit-config';
|
|
9
10
|
const VIRTUAL_EMBERKIT_ROUTES = 'virtual:emberkit-routes';
|
|
@@ -23,11 +24,20 @@ export function emberkitVitePlugin(userOptions = {}) {
|
|
|
23
24
|
config() {
|
|
24
25
|
const pkgRoot = resolve(__dirname, '..', '..');
|
|
25
26
|
const srcDir = join(pkgRoot, 'src');
|
|
27
|
+
const plugins = [];
|
|
28
|
+
if (options.compression?.gzip) {
|
|
29
|
+
plugins.push(compression({ algorithm: 'gzip' }));
|
|
30
|
+
}
|
|
31
|
+
if (options.compression?.brotli) {
|
|
32
|
+
plugins.push(compression({ algorithm: 'brotliCompress' }));
|
|
33
|
+
}
|
|
34
|
+
const isWorkspace = existsSync(join(pkgRoot, 'src', 'index.ts'));
|
|
26
35
|
return {
|
|
36
|
+
plugins,
|
|
27
37
|
resolve: {
|
|
28
|
-
alias: {
|
|
38
|
+
alias: isWorkspace ? {
|
|
29
39
|
'@emberkit/core': srcDir,
|
|
30
|
-
},
|
|
40
|
+
} : {},
|
|
31
41
|
},
|
|
32
42
|
esbuild: {
|
|
33
43
|
jsxImportSource: '@emberkit/core',
|
|
@@ -144,7 +154,7 @@ async function transformMDX(code, id) {
|
|
|
144
154
|
}
|
|
145
155
|
// Extract code blocks before MDX compilation to preserve syntax
|
|
146
156
|
const codeBlocks = [];
|
|
147
|
-
|
|
157
|
+
const processedContent = content.replace(/```(\w*)\n([\s\S]*?)```/g, (_match, lang, blockCode) => {
|
|
148
158
|
const html = renderCodeBlock(lang, blockCode);
|
|
149
159
|
codeBlocks.push({ html, index: codeBlocks.length });
|
|
150
160
|
return `<CodeBlock_${codeBlocks.length - 1} />`;
|
|
@@ -188,7 +198,7 @@ async function transformMDX(code, id) {
|
|
|
188
198
|
const componentsOverride = codeBlocks.length > 0
|
|
189
199
|
? `
|
|
190
200
|
const _codeBlockComponents = {
|
|
191
|
-
${codeBlocks.map(b => `CodeBlock_${b.index}`).join(', ')}
|
|
201
|
+
${codeBlocks.map((b) => `CodeBlock_${b.index}`).join(', ')}
|
|
192
202
|
};
|
|
193
203
|
`
|
|
194
204
|
: '';
|
|
@@ -227,7 +237,7 @@ function _GfmSup(props) {
|
|
|
227
237
|
export default function MDXComponent(props) {
|
|
228
238
|
const components = {
|
|
229
239
|
...(props.components || {}),
|
|
230
|
-
${codeBlocks.map(b => `CodeBlock_${b.index}`).join(', ')}
|
|
240
|
+
${codeBlocks.map((b) => `CodeBlock_${b.index}`).join(', ')}
|
|
231
241
|
};
|
|
232
242
|
|
|
233
243
|
return createElement('div', {
|
|
@@ -265,7 +275,10 @@ function parseFrontmatter(content) {
|
|
|
265
275
|
else if (!isNaN(Number(value)))
|
|
266
276
|
value = Number(value);
|
|
267
277
|
else if (typeof value === 'string' && value.startsWith('[')) {
|
|
268
|
-
value = value
|
|
278
|
+
value = value
|
|
279
|
+
.replace(/[\[\]]/g, '')
|
|
280
|
+
.split(',')
|
|
281
|
+
.map((s) => s.trim());
|
|
269
282
|
}
|
|
270
283
|
result[key] = value;
|
|
271
284
|
}
|
|
@@ -300,7 +313,12 @@ function processHeadings(html) {
|
|
|
300
313
|
}
|
|
301
314
|
function renderCodeBlock(lang, code) {
|
|
302
315
|
let highlighted = code.trim();
|
|
303
|
-
if (lang === 'ts' ||
|
|
316
|
+
if (lang === 'ts' ||
|
|
317
|
+
lang === 'tsx' ||
|
|
318
|
+
lang === 'js' ||
|
|
319
|
+
lang === 'jsx' ||
|
|
320
|
+
lang === 'typescript' ||
|
|
321
|
+
lang === 'javascript') {
|
|
304
322
|
highlighted = highlightTS(highlighted);
|
|
305
323
|
}
|
|
306
324
|
else if (lang === 'bash' || lang === 'sh' || lang === 'shell') {
|
|
@@ -316,19 +334,109 @@ function renderCodeBlock(lang, code) {
|
|
|
316
334
|
return `<pre${langAttr}><button class="copy-btn" onclick="(async()=>{await navigator.clipboard.writeText(this.closest('pre').querySelector('code').textContent);this.textContent='Copied!';setTimeout(()=>this.textContent='Copy',1500)})()"><svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"9\" y=\"9\" width=\"13\" height=\"13\" rx=\"2\" ry=\"2\"/><path d=\"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"/></svg> Copy</button><code class="language-${lang}">${highlighted}</code></pre>`;
|
|
317
335
|
}
|
|
318
336
|
function escapeHtml(text) {
|
|
319
|
-
return text
|
|
320
|
-
.replace(/&/g, '&')
|
|
321
|
-
.replace(/</g, '<')
|
|
322
|
-
.replace(/>/g, '>');
|
|
337
|
+
return text.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
323
338
|
}
|
|
324
339
|
function highlightTS(code) {
|
|
325
340
|
const tokens = [];
|
|
326
341
|
let remaining = code;
|
|
327
|
-
const controlFlow = new Set([
|
|
328
|
-
|
|
329
|
-
|
|
342
|
+
const controlFlow = new Set([
|
|
343
|
+
'if',
|
|
344
|
+
'else',
|
|
345
|
+
'for',
|
|
346
|
+
'while',
|
|
347
|
+
'do',
|
|
348
|
+
'switch',
|
|
349
|
+
'case',
|
|
350
|
+
'break',
|
|
351
|
+
'continue',
|
|
352
|
+
'return',
|
|
353
|
+
'throw',
|
|
354
|
+
'try',
|
|
355
|
+
'catch',
|
|
356
|
+
'finally',
|
|
357
|
+
]);
|
|
358
|
+
const declarations = new Set([
|
|
359
|
+
'import',
|
|
360
|
+
'export',
|
|
361
|
+
'from',
|
|
362
|
+
'const',
|
|
363
|
+
'let',
|
|
364
|
+
'var',
|
|
365
|
+
'function',
|
|
366
|
+
'class',
|
|
367
|
+
'extends',
|
|
368
|
+
'super',
|
|
369
|
+
'enum',
|
|
370
|
+
'type',
|
|
371
|
+
'interface',
|
|
372
|
+
'module',
|
|
373
|
+
'namespace',
|
|
374
|
+
'declare',
|
|
375
|
+
'new',
|
|
376
|
+
'delete',
|
|
377
|
+
'typeof',
|
|
378
|
+
'instanceof',
|
|
379
|
+
'in',
|
|
380
|
+
'of',
|
|
381
|
+
'default',
|
|
382
|
+
'as',
|
|
383
|
+
'satisfies',
|
|
384
|
+
'keyof',
|
|
385
|
+
'infer',
|
|
386
|
+
'is',
|
|
387
|
+
'asserts',
|
|
388
|
+
'abstract',
|
|
389
|
+
'implements',
|
|
390
|
+
]);
|
|
391
|
+
const modifiers = new Set([
|
|
392
|
+
'readonly',
|
|
393
|
+
'public',
|
|
394
|
+
'private',
|
|
395
|
+
'protected',
|
|
396
|
+
'static',
|
|
397
|
+
'abstract',
|
|
398
|
+
'async',
|
|
399
|
+
'override',
|
|
400
|
+
]);
|
|
330
401
|
const literals = new Set(['true', 'false', 'null', 'undefined', 'this']);
|
|
331
|
-
const builtins = new Set([
|
|
402
|
+
const builtins = new Set([
|
|
403
|
+
'console',
|
|
404
|
+
'document',
|
|
405
|
+
'window',
|
|
406
|
+
'Math',
|
|
407
|
+
'JSON',
|
|
408
|
+
'Array',
|
|
409
|
+
'Object',
|
|
410
|
+
'String',
|
|
411
|
+
'Number',
|
|
412
|
+
'Boolean',
|
|
413
|
+
'Promise',
|
|
414
|
+
'Map',
|
|
415
|
+
'Set',
|
|
416
|
+
'RegExp',
|
|
417
|
+
'Date',
|
|
418
|
+
'Error',
|
|
419
|
+
'Symbol',
|
|
420
|
+
'Record',
|
|
421
|
+
'Partial',
|
|
422
|
+
'Required',
|
|
423
|
+
'Pick',
|
|
424
|
+
'Omit',
|
|
425
|
+
'Exclude',
|
|
426
|
+
'Extract',
|
|
427
|
+
'ReturnType',
|
|
428
|
+
'Parameters',
|
|
429
|
+
'JSX',
|
|
430
|
+
'FC',
|
|
431
|
+
'Props',
|
|
432
|
+
'State',
|
|
433
|
+
'Effect',
|
|
434
|
+
'Memo',
|
|
435
|
+
'Signal',
|
|
436
|
+
'Ref',
|
|
437
|
+
'Context',
|
|
438
|
+
'React',
|
|
439
|
+
]);
|
|
332
440
|
while (remaining.length > 0) {
|
|
333
441
|
let m;
|
|
334
442
|
// Multi-line comment
|
|
@@ -419,7 +527,33 @@ function highlightTS(code) {
|
|
|
419
527
|
}
|
|
420
528
|
// JSX prop name (word followed by =)
|
|
421
529
|
m = remaining.match(/^([a-zA-Z_][\w.]*)\s*(?==)/);
|
|
422
|
-
if (m &&
|
|
530
|
+
if (m &&
|
|
531
|
+
![
|
|
532
|
+
'if',
|
|
533
|
+
'else',
|
|
534
|
+
'for',
|
|
535
|
+
'while',
|
|
536
|
+
'switch',
|
|
537
|
+
'case',
|
|
538
|
+
'return',
|
|
539
|
+
'import',
|
|
540
|
+
'export',
|
|
541
|
+
'from',
|
|
542
|
+
'const',
|
|
543
|
+
'let',
|
|
544
|
+
'var',
|
|
545
|
+
'function',
|
|
546
|
+
'class',
|
|
547
|
+
'new',
|
|
548
|
+
'typeof',
|
|
549
|
+
'instanceof',
|
|
550
|
+
'void',
|
|
551
|
+
'null',
|
|
552
|
+
'undefined',
|
|
553
|
+
'true',
|
|
554
|
+
'false',
|
|
555
|
+
'this',
|
|
556
|
+
].includes(m[1])) {
|
|
423
557
|
tokens.push(`<span class="attr">${escapeHtml(m[1])}</span>`);
|
|
424
558
|
remaining = remaining.slice(m[1].length);
|
|
425
559
|
continue;
|
|
@@ -502,7 +636,8 @@ function highlightInlineExpr(code) {
|
|
|
502
636
|
}
|
|
503
637
|
function highlightBash(code) {
|
|
504
638
|
const lines = code.split('\n');
|
|
505
|
-
return lines
|
|
639
|
+
return lines
|
|
640
|
+
.map((line) => {
|
|
506
641
|
const trimmed = line.trimStart();
|
|
507
642
|
// Comment
|
|
508
643
|
if (trimmed.startsWith('#')) {
|
|
@@ -537,7 +672,35 @@ function highlightBash(code) {
|
|
|
537
672
|
// Word (potential command)
|
|
538
673
|
m = remaining.match(/^([a-zA-Z][\w-]*)/);
|
|
539
674
|
if (m) {
|
|
540
|
-
const cmds = new Set([
|
|
675
|
+
const cmds = new Set([
|
|
676
|
+
'sudo',
|
|
677
|
+
'cd',
|
|
678
|
+
'mkdir',
|
|
679
|
+
'rm',
|
|
680
|
+
'cp',
|
|
681
|
+
'mv',
|
|
682
|
+
'ls',
|
|
683
|
+
'cat',
|
|
684
|
+
'echo',
|
|
685
|
+
'npm',
|
|
686
|
+
'pnpm',
|
|
687
|
+
'yarn',
|
|
688
|
+
'git',
|
|
689
|
+
'curl',
|
|
690
|
+
'chmod',
|
|
691
|
+
'export',
|
|
692
|
+
'source',
|
|
693
|
+
'node',
|
|
694
|
+
'npx',
|
|
695
|
+
'bun',
|
|
696
|
+
'deno',
|
|
697
|
+
'grep',
|
|
698
|
+
'awk',
|
|
699
|
+
'sed',
|
|
700
|
+
'find',
|
|
701
|
+
'docker',
|
|
702
|
+
'kubectl',
|
|
703
|
+
]);
|
|
541
704
|
tokens.push(cmds.has(m[1]) ? `<span class="kw">${m[1]}</span>` : m[1]);
|
|
542
705
|
remaining = remaining.slice(m[1].length);
|
|
543
706
|
continue;
|
|
@@ -547,7 +710,8 @@ function highlightBash(code) {
|
|
|
547
710
|
remaining = remaining.slice(1);
|
|
548
711
|
}
|
|
549
712
|
return tokens.join('');
|
|
550
|
-
})
|
|
713
|
+
})
|
|
714
|
+
.join('\n');
|
|
551
715
|
}
|
|
552
716
|
function highlightJSON(code) {
|
|
553
717
|
let result = escapeHtml(code);
|
|
@@ -568,10 +732,14 @@ function processTables(html) {
|
|
|
568
732
|
while (i < lines.length) {
|
|
569
733
|
// Check if this line and the next look like a table
|
|
570
734
|
if (i + 1 < lines.length &&
|
|
571
|
-
lines[i].trim().startsWith('|') &&
|
|
735
|
+
lines[i].trim().startsWith('|') &&
|
|
736
|
+
lines[i].trim().endsWith('|') &&
|
|
572
737
|
lines[i + 1].trim().match(/^\|[\s\-:|]+\|$/)) {
|
|
573
738
|
// Parse header row
|
|
574
|
-
const headerCells = lines[i]
|
|
739
|
+
const headerCells = lines[i]
|
|
740
|
+
.trim()
|
|
741
|
+
.split('|')
|
|
742
|
+
.filter((c) => c.trim() !== '');
|
|
575
743
|
result.push('<table>');
|
|
576
744
|
result.push('<thead><tr>');
|
|
577
745
|
for (const cell of headerCells) {
|
|
@@ -583,7 +751,10 @@ function processTables(html) {
|
|
|
583
751
|
i += 2;
|
|
584
752
|
// Parse data rows
|
|
585
753
|
while (i < lines.length && lines[i].trim().startsWith('|') && lines[i].trim().endsWith('|')) {
|
|
586
|
-
const cells = lines[i]
|
|
754
|
+
const cells = lines[i]
|
|
755
|
+
.trim()
|
|
756
|
+
.split('|')
|
|
757
|
+
.filter((c) => c.trim() !== '');
|
|
587
758
|
result.push('<tr>');
|
|
588
759
|
for (const cell of cells) {
|
|
589
760
|
result.push(`<td>${cell.trim()}</td>`);
|
|
@@ -690,7 +861,8 @@ function processEmphasis(html) {
|
|
|
690
861
|
function processParagraphs(html, breaks) {
|
|
691
862
|
// Split on pre blocks to avoid processing code content
|
|
692
863
|
const parts = html.split(/(<pre[\s\S]*?<\/pre>)/);
|
|
693
|
-
return parts
|
|
864
|
+
return parts
|
|
865
|
+
.map((part) => {
|
|
694
866
|
// Don't process content inside pre tags
|
|
695
867
|
if (part.startsWith('<pre'))
|
|
696
868
|
return part;
|
|
@@ -700,8 +872,12 @@ function processParagraphs(html, breaks) {
|
|
|
700
872
|
p = p.trim();
|
|
701
873
|
if (!p)
|
|
702
874
|
return '';
|
|
703
|
-
if (p.startsWith('<h') ||
|
|
704
|
-
p.startsWith('<
|
|
875
|
+
if (p.startsWith('<h') ||
|
|
876
|
+
p.startsWith('<ul') ||
|
|
877
|
+
p.startsWith('<ol') ||
|
|
878
|
+
p.startsWith('<pre') ||
|
|
879
|
+
p.startsWith('<blockquote') ||
|
|
880
|
+
p.startsWith('<table') ||
|
|
705
881
|
p.startsWith('<hr')) {
|
|
706
882
|
return p;
|
|
707
883
|
}
|
|
@@ -709,7 +885,8 @@ function processParagraphs(html, breaks) {
|
|
|
709
885
|
return `<p>${p}</p>`;
|
|
710
886
|
})
|
|
711
887
|
.join('\n');
|
|
712
|
-
})
|
|
888
|
+
})
|
|
889
|
+
.join('');
|
|
713
890
|
}
|
|
714
891
|
function scanRouteFiles(dir) {
|
|
715
892
|
const files = [];
|
|
@@ -746,7 +923,9 @@ function generateRoutesCode(files, routeDir) {
|
|
|
746
923
|
const ext = file.split('.').pop() ?? '';
|
|
747
924
|
const isMarkdown = ext === 'md' || ext === 'mdx';
|
|
748
925
|
// Skip special files
|
|
749
|
-
if (relativePath.includes('_layout') ||
|
|
926
|
+
if (relativePath.includes('_layout') ||
|
|
927
|
+
relativePath.includes('_error') ||
|
|
928
|
+
relativePath.includes('_loading')) {
|
|
750
929
|
continue;
|
|
751
930
|
}
|
|
752
931
|
// Skip API routes
|
|
@@ -7,6 +7,10 @@ export interface EmberKitPluginOptions {
|
|
|
7
7
|
jsx?: 'automatic' | 'classic';
|
|
8
8
|
markdown?: Partial<MarkdownConfig>;
|
|
9
9
|
mdx?: MDXConfig;
|
|
10
|
+
compression?: {
|
|
11
|
+
gzip?: boolean;
|
|
12
|
+
brotli?: boolean;
|
|
13
|
+
};
|
|
10
14
|
}
|
|
11
15
|
export interface MarkdownConfig {
|
|
12
16
|
gfm: boolean;
|
|
@@ -31,6 +35,10 @@ export declare const DEFAULT_CONFIG: {
|
|
|
31
35
|
readonly tables: true;
|
|
32
36
|
};
|
|
33
37
|
readonly mdx: {};
|
|
38
|
+
readonly compression: {
|
|
39
|
+
readonly gzip: true;
|
|
40
|
+
readonly brotli: true;
|
|
41
|
+
};
|
|
34
42
|
};
|
|
35
43
|
export type ResolvedConfig = typeof DEFAULT_CONFIG & EmberKitPluginOptions;
|
|
36
44
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/vite-plugin/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAGnC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE/D,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IACnC,GAAG,CAAC,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/vite-plugin/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAGnC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE/D,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IACnC,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE;QACZ,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,CAAC,EAAE,qBAAqB,KAAK,MAAM,CAAC;AAEzE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;CAgBjB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,GAAG,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emberkit/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"private": false,
|
|
5
6
|
"description": "Lightweight TypeScript-first JSX framework core",
|
|
6
7
|
"license": "Apache-2.0",
|
|
7
8
|
"repository": {
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
"eslint-plugin-perfectionist": "^5.9.0",
|
|
59
60
|
"jsdom": "^29.1.1",
|
|
60
61
|
"typescript-eslint": "^8.59.3",
|
|
62
|
+
"vite-plugin-compression2": "^2.5.3",
|
|
61
63
|
"vitest": "^3.0.0"
|
|
62
64
|
},
|
|
63
65
|
"scripts": {
|