Skip to content

Commit c07a361

Browse files
committed
make content-tag a dependency
1 parent e55c7dc commit c07a361

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"@embroider/addon-shim": "^1.8.9",
5252
"decorator-transforms": "^2.2.2",
5353
"ember-local-storage-decorator": "github:evoactivity/ember-local-storage-decorator#dist",
54+
"content-tag": "^4.0.0",
5455
"ember-modifier": "^4.2.2",
5556
"ember-primitives": "^0.45.1",
5657
"ember-template-recast": "^6.1.5",
@@ -89,7 +90,6 @@
8990
"babel-plugin-ember-template-compilation": "^2.2.5",
9091
"common-tags": "^1.8.2",
9192
"concurrently": "^9.0.1",
92-
"content-tag": "^4.0.0",
9393
"ember-qunit": "^9.0.2",
9494
"ember-source": "^6.7.0",
9595
"ember-strict-application-resolver": "^0.1.0",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/yield-blocks.gjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
const Thing = <template>
2+
Hi
3+
{{yield to="block1"}}
4+
</template>;
5+
16
<template>
27
<Thing>
38
<:block1>

tests/template-plugin.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ describe('Adds data attributes to tags', () => {
189189

190190
expect(templateContentsOf(output)).toMatchInlineSnapshot(`
191191
[
192-
"<Thing data-source-file="/tests/fixtures/yield-blocks.gjs" data-source-line="2" data-source-column="3">
192+
"Hi
193+
{{yield to="block1"}}",
194+
"<Thing data-source-file="/tests/fixtures/yield-blocks.gjs" data-source-line="7" data-source-column="3">
193195
<:block1>
194196
</:block1>
195197
</Thing>",

0 commit comments

Comments
 (0)