Skip to content

Commit 406150d

Browse files
Merge pull request #2067 from NullVoxPopuli/copilot/remove-addon-shim
Remove @embroider/addon-shim from ember-repl
2 parents f0505fd + 5da64ba commit 406150d

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

packages/ember-repl/babel.config.cjs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
*/
66
const { buildMacros } = require('@embroider/macros/babel');
77

8-
const {
9-
babelCompatSupport,
10-
templateCompatSupport,
11-
} = require('@embroider/compat/babel');
8+
const { babelCompatSupport, templateCompatSupport } = require('@embroider/compat/babel');
129

1310
const macros = buildMacros();
1411

@@ -28,9 +25,7 @@ module.exports = {
2825
[
2926
'babel-plugin-ember-template-compilation',
3027
{
31-
transforms: [
32-
...(isCompat ? templateCompatSupport() : macros.templateMacros),
33-
],
28+
transforms: [...(isCompat ? templateCompatSupport() : macros.templateMacros)],
3429
},
3530
],
3631
[

packages/ember-repl/config/addon-main.cjs

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/ember-repl/package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@
1414
"license": "MIT",
1515
"author": "NullVoxPopuli",
1616
"files": [
17-
"addon-main.cjs",
1817
"declarations",
1918
"dist",
20-
"src",
21-
"config"
19+
"src"
2220
],
2321
"scripts": {
2422
":vite": "vite --config ./config/vite.config.mjs",
@@ -43,7 +41,6 @@
4341
"dependencies": {
4442
"@ember/test-helpers": "^5.4.1",
4543
"@ember/test-waiters": "^4.1.0",
46-
"@embroider/addon-shim": "^1.10.2",
4744
"codemirror": "^6.0.2",
4845
"content-tag": "^4.0.0",
4946
"decorator-transforms": "2.3.1",
@@ -129,8 +126,7 @@
129126
},
130127
"ember-addon": {
131128
"version": 2,
132-
"type": "addon",
133-
"main": "config/addon-main.cjs"
129+
"type": "addon"
134130
},
135131
"imports": {
136132
"#src/*": "./src/*",
@@ -144,8 +140,7 @@
144140
"./test-support": {
145141
"types": "./declarations/test-support.d.ts",
146142
"default": "./dist/test-support.js"
147-
},
148-
"./addon-main.js": "./config/addon-main.cjs"
143+
}
149144
},
150145
"typesVersions": {
151146
"*": {

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)