@esportsplus/template 0.38.2 → 0.40.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/README.md +5 -26
- package/build/compiler/codegen.d.ts +3 -2
- package/build/compiler/codegen.js +102 -142
- package/build/compiler/constants.d.ts +16 -0
- package/build/compiler/constants.js +19 -0
- package/build/compiler/index.d.ts +6 -3
- package/build/compiler/index.js +29 -38
- package/build/compiler/parser.d.ts +3 -3
- package/build/compiler/parser.js +5 -4
- package/build/compiler/plugins/tsc.d.ts +3 -2
- package/build/compiler/plugins/tsc.js +4 -2
- package/build/compiler/plugins/vite.js +4 -3
- package/build/compiler/{analyzer.d.ts → ts-analyzer.d.ts} +2 -2
- package/build/compiler/{analyzer.js → ts-analyzer.js} +16 -18
- package/build/compiler/ts-parser.d.ts +5 -1
- package/build/compiler/ts-parser.js +27 -45
- package/build/constants.d.ts +1 -16
- package/build/constants.js +1 -19
- package/package.json +7 -3
- package/src/compiler/codegen.ts +135 -217
- package/src/compiler/constants.ts +26 -0
- package/src/compiler/index.ts +33 -58
- package/src/compiler/parser.ts +7 -6
- package/src/compiler/plugins/tsc.ts +4 -2
- package/src/compiler/plugins/vite.ts +4 -3
- package/src/compiler/{analyzer.ts → ts-analyzer.ts} +17 -20
- package/src/compiler/ts-parser.ts +35 -67
- package/src/constants.ts +0 -25
- package/test/counter.ts +113 -0
- package/test/effects.ts +1 -1
- package/test/events.ts +1 -1
- package/test/imported-values.ts +1 -1
- package/test/integration/tsconfig.json +0 -1
- package/test/nested.ts +20 -1
- package/test/slots.ts +1 -1
- package/test/spread.ts +1 -1
- package/test/static.ts +1 -1
- package/test/templates.ts +1 -1
- package/test/vite.config.ts +2 -1
package/test/spread.ts
CHANGED
package/test/static.ts
CHANGED
package/test/templates.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Test Templates for Compilation Benchmark
|
|
2
2
|
// Wide variety of template patterns for performance testing
|
|
3
3
|
|
|
4
|
-
import { html } from '
|
|
4
|
+
import { html } from '@esportsplus/template';
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
// =============================================================================
|
package/test/vite.config.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default defineConfig({
|
|
|
8
8
|
build: {
|
|
9
9
|
lib: {
|
|
10
10
|
entry: {
|
|
11
|
+
'counter': resolve(__dirname, 'counter.ts'),
|
|
11
12
|
'constants': resolve(__dirname, 'constants.ts'),
|
|
12
13
|
'effects': resolve(__dirname, 'effects.ts'),
|
|
13
14
|
'events': resolve(__dirname, 'events.ts'),
|
|
@@ -27,7 +28,6 @@ export default defineConfig({
|
|
|
27
28
|
rollupOptions: {
|
|
28
29
|
external: [
|
|
29
30
|
/^~\//,
|
|
30
|
-
/^\.\.\/src/,
|
|
31
31
|
'@esportsplus/reactivity',
|
|
32
32
|
'@esportsplus/template',
|
|
33
33
|
'@esportsplus/utilities'
|
|
@@ -44,6 +44,7 @@ export default defineConfig({
|
|
|
44
44
|
],
|
|
45
45
|
resolve: {
|
|
46
46
|
alias: {
|
|
47
|
+
'@esportsplus/template': resolve(__dirname, '../src'),
|
|
47
48
|
'~': resolve(__dirname, '../src')
|
|
48
49
|
}
|
|
49
50
|
}
|