ember-source 7.0.0-beta.1 → 7.1.0-alpha.1

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.
Files changed (92) hide show
  1. package/build-metadata.json +3 -3
  2. package/dist/dev/packages/@ember/-internals/glimmer/index.js +7 -7
  3. package/dist/dev/packages/@ember/application/index.js +5 -5
  4. package/dist/dev/packages/@ember/application/instance.js +4 -4
  5. package/dist/dev/packages/@ember/component/helper.js +4 -4
  6. package/dist/dev/packages/@ember/component/index.js +4 -4
  7. package/dist/dev/packages/@ember/component/template-only.js +2 -2
  8. package/dist/dev/packages/@ember/engine/index.js +5 -5
  9. package/dist/dev/packages/@ember/helper/index.js +24 -6
  10. package/dist/dev/packages/@ember/modifier/index.js +4 -4
  11. package/dist/dev/packages/@ember/modifier/on.js +2 -2
  12. package/dist/dev/packages/@ember/renderer/index.js +4 -4
  13. package/dist/dev/packages/@ember/routing/index.js +4 -4
  14. package/dist/dev/packages/@ember/template/index.js +4 -4
  15. package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +48 -6
  16. package/dist/dev/packages/@ember/template-compiler/lib/plugins/auto-import-builtins.js +57 -0
  17. package/dist/dev/packages/@ember/template-compiler/lib/plugins/index.js +3 -1
  18. package/dist/dev/packages/@ember/template-compiler/lib/template.js +29 -13
  19. package/dist/dev/packages/@ember/template-factory/index.js +1 -1
  20. package/dist/dev/packages/@glimmer/node/index.js +4 -4
  21. package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -2
  22. package/dist/dev/packages/@glimmer/program/index.js +1 -1
  23. package/dist/dev/packages/@glimmer/runtime/index.js +5 -5
  24. package/dist/dev/packages/ember/version.js +1 -1
  25. package/dist/dev/packages/ember-template-compiler/index.js +2 -2
  26. package/dist/dev/packages/shared-chunks/{compiler-CNj62pww.js → compiler-BenCxenr.js} +0 -3
  27. package/dist/dev/packages/shared-chunks/{constants-eoaL3OJQ.js → constants-DKn6zqFX.js} +1 -1
  28. package/dist/dev/packages/shared-chunks/{dynamic-CFg3dljk.js → dynamic-Cu9Xpdzc.js} +2 -18
  29. package/dist/dev/packages/shared-chunks/{element-builder-BOxP8emt.js → element-builder-Dw_Ic9cD.js} +1 -1
  30. package/dist/dev/packages/shared-chunks/{index-PxU6E7q8.js → index-AD_RxZjB.js} +117 -21
  31. package/dist/dev/packages/shared-chunks/{index-Q7JnrdBn.js → index-CtPSmMCE.js} +2 -2
  32. package/dist/dev/packages/shared-chunks/{invoke-DxRPE05O.js → invoke-D0D6CvD5.js} +1 -1
  33. package/dist/dev/packages/shared-chunks/{program-context-BRjCC_BA.js → program-context-yOi1EExe.js} +1 -1
  34. package/dist/dev/packages/shared-chunks/{rehydrate-builder-DPImr9e9.js → rehydrate-builder-CfBtYUkk.js} +2 -2
  35. package/dist/dev/packages/shared-chunks/{render-sg8BuFaE.js → render-t-LAXUYI.js} +3 -3
  36. package/dist/dev/packages/shared-chunks/{serialize-builder-b_gSYCSS.js → serialize-builder-BUG9CxHC.js} +3 -3
  37. package/dist/dev/packages/shared-chunks/{setup-registry-DGdDOxrk.js → setup-registry-CxXWLs26.js} +6 -6
  38. package/dist/prod/packages/@ember/-internals/glimmer/index.js +7 -7
  39. package/dist/prod/packages/@ember/application/index.js +5 -5
  40. package/dist/prod/packages/@ember/application/instance.js +4 -4
  41. package/dist/prod/packages/@ember/component/helper.js +4 -4
  42. package/dist/prod/packages/@ember/component/index.js +4 -4
  43. package/dist/prod/packages/@ember/component/template-only.js +2 -2
  44. package/dist/prod/packages/@ember/engine/index.js +5 -5
  45. package/dist/prod/packages/@ember/helper/index.js +24 -6
  46. package/dist/prod/packages/@ember/modifier/index.js +4 -4
  47. package/dist/prod/packages/@ember/modifier/on.js +2 -2
  48. package/dist/prod/packages/@ember/renderer/index.js +4 -4
  49. package/dist/prod/packages/@ember/routing/index.js +4 -4
  50. package/dist/prod/packages/@ember/template/index.js +4 -4
  51. package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +45 -6
  52. package/dist/prod/packages/@ember/template-compiler/lib/plugins/auto-import-builtins.js +57 -0
  53. package/dist/prod/packages/@ember/template-compiler/lib/plugins/index.js +3 -1
  54. package/dist/prod/packages/@ember/template-compiler/lib/template.js +29 -13
  55. package/dist/prod/packages/@ember/template-factory/index.js +1 -1
  56. package/dist/prod/packages/@glimmer/node/index.js +4 -4
  57. package/dist/prod/packages/@glimmer/opcode-compiler/index.js +2 -2
  58. package/dist/prod/packages/@glimmer/program/index.js +1 -1
  59. package/dist/prod/packages/@glimmer/runtime/index.js +5 -5
  60. package/dist/prod/packages/ember/version.js +1 -1
  61. package/dist/prod/packages/ember-template-compiler/index.js +2 -2
  62. package/dist/prod/packages/shared-chunks/{compiler-Ddfo5StE.js → compiler-Rwrmj1ki.js} +0 -3
  63. package/dist/prod/packages/shared-chunks/{constants-b-2IVErl.js → constants-CB3pk7dH.js} +1 -1
  64. package/dist/prod/packages/shared-chunks/{element-builder-CiLTrXD6.js → element-builder-DbktcGKV.js} +1 -1
  65. package/dist/prod/packages/shared-chunks/{index-DZLHQAlb.js → index-BVy-auLZ.js} +110 -21
  66. package/dist/prod/packages/shared-chunks/{index-CSVCFS_p.js → index-nW__r2nX.js} +2 -2
  67. package/dist/prod/packages/shared-chunks/{invoke-DxL00a1D.js → invoke-BuwCkcVB.js} +1 -1
  68. package/dist/prod/packages/shared-chunks/{on-CrTl7JQU.js → on-ByzWKBWe.js} +2 -18
  69. package/dist/prod/packages/shared-chunks/{program-context-C-JdYXRA.js → program-context-BdUXf-jj.js} +1 -1
  70. package/dist/prod/packages/shared-chunks/{rehydrate-builder-CSn1aIO1.js → rehydrate-builder-M_dh82nR.js} +2 -2
  71. package/dist/prod/packages/shared-chunks/{render-C1ZnScKH.js → render-DJ-BzvgU.js} +3 -3
  72. package/dist/prod/packages/shared-chunks/{serialize-builder-CVQ3q8rJ.js → serialize-builder-BpVMgrCr.js} +3 -3
  73. package/dist/prod/packages/shared-chunks/{setup-registry-CMNYh2jY.js → setup-registry-KYxkFexK.js} +6 -6
  74. package/docs/data.json +154 -51
  75. package/package.json +7 -6
  76. package/types/stable/@ember/-internals/glimmer/index.d.ts +1 -0
  77. package/types/stable/@ember/-internals/glimmer/lib/component-managers/mount.d.ts +1 -1
  78. package/types/stable/@ember/-internals/glimmer/lib/component-managers/route-template.d.ts +1 -2
  79. package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +29 -0
  80. package/types/stable/@ember/helper/index.d.ts +20 -0
  81. package/types/stable/@ember/template-compiler/lib/compile-options.d.ts +8 -0
  82. package/types/stable/@ember/template-compiler/lib/plugins/auto-import-builtins.d.ts +14 -0
  83. package/types/stable/@ember/template-compiler/lib/plugins/index.d.ts +3 -1
  84. package/types/stable/@ember/template-compiler/lib/types.d.ts +22 -3
  85. package/types/stable/@glimmer/global-context/index.d.ts +0 -3
  86. package/types/stable/@glimmer/interfaces/lib/compile/wire-format/api.d.ts +0 -1
  87. package/types/stable/@glimmer/interfaces/lib/managers/internal/component.d.ts +1 -2
  88. package/types/stable/@glimmer/interfaces/lib/runtime/debug-render-tree.d.ts +0 -2
  89. package/types/stable/@glimmer/runtime/lib/debug-render-tree.d.ts +0 -1
  90. package/types/stable/@glimmer/syntax/lib/parser/tokenizer-event-handlers.d.ts +0 -7
  91. package/types/stable/ember-template-compiler/lib/plugins/auto-import-builtins.d.ts +5 -0
  92. package/types/stable/index.d.ts +3 -0
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "7.0.0-beta.1",
2
+ "version": "7.1.0-alpha.1",
3
3
  "buildType": "tag",
4
- "SHA": "53ca7c905d35ef3e4da46b02e9cd9997e89e4894",
5
- "assetPath": "/tag/shas/53ca7c905d35ef3e4da46b02e9cd9997e89e4894.tgz"
4
+ "SHA": "1886f8de49cabe805b76e963db9c95a7a66d2aeb",
5
+ "assetPath": "/tag/shas/1886f8de49cabe805b76e963db9c95a7a66d2aeb.tgz"
6
6
  }
@@ -3,18 +3,18 @@ import '../../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../../../@glimmer/global-context/index.js';
4
4
  import '../../../@glimmer/validator/index.js';
5
5
  import '../../../shared-chunks/reference-C3TKDRnP.js';
6
- export { t as template, a as templateCacheCounters } from '../../../shared-chunks/index-Q7JnrdBn.js';
6
+ export { t as template, a as templateCacheCounters } from '../../../shared-chunks/index-CtPSmMCE.js';
7
7
  import '../../../@glimmer/destroyable/index.js';
8
8
  import '../../../shared-chunks/capabilities-O_xc7Yqk.js';
9
9
  export { componentCapabilities, modifierCapabilities } from '../../../@glimmer/manager/index.js';
10
- export { C as Component, H as Helper, I as Input, L as LinkTo, O as OutletView, b as Renderer, R as RootTemplate, S as SafeString, T as Textarea, c as TrustedHTML, _ as _resetRenderers, h as helper, d as htmlSafe, i as isHTMLSafe, e as isTrustedHTML, f as renderComponent, r as renderSettled, t as trustHTML, u as uniqueId } from '../../../shared-chunks/index-PxU6E7q8.js';
11
- export { s as setupApplicationRegistry, a as setupEngineRegistry } from '../../../shared-chunks/setup-registry-DGdDOxrk.js';
12
- export { D as DOMChanges } from '../../../shared-chunks/dynamic-CFg3dljk.js';
13
- import '../../../shared-chunks/constants-eoaL3OJQ.js';
14
- export { i as isSerializationFirstNode } from '../../../shared-chunks/rehydrate-builder-DPImr9e9.js';
10
+ export { C as Component, H as Helper, I as Input, L as LinkTo, O as OutletView, b as Renderer, R as RootTemplate, S as SafeString, T as Textarea, c as TrustedHTML, _ as _resetRenderers, g as element, h as helper, d as htmlSafe, i as isHTMLSafe, e as isTrustedHTML, f as renderComponent, r as renderSettled, t as trustHTML, u as uniqueId } from '../../../shared-chunks/index-AD_RxZjB.js';
11
+ export { s as setupApplicationRegistry, a as setupEngineRegistry } from '../../../shared-chunks/setup-registry-CxXWLs26.js';
12
+ export { D as DOMChanges } from '../../../shared-chunks/dynamic-Cu9Xpdzc.js';
13
+ import '../../../shared-chunks/constants-DKn6zqFX.js';
14
+ export { i as isSerializationFirstNode } from '../../../shared-chunks/rehydrate-builder-CfBtYUkk.js';
15
15
  export { NodeDOMTreeConstruction } from '../../../@glimmer/node/index.js';
16
16
  export { setComponentManager } from '../../component/index.js';
17
- export { D as DOMTreeConstruction } from '../../../shared-chunks/element-builder-BOxP8emt.js';
17
+ export { D as DOMTreeConstruction } from '../../../shared-chunks/element-builder-Dw_Ic9cD.js';
18
18
 
19
19
  // STATE within a module is frowned upon, this exists
20
20
  // to support Ember.TEMPLATES but shield ember internals from this legacy
@@ -43,11 +43,11 @@ import ApplicationInstance from './instance.js';
43
43
  import Engine, { buildInitializerMethod } from '../engine/index.js';
44
44
  import { privatize } from '../-internals/container/index.js';
45
45
  import '../../shared-chunks/fragment-Cc5k9Oy4.js';
46
- import '../../shared-chunks/index-Q7JnrdBn.js';
47
- import '../../shared-chunks/index-PxU6E7q8.js';
48
- import { s as setupApplicationRegistry } from '../../shared-chunks/setup-registry-DGdDOxrk.js';
49
- import '../../shared-chunks/dynamic-CFg3dljk.js';
50
- import '../../shared-chunks/constants-eoaL3OJQ.js';
46
+ import '../../shared-chunks/index-CtPSmMCE.js';
47
+ import '../../shared-chunks/index-AD_RxZjB.js';
48
+ import { s as setupApplicationRegistry } from '../../shared-chunks/setup-registry-CxXWLs26.js';
49
+ import '../../shared-chunks/dynamic-Cu9Xpdzc.js';
50
+ import '../../shared-chunks/constants-DKn6zqFX.js';
51
51
  import RouterService from '../routing/router-service.js';
52
52
  import { assert } from '../debug/lib/assert.js';
53
53
 
@@ -6,14 +6,14 @@ import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
6
6
  import '../../@glimmer/global-context/index.js';
7
7
  import '../../@glimmer/validator/index.js';
8
8
  import '../../shared-chunks/reference-C3TKDRnP.js';
9
- import '../../shared-chunks/index-Q7JnrdBn.js';
9
+ import '../../shared-chunks/index-CtPSmMCE.js';
10
10
  import '../../@glimmer/destroyable/index.js';
11
11
  import '../../shared-chunks/capabilities-O_xc7Yqk.js';
12
- import { r as renderSettled } from '../../shared-chunks/index-PxU6E7q8.js';
12
+ import { r as renderSettled } from '../../shared-chunks/index-AD_RxZjB.js';
13
13
  import '../-internals/container/index.js';
14
14
  import '../debug/index.js';
15
- import '../../shared-chunks/dynamic-CFg3dljk.js';
16
- import '../../shared-chunks/constants-eoaL3OJQ.js';
15
+ import '../../shared-chunks/dynamic-Cu9Xpdzc.js';
16
+ import '../../shared-chunks/constants-DKn6zqFX.js';
17
17
  import '../runloop/index.js';
18
18
  import EmberRouter from '../routing/router.js';
19
19
  import '../../shared-chunks/mandatory-setter-DHZe7-kW.js';
@@ -3,12 +3,12 @@ import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../../@glimmer/global-context/index.js';
4
4
  import '../../@glimmer/validator/index.js';
5
5
  import '../../shared-chunks/reference-C3TKDRnP.js';
6
- import '../../shared-chunks/index-Q7JnrdBn.js';
6
+ import '../../shared-chunks/index-CtPSmMCE.js';
7
7
  import '../../@glimmer/destroyable/index.js';
8
8
  import '../../shared-chunks/capabilities-O_xc7Yqk.js';
9
- export { H as default, h as helper } from '../../shared-chunks/index-PxU6E7q8.js';
9
+ export { H as default, h as helper } from '../../shared-chunks/index-AD_RxZjB.js';
10
10
  import '../-internals/container/index.js';
11
11
  import '../debug/index.js';
12
- import '../../shared-chunks/dynamic-CFg3dljk.js';
13
- import '../../shared-chunks/constants-eoaL3OJQ.js';
12
+ import '../../shared-chunks/dynamic-Cu9Xpdzc.js';
13
+ import '../../shared-chunks/constants-DKn6zqFX.js';
14
14
  import '../runloop/index.js';
@@ -8,12 +8,12 @@ import { setComponentManager as setComponentManager$1 } from '../../@glimmer/man
8
8
  export { componentCapabilities as capabilities } from '../../@glimmer/manager/index.js';
9
9
  export { g as getComponentTemplate, s as setComponentTemplate } from '../../shared-chunks/template-kM-7TTcc.js';
10
10
  import '../../shared-chunks/fragment-Cc5k9Oy4.js';
11
- import '../../shared-chunks/index-Q7JnrdBn.js';
12
- export { I as Input, T as Textarea, C as default } from '../../shared-chunks/index-PxU6E7q8.js';
11
+ import '../../shared-chunks/index-CtPSmMCE.js';
12
+ export { I as Input, T as Textarea, C as default } from '../../shared-chunks/index-AD_RxZjB.js';
13
13
  import '../-internals/container/index.js';
14
14
  import '../debug/index.js';
15
- import '../../shared-chunks/dynamic-CFg3dljk.js';
16
- import '../../shared-chunks/constants-eoaL3OJQ.js';
15
+ import '../../shared-chunks/dynamic-Cu9Xpdzc.js';
16
+ import '../../shared-chunks/constants-DKn6zqFX.js';
17
17
  import '../runloop/index.js';
18
18
 
19
19
  /**
@@ -3,8 +3,8 @@ import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../../@glimmer/global-context/index.js';
4
4
  import '../../@glimmer/validator/index.js';
5
5
  import '../../shared-chunks/reference-C3TKDRnP.js';
6
- import { z as templateOnlyComponent } from '../../shared-chunks/dynamic-CFg3dljk.js';
7
- import '../../shared-chunks/constants-eoaL3OJQ.js';
6
+ import { z as templateOnlyComponent } from '../../shared-chunks/dynamic-Cu9Xpdzc.js';
7
+ import '../../shared-chunks/constants-DKn6zqFX.js';
8
8
  import '../../@glimmer/destroyable/index.js';
9
9
  import '../../shared-chunks/capabilities-O_xc7Yqk.js';
10
10
 
@@ -28,11 +28,11 @@ import '../-internals/views/lib/views/core_view.js';
28
28
  import '../-internals/views/lib/mixins/action_support.js';
29
29
  import '../-internals/views/lib/views/states.js';
30
30
  import '../../shared-chunks/fragment-Cc5k9Oy4.js';
31
- import '../../shared-chunks/index-Q7JnrdBn.js';
32
- import '../../shared-chunks/index-PxU6E7q8.js';
33
- import { a as setupEngineRegistry } from '../../shared-chunks/setup-registry-DGdDOxrk.js';
34
- import '../../shared-chunks/dynamic-CFg3dljk.js';
35
- import '../../shared-chunks/constants-eoaL3OJQ.js';
31
+ import '../../shared-chunks/index-CtPSmMCE.js';
32
+ import '../../shared-chunks/index-AD_RxZjB.js';
33
+ import { a as setupEngineRegistry } from '../../shared-chunks/setup-registry-CxXWLs26.js';
34
+ import '../../shared-chunks/dynamic-Cu9Xpdzc.js';
35
+ import '../../shared-chunks/constants-DKn6zqFX.js';
36
36
  import '../runloop/index.js';
37
37
  import RegistryProxyMixin from '../-internals/runtime/lib/mixins/registry_proxy.js';
38
38
  import '../-internals/runtime/lib/mixins/container_proxy.js';
@@ -7,11 +7,11 @@ import '../../@glimmer/validator/index.js';
7
7
  import '../../shared-chunks/reference-C3TKDRnP.js';
8
8
  import { setHelperManager as setHelperManager$1 } from '../../@glimmer/manager/index.js';
9
9
  import '../../shared-chunks/fragment-Cc5k9Oy4.js';
10
- import { i as array$1, k as concat$1, o as fn$1, p as get$1, q as hash$1 } from '../../shared-chunks/dynamic-CFg3dljk.js';
11
- import '../../shared-chunks/constants-eoaL3OJQ.js';
12
- import { i as invokeHelper$1 } from '../../shared-chunks/invoke-DxRPE05O.js';
13
- import '../../shared-chunks/index-Q7JnrdBn.js';
14
- import { u as uniqueId$1 } from '../../shared-chunks/index-PxU6E7q8.js';
10
+ import { i as array$1, k as concat$1, o as fn$1, p as get$1, q as hash$1 } from '../../shared-chunks/dynamic-Cu9Xpdzc.js';
11
+ import '../../shared-chunks/constants-DKn6zqFX.js';
12
+ import { i as invokeHelper$1 } from '../../shared-chunks/invoke-D0D6CvD5.js';
13
+ import '../../shared-chunks/index-CtPSmMCE.js';
14
+ import { g as glimmerElement, u as uniqueId$1 } from '../../shared-chunks/index-AD_RxZjB.js';
15
15
  import '../-internals/container/index.js';
16
16
  import '../debug/index.js';
17
17
  import '../runloop/index.js';
@@ -466,6 +466,24 @@ const get = get$1;
466
466
  * ```
467
467
  */
468
468
  const fn = fn$1;
469
+ /**
470
+ * The `element` helper lets you dynamically set the tag name of an element.
471
+ *
472
+ * ```js
473
+ * import { element } from '@ember/helper';
474
+ *
475
+ * <template>
476
+ * {{#let (element @tagName) as |Tag|}}
477
+ * <Tag class="my-element">Hello</Tag>
478
+ * {{/let}}
479
+ * </template>
480
+ * ```
481
+ *
482
+ * When `@tagName` is `"h1"`, this renders `<h1 class="my-element">Hello</h1>`.
483
+ * When `@tagName` is an empty string, the block content is rendered without a
484
+ * wrapping element. When `@tagName` is `null` or `undefined`, nothing is rendered.
485
+ */
486
+ const element = glimmerElement;
469
487
  /**
470
488
  * Use the {{uniqueId}} helper to generate a unique ID string suitable for use as
471
489
  * an ID attribute in the DOM.
@@ -488,4 +506,4 @@ const uniqueId = uniqueId$1;
488
506
 
489
507
  /* eslint-enable @typescript-eslint/no-empty-object-type */
490
508
 
491
- export { array, capabilities, concat, fn, get, hash, invokeHelper, setHelperManager, uniqueId };
509
+ export { array, capabilities, concat, element, fn, get, hash, invokeHelper, setHelperManager, uniqueId };
@@ -8,12 +8,12 @@ import { setModifierManager as setModifierManager$1 } from '../../@glimmer/manag
8
8
  export { modifierCapabilities as capabilities } from '../../@glimmer/manager/index.js';
9
9
  export { on } from './on.js';
10
10
  import '../../shared-chunks/fragment-Cc5k9Oy4.js';
11
- import '../../shared-chunks/index-Q7JnrdBn.js';
12
- import '../../shared-chunks/index-PxU6E7q8.js';
11
+ import '../../shared-chunks/index-CtPSmMCE.js';
12
+ import '../../shared-chunks/index-AD_RxZjB.js';
13
13
  import '../-internals/container/index.js';
14
14
  import '../debug/index.js';
15
- import '../../shared-chunks/dynamic-CFg3dljk.js';
16
- import '../../shared-chunks/constants-eoaL3OJQ.js';
15
+ import '../../shared-chunks/dynamic-Cu9Xpdzc.js';
16
+ import '../../shared-chunks/constants-DKn6zqFX.js';
17
17
  import '../runloop/index.js';
18
18
 
19
19
  // NOTE: this uses assignment to *require* that the `glimmerSetModifierManager`
@@ -3,8 +3,8 @@ import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../../@glimmer/global-context/index.js';
4
4
  import '../../@glimmer/validator/index.js';
5
5
  import '../../shared-chunks/reference-C3TKDRnP.js';
6
- import { t as on$1 } from '../../shared-chunks/dynamic-CFg3dljk.js';
7
- import '../../shared-chunks/constants-eoaL3OJQ.js';
6
+ import { t as on$1 } from '../../shared-chunks/dynamic-Cu9Xpdzc.js';
7
+ import '../../shared-chunks/constants-DKn6zqFX.js';
8
8
  import '../../@glimmer/destroyable/index.js';
9
9
  import '../../shared-chunks/capabilities-O_xc7Yqk.js';
10
10
 
@@ -3,12 +3,12 @@ import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../../@glimmer/global-context/index.js';
4
4
  import '../../@glimmer/validator/index.js';
5
5
  import '../../shared-chunks/reference-C3TKDRnP.js';
6
- import '../../shared-chunks/index-Q7JnrdBn.js';
6
+ import '../../shared-chunks/index-CtPSmMCE.js';
7
7
  import '../../@glimmer/destroyable/index.js';
8
8
  import '../../shared-chunks/capabilities-O_xc7Yqk.js';
9
- export { f as renderComponent, r as renderSettled } from '../../shared-chunks/index-PxU6E7q8.js';
9
+ export { f as renderComponent, r as renderSettled } from '../../shared-chunks/index-AD_RxZjB.js';
10
10
  import '../-internals/container/index.js';
11
11
  import '../debug/index.js';
12
- import '../../shared-chunks/dynamic-CFg3dljk.js';
13
- import '../../shared-chunks/constants-eoaL3OJQ.js';
12
+ import '../../shared-chunks/dynamic-Cu9Xpdzc.js';
13
+ import '../../shared-chunks/constants-DKn6zqFX.js';
14
14
  import '../runloop/index.js';
@@ -3,12 +3,12 @@ import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../../@glimmer/global-context/index.js';
4
4
  import '../../@glimmer/validator/index.js';
5
5
  import '../../shared-chunks/reference-C3TKDRnP.js';
6
- import '../../shared-chunks/index-Q7JnrdBn.js';
6
+ import '../../shared-chunks/index-CtPSmMCE.js';
7
7
  import '../../@glimmer/destroyable/index.js';
8
8
  import '../../shared-chunks/capabilities-O_xc7Yqk.js';
9
- export { L as LinkTo } from '../../shared-chunks/index-PxU6E7q8.js';
9
+ export { L as LinkTo } from '../../shared-chunks/index-AD_RxZjB.js';
10
10
  import '../-internals/container/index.js';
11
11
  import '../debug/index.js';
12
- import '../../shared-chunks/dynamic-CFg3dljk.js';
13
- import '../../shared-chunks/constants-eoaL3OJQ.js';
12
+ import '../../shared-chunks/dynamic-Cu9Xpdzc.js';
13
+ import '../../shared-chunks/constants-DKn6zqFX.js';
14
14
  import '../runloop/index.js';
@@ -3,12 +3,12 @@ import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../../@glimmer/global-context/index.js';
4
4
  import '../../@glimmer/validator/index.js';
5
5
  import '../../shared-chunks/reference-C3TKDRnP.js';
6
- import '../../shared-chunks/index-Q7JnrdBn.js';
6
+ import '../../shared-chunks/index-CtPSmMCE.js';
7
7
  import '../../@glimmer/destroyable/index.js';
8
8
  import '../../shared-chunks/capabilities-O_xc7Yqk.js';
9
- export { d as htmlSafe, i as isHTMLSafe, e as isTrustedHTML, t as trustHTML } from '../../shared-chunks/index-PxU6E7q8.js';
9
+ export { d as htmlSafe, i as isHTMLSafe, e as isTrustedHTML, t as trustHTML } from '../../shared-chunks/index-AD_RxZjB.js';
10
10
  import '../-internals/container/index.js';
11
11
  import '../debug/index.js';
12
- import '../../shared-chunks/dynamic-CFg3dljk.js';
13
- import '../../shared-chunks/constants-eoaL3OJQ.js';
12
+ import '../../shared-chunks/dynamic-Cu9Xpdzc.js';
13
+ import '../../shared-chunks/constants-DKn6zqFX.js';
14
14
  import '../runloop/index.js';
@@ -1,4 +1,19 @@
1
+ import { fn } from '../../helper/index.js';
2
+ import '../../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
+ import '../../../@glimmer/global-context/index.js';
4
+ import '../../../@glimmer/destroyable/index.js';
5
+ import '../../../@glimmer/validator/index.js';
6
+ import '../../../shared-chunks/reference-C3TKDRnP.js';
7
+ import '../../../shared-chunks/capabilities-O_xc7Yqk.js';
8
+ import { on } from '../../modifier/on.js';
9
+ import '../../../shared-chunks/fragment-Cc5k9Oy4.js';
10
+ import '../../../shared-chunks/index-CtPSmMCE.js';
11
+ import '../../../shared-chunks/index-AD_RxZjB.js';
12
+ import '../../-internals/container/index.js';
1
13
  import '../../debug/index.js';
14
+ import '../../../shared-chunks/dynamic-Cu9Xpdzc.js';
15
+ import '../../../shared-chunks/constants-DKn6zqFX.js';
16
+ import '../../runloop/index.js';
2
17
  import { STRICT_MODE_KEYWORDS, STRICT_MODE_TRANSFORMS, RESOLUTION_MODE_TRANSFORMS } from './plugins/index.js';
3
18
  import { ALLOWED_GLOBALS } from './plugins/allowed-globals.js';
4
19
  import COMPONENT_NAME_SIMPLE_DASHERIZE_CACHE from './dasherize-component-name.js';
@@ -8,10 +23,21 @@ let USER_PLUGINS = [];
8
23
  function malformedComponentLookup(string) {
9
24
  return string.indexOf('::') === -1 && string.indexOf(':') > -1;
10
25
  }
26
+
27
+ /**
28
+ * The variable name used to inject the keywords object into the
29
+ * template's evaluation scope. auto-import-builtins rewrites bare
30
+ * keyword references (e.g. `on`) to property accesses on this
31
+ * variable (e.g. `__ember_keywords__.on`).
32
+ */
33
+ const RUNTIME_KEYWORDS_NAME = '__ember_keywords__';
34
+ const keywords = {
35
+ fn,
36
+ on
37
+ };
11
38
  function buildCompileOptions(_options) {
12
39
  let moduleName = _options.moduleName;
13
40
  let options = {
14
- meta: {},
15
41
  isProduction: false,
16
42
  plugins: {
17
43
  ast: []
@@ -23,10 +49,22 @@ function buildCompileOptions(_options) {
23
49
  return COMPONENT_NAME_SIMPLE_DASHERIZE_CACHE.get(tagname);
24
50
  }
25
51
  };
26
- if ('eval' in options) {
52
+ options.meta ||= {};
53
+ options.meta.emberRuntime ||= {
54
+ lookupKeyword(name) {
55
+ (!(name in keywords) && assert(`${name} is not a known keyword. Available keywords: ${Object.keys(keywords).join(', ')}`, name in keywords));
56
+ return `${RUNTIME_KEYWORDS_NAME}.${name}`;
57
+ }
58
+ };
59
+ if ('eval' in options && options.eval) {
27
60
  const localScopeEvaluator = options.eval;
28
61
  const globalScopeEvaluator = value => new Function(`return ${value};`)();
29
62
  options.lexicalScope = variable => {
63
+ // The keywords container variable is always "in scope" —
64
+ // we inject it via the evaluator in template.ts.
65
+ if (variable === RUNTIME_KEYWORDS_NAME) {
66
+ return true;
67
+ }
30
68
  if (ALLOWED_GLOBALS.has(variable)) {
31
69
  return variable in globalThis;
32
70
  }
@@ -39,11 +77,15 @@ function buildCompileOptions(_options) {
39
77
  }
40
78
  if ('scope' in options) {
41
79
  const scope = options.scope();
42
- options.lexicalScope = variable => {
43
- return variable in scope;
44
- };
80
+ options.lexicalScope = variable => variable in scope || variable === RUNTIME_KEYWORDS_NAME;
45
81
  delete options.scope;
46
82
  }
83
+
84
+ // When neither eval nor scope is provided, the keywords container
85
+ // still needs to be visible to the compiler.
86
+ if (!options.lexicalScope) {
87
+ options.lexicalScope = variable => variable === RUNTIME_KEYWORDS_NAME;
88
+ }
47
89
  if ('locals' in options && !options.locals) {
48
90
  // Glimmer's precompile options declare `locals` like:
49
91
  // locals?: string[]
@@ -108,4 +150,4 @@ function inScope(variable, evaluator) {
108
150
  }
109
151
  }
110
152
 
111
- export { compileOptions as default };
153
+ export { RUNTIME_KEYWORDS_NAME, compileOptions as default, keywords };
@@ -0,0 +1,57 @@
1
+ import { trackLocals, isPath } from './utils.js';
2
+
3
+ /**
4
+ @module ember
5
+ */
6
+
7
+ /**
8
+ A Glimmer2 AST transformation that makes importable keywords work
9
+
10
+ @private
11
+ @class TransformActionSyntax
12
+ */
13
+
14
+ function autoImportBuiltins(env) {
15
+ let {
16
+ hasLocal,
17
+ visitor
18
+ } = trackLocals(env);
19
+ return {
20
+ name: 'auto-import-built-ins',
21
+ visitor: {
22
+ ...visitor,
23
+ ElementModifierStatement(node) {
24
+ if (isOn(node, hasLocal)) {
25
+ rewriteKeyword(env, node, 'on', '@ember/modifier');
26
+ }
27
+ },
28
+ SubExpression(node) {
29
+ if (isFn(node, hasLocal)) {
30
+ rewriteKeyword(env, node, 'fn', '@ember/helper');
31
+ }
32
+ },
33
+ MustacheStatement(node) {
34
+ if (isFn(node, hasLocal)) {
35
+ rewriteKeyword(env, node, 'fn', '@ember/helper');
36
+ }
37
+ }
38
+ }
39
+ };
40
+ }
41
+ function rewriteKeyword(env, node, name, moduleSpecifier) {
42
+ if (env.meta?.jsutils) {
43
+ node.path.original = env.meta.jsutils.bindImport(moduleSpecifier, name, node, {
44
+ name
45
+ });
46
+ } else if (env.meta?.emberRuntime) {
47
+ node.path.original = env.meta.emberRuntime.lookupKeyword(name);
48
+ }
49
+ }
50
+ function isOn(node, hasLocal) {
51
+ return isPath(node.path) && node.path.original === 'on' && !hasLocal('on');
52
+ }
53
+ function isFn(node, hasLocal) {
54
+ return isPath(node.path) && node.path.original === 'fn' && !hasLocal('fn');
55
+ }
56
+
57
+ export { autoImportBuiltins as default };
@@ -9,8 +9,10 @@ import transformInElement from './transform-in-element.js';
9
9
  import transformQuotedBindingsIntoJustBindings from './transform-quoted-bindings-into-just-bindings.js';
10
10
  import { a1 as transformResolutions } from '../../../../shared-chunks/transform-resolutions-fXGQKGsL.js';
11
11
  import transformWrapMountAndOutlet from './transform-wrap-mount-and-outlet.js';
12
+ import autoImportBuiltins from './auto-import-builtins.js';
12
13
 
13
14
  const INTERNAL_PLUGINS = {
15
+ AutoImportBuiltins: autoImportBuiltins,
14
16
  AssertAgainstAttrs: assertAgainstAttrs,
15
17
  AssertAgainstNamedOutlets: assertAgainstNamedOutlets,
16
18
  AssertInputHelperWithoutBlock: errorOnInputWithContent,
@@ -26,7 +28,7 @@ const INTERNAL_PLUGINS = {
26
28
 
27
29
  // order of plugins is important
28
30
  const RESOLUTION_MODE_TRANSFORMS = Object.freeze([transformQuotedBindingsIntoJustBindings, assertReservedNamedArguments, transformActionSyntax, assertAgainstAttrs, transformEachInIntoEach, errorOnInputWithContent, transformInElement, transformEachTrackArray, assertAgainstNamedOutlets, transformWrapMountAndOutlet, transformResolutions]);
29
- const STRICT_MODE_TRANSFORMS = Object.freeze([transformQuotedBindingsIntoJustBindings, assertReservedNamedArguments, transformActionSyntax, transformEachInIntoEach, transformInElement, transformEachTrackArray, assertAgainstNamedOutlets, transformWrapMountAndOutlet]);
31
+ const STRICT_MODE_TRANSFORMS = Object.freeze([autoImportBuiltins, transformQuotedBindingsIntoJustBindings, assertReservedNamedArguments, transformActionSyntax, transformEachInIntoEach, transformInElement, transformEachTrackArray, assertAgainstNamedOutlets, transformWrapMountAndOutlet]);
30
32
  const STRICT_MODE_KEYWORDS = Object.freeze(['action', 'mut', 'readonly', 'unbound',
31
33
  // TransformEachInIntoEach
32
34
  '-each-in',
@@ -3,15 +3,15 @@ import templateOnly from '../../component/template-only.js';
3
3
  import '../../../shared-chunks/fragment-Cc5k9Oy4.js';
4
4
  import '../../../shared-chunks/debug-to-string-CFb7h0lY.js';
5
5
  import '../../../@glimmer/wire-format/index.js';
6
- import { p as precompile } from '../../../shared-chunks/compiler-CNj62pww.js';
6
+ import { p as precompile } from '../../../shared-chunks/compiler-BenCxenr.js';
7
7
  import '../../../@glimmer/global-context/index.js';
8
8
  import '../../../@glimmer/destroyable/index.js';
9
9
  import '../../../@glimmer/validator/index.js';
10
10
  import '../../../shared-chunks/reference-C3TKDRnP.js';
11
11
  import '../../../shared-chunks/capabilities-O_xc7Yqk.js';
12
12
  import { s as setComponentTemplate } from '../../../shared-chunks/template-kM-7TTcc.js';
13
- import { t as templateFactory } from '../../../shared-chunks/index-Q7JnrdBn.js';
14
- import compileOptions from './compile-options.js';
13
+ import { t as templateFactory } from '../../../shared-chunks/index-CtPSmMCE.js';
14
+ import compileOptions, { RUNTIME_KEYWORDS_NAME, keywords } from './compile-options.js';
15
15
 
16
16
  /**
17
17
  * All possible options passed to `template()` may specify a `moduleName`.
@@ -209,24 +209,40 @@ function template(templateString, providedOptions) {
209
209
  const normalizedOptions = compileOptions(options);
210
210
  const component = normalizedOptions.component ?? templateOnly();
211
211
  const source = precompile(templateString, normalizedOptions);
212
- const template = templateFactory(evaluate(`(${source})`));
212
+ const wire = evaluate(`(${source})`);
213
+ const template = templateFactory(wire);
213
214
  setComponentTemplate(template, component);
214
215
  return component;
215
216
  }
216
- const evaluator = source => {
217
- return new Function(`return ${source}`)();
218
- };
217
+
218
+ /**
219
+ * Builds the source wireformat JSON block
220
+ *
221
+ * @param options
222
+ * @returns
223
+ */
219
224
  function buildEvaluator(options) {
220
- if (options === undefined) {
221
- return evaluator;
222
- }
223
225
  if (options.eval) {
224
- return options.eval;
226
+ const userEval = options.eval;
227
+
228
+ // Wrap the compiled source in a function that receives the keywords
229
+ // container as a parameter. The user's eval evaluates this in the
230
+ // caller's scope, so local variables (like `handleClick`) are captured
231
+ // via closure, while `__keywords__` comes from the function parameter.
232
+ return source => {
233
+ let wrapperFn = userEval(`(function(${RUNTIME_KEYWORDS_NAME}){ return (${source}); })`);
234
+ return wrapperFn(keywords);
235
+ };
225
236
  } else {
226
- const scope = options.scope?.();
237
+ let scope = options.scope?.();
227
238
  if (!scope) {
228
- return evaluator;
239
+ return source => {
240
+ return new Function(RUNTIME_KEYWORDS_NAME, `return (${source})`)(keywords);
241
+ };
229
242
  }
243
+ scope = Object.assign({
244
+ [RUNTIME_KEYWORDS_NAME]: keywords
245
+ }, scope);
230
246
  return source => {
231
247
  let hasThis = Object.prototype.hasOwnProperty.call(scope, 'this');
232
248
  let thisValue = hasThis ? scope.this : undefined;
@@ -3,6 +3,6 @@ import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../../@glimmer/global-context/index.js';
4
4
  import '../../@glimmer/validator/index.js';
5
5
  import '../../shared-chunks/reference-C3TKDRnP.js';
6
- export { t as createTemplateFactory } from '../../shared-chunks/index-Q7JnrdBn.js';
6
+ export { t as createTemplateFactory } from '../../shared-chunks/index-CtPSmMCE.js';
7
7
  import '../../@glimmer/destroyable/index.js';
8
8
  import '../../shared-chunks/capabilities-O_xc7Yqk.js';
@@ -3,13 +3,13 @@ import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../global-context/index.js';
4
4
  import '../validator/index.js';
5
5
  import '../../shared-chunks/reference-C3TKDRnP.js';
6
- import { C as ConcreteBounds } from '../../shared-chunks/dynamic-CFg3dljk.js';
7
- import '../../shared-chunks/constants-eoaL3OJQ.js';
6
+ import { C as ConcreteBounds } from '../../shared-chunks/dynamic-Cu9Xpdzc.js';
7
+ import '../../shared-chunks/constants-DKn6zqFX.js';
8
8
  import '../destroyable/index.js';
9
9
  import '../../shared-chunks/capabilities-O_xc7Yqk.js';
10
10
  import createHTMLDocument from '../../@simple-dom/document/index.js';
11
- import { D as DOMTreeConstruction } from '../../shared-chunks/element-builder-BOxP8emt.js';
12
- export { s as serializeBuilder } from '../../shared-chunks/serialize-builder-b_gSYCSS.js';
11
+ import { D as DOMTreeConstruction } from '../../shared-chunks/element-builder-Dw_Ic9cD.js';
12
+ export { s as serializeBuilder } from '../../shared-chunks/serialize-builder-BUG9CxHC.js';
13
13
 
14
14
  class NodeDOMTreeConstruction extends DOMTreeConstruction {
15
15
  // Hides property on base class
@@ -1,10 +1,10 @@
1
- export { E as EMPTY_BLOCKS, W as WrappedBuilder, c as compilable, b as compileStatements, I as invokeStaticBlock, d as invokeStaticBlockWithStack, m as meta, a as templateCacheCounters, e as templateCompilationContext, t as templateFactory } from '../../shared-chunks/index-Q7JnrdBn.js';
1
+ export { E as EMPTY_BLOCKS, W as WrappedBuilder, c as compilable, b as compileStatements, I as invokeStaticBlock, d as invokeStaticBlockWithStack, m as meta, a as templateCacheCounters, e as templateCompilationContext, t as templateFactory } from '../../shared-chunks/index-CtPSmMCE.js';
2
2
  import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../../shared-chunks/fragment-Cc5k9Oy4.js';
4
4
  import '../global-context/index.js';
5
5
  import '../validator/index.js';
6
6
  import '../../shared-chunks/reference-C3TKDRnP.js';
7
- export { E as EvaluationContextImpl, S as StdLib, c as compileStd } from '../../shared-chunks/program-context-BRjCC_BA.js';
7
+ export { E as EvaluationContextImpl, S as StdLib, c as compileStd } from '../../shared-chunks/program-context-yOi1EExe.js';
8
8
 
9
9
  let debugCompiler;
10
10
 
@@ -1,4 +1,4 @@
1
- import { C as ConstantsImpl } from '../../shared-chunks/constants-eoaL3OJQ.js';
1
+ import { C as ConstantsImpl } from '../../shared-chunks/constants-DKn6zqFX.js';
2
2
  import { a as ProgramHeapImpl } from '../../shared-chunks/program-DfV0v8aa.js';
3
3
  export { P as ProgramImpl, R as RuntimeOpImpl } from '../../shared-chunks/program-DfV0v8aa.js';
4
4
 
@@ -3,9 +3,9 @@ import '../../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../global-context/index.js';
4
4
  import '../validator/index.js';
5
5
  import '../../shared-chunks/reference-C3TKDRnP.js';
6
- export { C as ConcreteBounds, a as CurriedValue, b as CursorImpl, D as DOMChanges, c as DynamicAttribute, E as EMPTY_ARGS, d as EMPTY_NAMED, e as EMPTY_POSITIONAL, f as IDOMChanges, S as SimpleDynamicAttribute, T as TEMPLATE_ONLY_COMPONENT_MANAGER, g as TemplateOnlyComponent, h as TemplateOnlyComponentManager, i as array, j as clear, k as concat, l as createCapturedArgs, m as curry, n as dynamicAttribute, o as fn, p as get, q as hash, r as isWhitespace, s as normalizeProperty, t as on, u as reifyArgs, v as reifyNamed, w as reifyPositional, x as resetDebuggerCallback, y as setDebuggerCallback, z as templateOnlyComponent } from '../../shared-chunks/dynamic-CFg3dljk.js';
7
- export { D as DynamicScopeImpl, E as EnvironmentImpl, L as LowLevelVM, S as ScopeImpl, U as UpdatingVM, i as inTransaction, r as renderComponent, a as renderMain, b as renderSync, c as runtimeOptions } from '../../shared-chunks/render-sg8BuFaE.js';
8
- export { i as invokeHelper } from '../../shared-chunks/invoke-DxRPE05O.js';
6
+ export { C as ConcreteBounds, a as CurriedValue, b as CursorImpl, D as DOMChanges, c as DynamicAttribute, E as EMPTY_ARGS, d as EMPTY_NAMED, e as EMPTY_POSITIONAL, f as IDOMChanges, S as SimpleDynamicAttribute, T as TEMPLATE_ONLY_COMPONENT_MANAGER, g as TemplateOnlyComponent, h as TemplateOnlyComponentManager, i as array, j as clear, k as concat, l as createCapturedArgs, m as curry, n as dynamicAttribute, o as fn, p as get, q as hash, r as isWhitespace, s as normalizeProperty, t as on, u as reifyArgs, v as reifyNamed, w as reifyPositional, x as resetDebuggerCallback, y as setDebuggerCallback, z as templateOnlyComponent } from '../../shared-chunks/dynamic-Cu9Xpdzc.js';
7
+ export { D as DynamicScopeImpl, E as EnvironmentImpl, L as LowLevelVM, S as ScopeImpl, U as UpdatingVM, i as inTransaction, r as renderComponent, a as renderMain, b as renderSync, c as runtimeOptions } from '../../shared-chunks/render-t-LAXUYI.js';
8
+ export { i as invokeHelper } from '../../shared-chunks/invoke-D0D6CvD5.js';
9
9
  export { destroy, isDestroyed, isDestroying, registerDestructor } from '../destroyable/index.js';
10
- export { D as DOMTreeConstruction, N as NewTreeBuilder, R as RemoteBlock, a as ResettableBlockImpl, c as clientBuilder } from '../../shared-chunks/element-builder-BOxP8emt.js';
11
- export { R as RehydrateTree, S as SERIALIZATION_FIRST_NODE_STRING, i as isSerializationFirstNode, r as rehydrationBuilder } from '../../shared-chunks/rehydrate-builder-DPImr9e9.js';
10
+ export { D as DOMTreeConstruction, N as NewTreeBuilder, R as RemoteBlock, a as ResettableBlockImpl, c as clientBuilder } from '../../shared-chunks/element-builder-Dw_Ic9cD.js';
11
+ export { R as RehydrateTree, S as SERIALIZATION_FIRST_NODE_STRING, i as isSerializationFirstNode, r as rehydrationBuilder } from '../../shared-chunks/rehydrate-builder-CfBtYUkk.js';
@@ -1,4 +1,4 @@
1
1
  // this file gets replaced with the real value during the build
2
- const VERSION = '7.0.0-beta.1';
2
+ const VERSION = '7.1.0-alpha.1';
3
3
 
4
4
  export { VERSION as default };
@@ -1,8 +1,8 @@
1
1
  import '../shared-chunks/fragment-Cc5k9Oy4.js';
2
2
  import '../shared-chunks/debug-to-string-CFb7h0lY.js';
3
3
  import '../@glimmer/wire-format/index.js';
4
- import { p as precompile$1 } from '../shared-chunks/compiler-CNj62pww.js';
5
- export { a as _preprocess } from '../shared-chunks/compiler-CNj62pww.js';
4
+ import { p as precompile$1 } from '../shared-chunks/compiler-BenCxenr.js';
5
+ export { a as _preprocess } from '../shared-chunks/compiler-BenCxenr.js';
6
6
  import '../@ember/debug/index.js';
7
7
  import { STRICT_MODE_KEYWORDS, STRICT_MODE_TRANSFORMS, RESOLUTION_MODE_TRANSFORMS } from '../@ember/template-compiler/lib/plugins/index.js';
8
8
  import '../shared-chunks/mandatory-setter-DHZe7-kW.js';
@@ -6265,9 +6265,6 @@ const SCOPE_PLACEHOLDER = '796d24e6-2450-4fb0-8cdf-b65638b5ef70';
6265
6265
  */
6266
6266
  function precompile(source, options = defaultOptions) {
6267
6267
  const [block, usedLocals] = precompileJSON(source, options);
6268
- if ('emit' in options && options.emit?.debugSymbols && usedLocals.length > 0) {
6269
- block.push(usedLocals);
6270
- }
6271
6268
  const moduleName = options.meta?.moduleName;
6272
6269
  const idFn = options.id || defaultId;
6273
6270
  const blockJSON = JSON.stringify(block);