Skip to content

Commit 9409fa6

Browse files
authored
Merge pull request #2661 from embroider-build/template-compiler-deprecation
cleaning up AMD template compiler deprecation
2 parents 978045b + 8f030d5 commit 9409fa6

File tree

17 files changed

+28
-41
lines changed

17 files changed

+28
-41
lines changed

packages/compat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"assert-never": "^1.1.0",
3939
"babel-import-util": "^3.0.1",
4040
"babel-plugin-debug-macros": "^2.0.0",
41-
"babel-plugin-ember-template-compilation": "^3.0.0",
41+
"babel-plugin-ember-template-compilation": "^3.1.0",
4242
"babel-plugin-ember-template-compilation-2": "npm:babel-plugin-ember-template-compilation@^2.4.0",
4343
"babel-plugin-syntax-dynamic-import": "^6.18.0",
4444
"babylon": "^6.18.0",

packages/compat/src/v1-addon.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import semver from 'semver';
1313
import rewriteAddonTree from './rewrite-addon-tree';
1414
import { mergeWithAppend } from './merges';
1515
import type { AddonMeta, PackageCache, AddonInstance, AddonTreePath } from '@embroider/core';
16-
import { debug, findTopmostAddon } from '@embroider/core';
16+
import { debug } from '@embroider/core';
1717
import walkSync from 'walk-sync';
1818
import ObserveTree from './observe-tree';
1919
import { isEmbroiderMacrosPlugin } from '@embroider/macros/src/node';
@@ -120,11 +120,7 @@ export default class V1Addon {
120120
// our macros don't run here in stage1
121121
plugins = plugins.filter((p: any) => !isEmbroiderMacrosPlugin(p));
122122
if (plugins.length > 0 || hasTemplateTag) {
123-
let compilerPath = require.resolve('ember-source/dist/ember-template-compiler.js', {
124-
paths: [findTopmostAddon(this.addonInstance).parent.root],
125-
});
126123
let opts: EtcOptions = {
127-
compilerPath,
128124
targetFormat: 'hbs',
129125
enableLegacyModules: [
130126
'ember-cli-htmlbars',

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@embroider/reverse-exports": "workspace:*",
4949
"@embroider/shared-internals": "workspace:*",
5050
"assert-never": "^1.2.1",
51-
"babel-plugin-ember-template-compilation": "^3.0.0",
51+
"babel-plugin-ember-template-compilation": "^3.1.0",
5252
"broccoli-node-api": "^1.7.0",
5353
"broccoli-persistent-filter": "^3.1.2",
5454
"broccoli-plugin": "^4.0.7",

packages/macros/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ module.exports = {
3939
[
4040
"babel-plugin-ember-template-compilation",
4141
{
42-
compilerPath: "ember-source/dist/ember-template-compiler.js",
4342
transforms: [...macros.templateMacros],
4443
},
4544
],

packages/macros/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@types/node": "^22.9.3",
5656
"@types/resolve": "^1.20.0",
5757
"@types/semver": "^7.3.6",
58-
"babel-plugin-ember-template-compilation": "^3.0.0",
58+
"babel-plugin-ember-template-compilation": "^3.1.0",
5959
"code-equality-assertions": "^1.0.1",
6060
"scenario-tester": "^3.0.1",
6161
"typescript": "^5.4.5",

packages/template-tag-codemod/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@humanwhocodes/module-importer": "^1.0.1",
3838
"@types/babel__core": "^7.20.5",
3939
"babel-import-util": "^3.0.1",
40-
"babel-plugin-ember-template-compilation": "^3.0.0",
40+
"babel-plugin-ember-template-compilation": "^3.1.0",
4141
"broccoli": "^4.0.0",
4242
"chalk": "^5.4.1",
4343
"commander": "^13.1.0",

pnpm-lock.yaml

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

tests/addon-template/babel.config.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module.exports = {
88
[
99
"babel-plugin-ember-template-compilation",
1010
{
11-
compilerPath: "ember-source/dist/ember-template-compiler.js",
1211
enableLegacyModules: [
1312
"ember-cli-htmlbars",
1413
"ember-cli-htmlbars-inline-precompile",

tests/app-template-minimal/babel.config.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = {
77
[
88
'babel-plugin-ember-template-compilation',
99
{
10-
compilerPath: 'ember-source/dist/ember-template-compiler.js',
1110
enableLegacyModules: ['ember-cli-htmlbars'],
1211
transforms: [...macros.templateMacros],
1312
},

tests/app-template-minimal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@glimmer/component": "^2.0.0",
3838
"@glimmer/tracking": "^1.1.2",
3939
"@rollup/plugin-babel": "^5.3.1",
40-
"babel-plugin-ember-template-compilation": "^3.0.0",
40+
"babel-plugin-ember-template-compilation": "^3.1.0",
4141
"decorator-transforms": "^2.0.0",
4242
"ember-cli": "^6.2.2",
4343
"ember-modifier": "^4.1.0",

0 commit comments

Comments
 (0)