Skip to content

Prod build + package.json#export condition for production#21113

Closed
NullVoxPopuli wants to merge 1 commit intonvp/no-more-macrosfrom
nvp/split-build
Closed

Prod build + package.json#export condition for production#21113
NullVoxPopuli wants to merge 1 commit intonvp/no-more-macrosfrom
nvp/split-build

Conversation

@NullVoxPopuli
Copy link
Contributor

@NullVoxPopuli NullVoxPopuli commented Feb 24, 2026

apparently the perf script is trying to use the production bundle, so that kinda counts as tests

This PR depends on #21115 so that the esm / esm-template-compiler unification isn't weird / different from how it is on main

@NullVoxPopuli NullVoxPopuli changed the title First pass on prod build Prod build + package.json#export condition for production Feb 24, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2026

Estimated Asset Sizes

Diff

--- main/out.txt	2026-02-17 19:37:18.000000000 +0000
+++ pr/./pr-22464603691/out.txt	2026-02-26 22:51:02.000000000 +0000
@@ -1,62 +1,62 @@
 ╔═══════╤═══════════╤═══════════╗
 ║       │ Min       │ Gzip      ║
 ╟───────┼───────────┼───────────╢
-║ Total │ 351.99 KB │ 203.84 KB ║
+║ Total │ 323.31 KB │ 198.72 KB ║
 ╚═══════╧═══════════╧═══════════╝
 
 ╔══════════════════════╤═══════════╤═══════════╗
 ║ @ember/*             │ Min       │ Gzip      ║
 ╟──────────────────────┼───────────┼───────────╢
-║ Total                │ 313.39 KB │ 181.91 KB ║
+║ Total                │ 265.33 KB │ 166.05 KB ║
 ╟──────────────────────┼───────────┼───────────╢
-║ -internals           │ 36.65 KB  │ 26.22 KB  ║
-║ application          │ 13.23 KB  │ 8.05 KB   ║
-║ array                │ 13.01 KB  │ 7.46 KB   ║
-║ canary-features      │ 304 B     │ 389 B     ║
-║ component            │ 2.05 KB   │ 1.64 KB   ║
-║ controller           │ 1.96 KB   │ 1.41 KB   ║
-║ debug                │ 11.69 KB  │ 8.12 KB   ║
+║ -internals           │ 56.9 KB   │ 36.68 KB  ║
+║ application          │ 15.93 KB  │ 9.17 KB   ║
+║ array                │ 15.18 KB  │ 8.53 KB   ║
+║ canary-features      │ 298 B     │ 386 B     ║
+║ component            │ 2.16 KB   │ 1.63 KB   ║
+║ controller           │ 1.96 KB   │ 1.47 KB   ║
+║ debug                │ 17.18 KB  │ 11.43 KB  ║
 ║ deprecated-features  │ 31 B      │ 77 B      ║
 ║ destroyable          │ 561 B     │ 383 B     ║
 ║ enumerable           │ 259 B     │ 387 B     ║
-║ helper               │ 1.08 KB   │ 811 B     ║
-║ instrumentation      │ 2.43 KB   │ 1.79 KB   ║
-║ modifier             │ 1.22 KB   │ 965 B     ║
-║ object               │ 35.94 KB  │ 22.16 KB  ║
+║ helper               │ 1.13 KB   │ 838 B     ║
+║ instrumentation      │ 2.46 KB   │ 1.77 KB   ║
+║ modifier             │ 1.29 KB   │ 970 B     ║
+║ object               │ 51.62 KB  │ 28.92 KB  ║
 ║ owner                │ 159 B     │ 178 B     ║
-║ renderer             │ 630 B     │ 487 B     ║
-║ routing              │ 59.3 KB   │ 34.12 KB  ║
-║ runloop              │ 2.36 KB   │ 1.5 KB    ║
-║ service              │ 1 KB      │ 845 B     ║
-║ template             │ 654 B     │ 541 B     ║
-║ template-compilation │ 429 B     │ 366 B     ║
-║ template-compiler    │ 123.08 KB │ 59.45 KB  ║
-║ template-factory     │ 370 B     │ 374 B     ║
+║ renderer             │ 671 B     │ 527 B     ║
+║ routing              │ 70.9 KB   │ 40.58 KB  ║
+║ runloop              │ 2.7 KB    │ 1.69 KB   ║
+║ service              │ 1 KB      │ 863 B     ║
+║ template             │ 695 B     │ 543 B     ║
+║ template-compilation │ 640 B     │ 540 B     ║
+║ template-compiler    │ 15.9 KB   │ 13.71 KB  ║
+║ template-factory     │ 419 B     │ 411 B     ║
 ║ test                 │ 923 B     │ 627 B     ║
-║ utils                │ 4.11 KB   │ 3.6 KB    ║
+║ utils                │ 4.42 KB   │ 3.76 KB   ║
 ║ version              │ 55 B      │ 131 B     ║
 ╚══════════════════════╧═══════════╧═══════════╝
 
 ╔═════════════════╤══════════╤══════════╗
 ║ @glimmer/*      │ Min      │ Gzip     ║
 ╟─────────────────┼──────────┼──────────╢
-║ Total           │ 38.6 KB  │ 21.94 KB ║
+║ Total           │ 57.97 KB │ 32.67 KB ║
 ╟─────────────────┼──────────┼──────────╢
-║ destroyable     │ 2.77 KB  │ 1.39 KB  ║
-║ encoder         │ 81 B     │ 171 B    ║
+║ destroyable     │ 4.66 KB  │ 2.29 KB  ║
+║ encoder         │ 740 B    │ 791 B    ║
 ║ env             │ 38 B     │ 87 B     ║
-║ global-context  │ 886 B    │ 545 B    ║
-║ manager         │ 977 B    │ 608 B    ║
-║ node            │ 175 B    │ 260 B    ║
-║ opcode-compiler │ 1.11 KB  │ 894 B    ║
+║ global-context  │ 2.23 KB  │ 1.22 KB  ║
+║ manager         │ 6.5 KB   │ 3.19 KB  ║
+║ node            │ 1.04 KB  │ 842 B    ║
+║ opcode-compiler │ 1.11 KB  │ 904 B    ║
 ║ owner           │ 159 B    │ 202 B    ║
-║ program         │ 252 B    │ 301 B    ║
-║ reference       │ 548 B    │ 531 B    ║
-║ runtime         │ 10.32 KB │ 5.32 KB  ║
-║ tracking        │ 1.34 KB  │ 1.16 KB  ║
-║ util            │ 1.94 KB  │ 1.68 KB  ║
-║ validator       │ 15.75 KB │ 6.96 KB  ║
-║ vm              │ 495 B    │ 569 B    ║
+║ program         │ 367 B    │ 323 B    ║
+║ reference       │ 3.51 KB  │ 2.42 KB  ║
+║ runtime         │ 10.32 KB │ 5.22 KB  ║
+║ tracking        │ 2.11 KB  │ 1.77 KB  ║
+║ util            │ 1.94 KB  │ 1.71 KB  ║
+║ validator       │ 20.95 KB │ 9.85 KB  ║
+║ vm              │ 495 B    │ 575 B    ║
 ║ wire-format     │ 1.84 KB  │ 1.35 KB  ║
 ╚═════════════════╧══════════╧══════════╝
 

Details

This PRmain
╔═══════╤═══════════╤═══════════╗
║       │ Min       │ Gzip      ║
╟───────┼───────────┼───────────╢
║ Total │ 323.31 KB │ 198.72 KB ║
╚═══════╧═══════════╧═══════════╝

╔══════════════════════╤═══════════╤═══════════╗
║ @ember/*             │ Min       │ Gzip      ║
╟──────────────────────┼───────────┼───────────╢
║ Total                │ 265.33 KB │ 166.05 KB ║
╟──────────────────────┼───────────┼───────────╢
║ -internals           │ 56.9 KB   │ 36.68 KB  ║
║ application          │ 15.93 KB  │ 9.17 KB   ║
║ array                │ 15.18 KB  │ 8.53 KB   ║
║ canary-features      │ 298 B     │ 386 B     ║
║ component            │ 2.16 KB   │ 1.63 KB   ║
║ controller           │ 1.96 KB   │ 1.47 KB   ║
║ debug                │ 17.18 KB  │ 11.43 KB  ║
║ deprecated-features  │ 31 B      │ 77 B      ║
║ destroyable          │ 561 B     │ 383 B     ║
║ enumerable           │ 259 B     │ 387 B     ║
║ helper               │ 1.13 KB   │ 838 B     ║
║ instrumentation      │ 2.46 KB   │ 1.77 KB   ║
║ modifier             │ 1.29 KB   │ 970 B     ║
║ object               │ 51.62 KB  │ 28.92 KB  ║
║ owner                │ 159 B     │ 178 B     ║
║ renderer             │ 671 B     │ 527 B     ║
║ routing              │ 70.9 KB   │ 40.58 KB  ║
║ runloop              │ 2.7 KB    │ 1.69 KB   ║
║ service              │ 1 KB      │ 863 B     ║
║ template             │ 695 B     │ 543 B     ║
║ template-compilation │ 640 B     │ 540 B     ║
║ template-compiler    │ 15.9 KB   │ 13.71 KB  ║
║ template-factory     │ 419 B     │ 411 B     ║
║ test                 │ 923 B     │ 627 B     ║
║ utils                │ 4.42 KB   │ 3.76 KB   ║
║ version              │ 55 B      │ 131 B     ║
╚══════════════════════╧═══════════╧═══════════╝

╔═════════════════╤══════════╤══════════╗
║ @glimmer/*      │ Min      │ Gzip     ║
╟─────────────────┼──────────┼──────────╢
║ Total           │ 57.97 KB │ 32.67 KB ║
╟─────────────────┼──────────┼──────────╢
║ destroyable     │ 4.66 KB  │ 2.29 KB  ║
║ encoder         │ 740 B    │ 791 B    ║
║ env             │ 38 B     │ 87 B     ║
║ global-context  │ 2.23 KB  │ 1.22 KB  ║
║ manager         │ 6.5 KB   │ 3.19 KB  ║
║ node            │ 1.04 KB  │ 842 B    ║
║ opcode-compiler │ 1.11 KB  │ 904 B    ║
║ owner           │ 159 B    │ 202 B    ║
║ program         │ 367 B    │ 323 B    ║
║ reference       │ 3.51 KB  │ 2.42 KB  ║
║ runtime         │ 10.32 KB │ 5.22 KB  ║
║ tracking        │ 2.11 KB  │ 1.77 KB  ║
║ util            │ 1.94 KB  │ 1.71 KB  ║
║ validator       │ 20.95 KB │ 9.85 KB  ║
║ vm              │ 495 B    │ 575 B    ║
║ wire-format     │ 1.84 KB  │ 1.35 KB  ║
╚═════════════════╧══════════╧══════════╝
╔═══════╤═══════════╤═══════════╗
║       │ Min       │ Gzip      ║
╟───────┼───────────┼───────────╢
║ Total │ 351.99 KB │ 203.84 KB ║
╚═══════╧═══════════╧═══════════╝

╔══════════════════════╤═══════════╤═══════════╗
║ @ember/*             │ Min       │ Gzip      ║
╟──────────────────────┼───────────┼───────────╢
║ Total                │ 313.39 KB │ 181.91 KB ║
╟──────────────────────┼───────────┼───────────╢
║ -internals           │ 36.65 KB  │ 26.22 KB  ║
║ application          │ 13.23 KB  │ 8.05 KB   ║
║ array                │ 13.01 KB  │ 7.46 KB   ║
║ canary-features      │ 304 B     │ 389 B     ║
║ component            │ 2.05 KB   │ 1.64 KB   ║
║ controller           │ 1.96 KB   │ 1.41 KB   ║
║ debug                │ 11.69 KB  │ 8.12 KB   ║
║ deprecated-features  │ 31 B      │ 77 B      ║
║ destroyable          │ 561 B     │ 383 B     ║
║ enumerable           │ 259 B     │ 387 B     ║
║ helper               │ 1.08 KB   │ 811 B     ║
║ instrumentation      │ 2.43 KB   │ 1.79 KB   ║
║ modifier             │ 1.22 KB   │ 965 B     ║
║ object               │ 35.94 KB  │ 22.16 KB  ║
║ owner                │ 159 B     │ 178 B     ║
║ renderer             │ 630 B     │ 487 B     ║
║ routing              │ 59.3 KB   │ 34.12 KB  ║
║ runloop              │ 2.36 KB   │ 1.5 KB    ║
║ service              │ 1 KB      │ 845 B     ║
║ template             │ 654 B     │ 541 B     ║
║ template-compilation │ 429 B     │ 366 B     ║
║ template-compiler    │ 123.08 KB │ 59.45 KB  ║
║ template-factory     │ 370 B     │ 374 B     ║
║ test                 │ 923 B     │ 627 B     ║
║ utils                │ 4.11 KB   │ 3.6 KB    ║
║ version              │ 55 B      │ 131 B     ║
╚══════════════════════╧═══════════╧═══════════╝

╔═════════════════╤══════════╤══════════╗
║ @glimmer/*      │ Min      │ Gzip     ║
╟─────────────────┼──────────┼──────────╢
║ Total           │ 38.6 KB  │ 21.94 KB ║
╟─────────────────┼──────────┼──────────╢
║ destroyable     │ 2.77 KB  │ 1.39 KB  ║
║ encoder         │ 81 B     │ 171 B    ║
║ env             │ 38 B     │ 87 B     ║
║ global-context  │ 886 B    │ 545 B    ║
║ manager         │ 977 B    │ 608 B    ║
║ node            │ 175 B    │ 260 B    ║
║ opcode-compiler │ 1.11 KB  │ 894 B    ║
║ owner           │ 159 B    │ 202 B    ║
║ program         │ 252 B    │ 301 B    ║
║ reference       │ 548 B    │ 531 B    ║
║ runtime         │ 10.32 KB │ 5.32 KB  ║
║ tracking        │ 1.34 KB  │ 1.16 KB  ║
║ util            │ 1.94 KB  │ 1.68 KB  ║
║ validator       │ 15.75 KB │ 6.96 KB  ║
║ vm              │ 495 B    │ 569 B    ║
║ wire-format     │ 1.84 KB  │ 1.35 KB  ║
╚═════════════════╧══════════╧══════════╝

@NullVoxPopuli
Copy link
Contributor Author

@copilot why is this failing: https://github.com/emberjs/ember.js/actions/runs/22364314165/job/64726073304?pr=21113

Copy link
Contributor

Copilot AI commented Feb 24, 2026

@NullVoxPopuli I've opened a new pull request, #21114, to work on those changes. Once the pull request is ready, I'll request review from you.

@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review February 24, 2026 20:41
@NullVoxPopuli NullVoxPopuli changed the base branch from main to nvp/no-more-macros February 24, 2026 22:58
@NullVoxPopuli
Copy link
Contributor Author

#21129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants