Skip to content

Commit f231990

Browse files
Merge pull request #322 from NullVoxPopuli-ai-agent/fix/ember-lts-4-12-compat-runtime
Make ember-lts-4.12 compat scenario runnable
2 parents e965739 + 0691d3f commit f231990

4 files changed

Lines changed: 18 additions & 2 deletions

File tree

pnpm-lock.yaml

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

test-app/.try.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ module.exports = async function (defaults) {
1717
};
1818

1919
const ember4 = {
20-
'@ember/test-helpers': '^4.0.0',
20+
'@ember/test-helpers': '^5.0.0',
2121
'@ember/test-waiters': '^3.1.0',
2222
'@embroider/compat': '^4.0.3',
23-
'ember-qunit': '^8.0.0',
23+
'ember-qunit': '^9.0.0',
2424
'ember-cli': '~4.12.0',
2525
};
2626

test-app/babel.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { buildMacros } from '@embroider/macros/babel';
44

55
const macros = buildMacros();
66

7+
const isCompatBuild = !!process.env.ENABLE_COMPAT_BUILD;
8+
79
export default {
810
plugins: [
911
[
@@ -44,6 +46,16 @@ export default {
4446
},
4547
],
4648
...macros.babelMacros,
49+
...(isCompatBuild
50+
? [
51+
[
52+
'babel-plugin-debug-macros',
53+
{
54+
flags: [{ source: '@glimmer/env', flags: { DEBUG: true } }],
55+
},
56+
],
57+
]
58+
: []),
4759
],
4860

4961
generatorOpts: {

test-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"@babel/eslint-parser": "^7.23.3",
3636
"@babel/plugin-transform-runtime": "^7.29.0",
3737
"@babel/plugin-transform-typescript": "^7.28.6",
38+
"babel-plugin-debug-macros": "^0.3.4",
3839
"@ember/string": "^4.0.1",
3940
"@ember/test-helpers": "^5.4.1",
4041
"@embroider/core": "^4.4.7",

0 commit comments

Comments
 (0)