Skip to content

Commit 2967f47

Browse files
committed
Re-delete the legacy compiler
1 parent f5be41f commit 2967f47

2 files changed

Lines changed: 1 addition & 61 deletions

File tree

package.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -267,22 +267,16 @@
267267
"@ember/routing/lib/cache.js": "ember-source/@ember/routing/lib/cache.js",
268268
"@ember/routing/lib/controller_for.js": "ember-source/@ember/routing/lib/controller_for.js",
269269
"@ember/routing/lib/dsl.js": "ember-source/@ember/routing/lib/dsl.js",
270-
"@ember/routing/lib/engines.js": "ember-source/@ember/routing/lib/engines.js",
271270
"@ember/routing/lib/generate_controller.js": "ember-source/@ember/routing/lib/generate_controller.js",
272271
"@ember/routing/lib/location-utils.js": "ember-source/@ember/routing/lib/location-utils.js",
273272
"@ember/routing/lib/query_params.js": "ember-source/@ember/routing/lib/query_params.js",
274-
"@ember/routing/lib/route-info.js": "ember-source/@ember/routing/lib/route-info.js",
275273
"@ember/routing/lib/router_state.js": "ember-source/@ember/routing/lib/router_state.js",
276274
"@ember/routing/lib/routing-service.js": "ember-source/@ember/routing/lib/routing-service.js",
277275
"@ember/routing/lib/utils.js": "ember-source/@ember/routing/lib/utils.js",
278-
"@ember/routing/location.js": "ember-source/@ember/routing/location.js",
279276
"@ember/routing/none-location.js": "ember-source/@ember/routing/none-location.js",
280-
"@ember/routing/route-info.js": "ember-source/@ember/routing/route-info.js",
281277
"@ember/routing/route.js": "ember-source/@ember/routing/route.js",
282278
"@ember/routing/router-service.js": "ember-source/@ember/routing/router-service.js",
283279
"@ember/routing/router.js": "ember-source/@ember/routing/router.js",
284-
"@ember/routing/transition.js": "ember-source/@ember/routing/transition.js",
285-
"@ember/runloop/-private/backburner.js": "ember-source/@ember/runloop/-private/backburner.js",
286280
"@ember/runloop/index.js": "ember-source/@ember/runloop/index.js",
287281
"@ember/service/index.js": "ember-source/@ember/service/index.js",
288282
"@ember/template-compilation/index.js": "ember-source/@ember/template-compilation/index.js",
@@ -307,11 +301,9 @@
307301
"@ember/template-compiler/lib/plugins/transform-wrap-mount-and-outlet.js": "ember-source/@ember/template-compiler/lib/plugins/transform-wrap-mount-and-outlet.js",
308302
"@ember/template-compiler/lib/plugins/utils.js": "ember-source/@ember/template-compiler/lib/plugins/utils.js",
309303
"@ember/template-compiler/lib/public-api.js": "ember-source/@ember/template-compiler/lib/public-api.js",
310-
"@ember/template-compiler/lib/public-types.js": "ember-source/@ember/template-compiler/lib/public-types.js",
311304
"@ember/template-compiler/lib/runtime.js": "ember-source/@ember/template-compiler/lib/runtime.js",
312305
"@ember/template-compiler/lib/system/calculate-location-display.js": "ember-source/@ember/template-compiler/lib/system/calculate-location-display.js",
313306
"@ember/template-compiler/lib/template.js": "ember-source/@ember/template-compiler/lib/template.js",
314-
"@ember/template-compiler/lib/types.js": "ember-source/@ember/template-compiler/lib/types.js",
315307
"@ember/template-compiler/runtime.js": "ember-source/@ember/template-compiler/runtime.js",
316308
"@ember/template-factory/index.js": "ember-source/@ember/template-factory/index.js",
317309
"@ember/template/index.js": "ember-source/@ember/template/index.js",
@@ -330,7 +322,6 @@
330322
"@glimmer/encoder/index.js": "ember-source/@glimmer/encoder/index.js",
331323
"@glimmer/env/index.js": "ember-source/@glimmer/env/index.js",
332324
"@glimmer/global-context/index.js": "ember-source/@glimmer/global-context/index.js",
333-
"@glimmer/interfaces/index.js": "ember-source/@glimmer/interfaces/index.js",
334325
"@glimmer/manager/index.js": "ember-source/@glimmer/manager/index.js",
335326
"@glimmer/node/index.js": "ember-source/@glimmer/node/index.js",
336327
"@glimmer/opcode-compiler/index.js": "ember-source/@glimmer/opcode-compiler/index.js",
@@ -391,4 +382,4 @@
391382
}
392383
},
393384
"packageManager": "pnpm@10.30.3"
394-
}
385+
}

rollup.config.mjs

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const testDependencies = [
2828
let configs = [
2929
esmConfig(),
3030
esmProdConfig(),
31-
templateCompilerConfig(),
3231
glimmerComponent(),
3332
glimmerSyntaxESM(),
3433
glimmerSyntaxCJS(),
@@ -619,56 +618,6 @@ function licenseAndLoader() {
619618
};
620619
}
621620

622-
function templateCompilerConfig() {
623-
// These are modules that, when used in the legacy template compiler bundle,
624-
// need to be discovered from ember.debug.js instead when running in the
625-
// browser, and stubbed to ember-template-compiler.js in node.
626-
const externals = {
627-
'@ember/template-compilation': `{
628-
__esModule: true,
629-
__registerTemplateCompiler(){},
630-
}`,
631-
ember: `{
632-
__esModule: true,
633-
default: {
634-
get ENV() { return require('@ember/-internals/environment').ENV },
635-
get FEATURES() { return require('@ember/canary-features').FEATURES },
636-
get VERSION() { return require('ember/version').default },
637-
},
638-
}`,
639-
'@ember/-internals/glimmer': `{
640-
__esModule: true,
641-
}`,
642-
'@ember/application': `{
643-
__esModule: true,
644-
}`,
645-
};
646-
let config = legacyBundleConfig(
647-
'./broccoli/amd-compat-entrypoints/ember-template-compiler.js',
648-
'ember-template-compiler.js',
649-
{ isDeveloping: true }
650-
);
651-
config.plugins.unshift({
652-
enforce: 'pre',
653-
name: 'template-compiler-externals',
654-
async resolveId(source) {
655-
if (externals[source]) {
656-
return { id: source, external: true };
657-
}
658-
},
659-
});
660-
config.output.globals = (id) => {
661-
return `(() => {
662-
try {
663-
return require('${id}');
664-
} catch (err) {
665-
return ${externals[id]}
666-
}
667-
})()`;
668-
};
669-
return config;
670-
}
671-
672621
function pruneEmptyBundles() {
673622
return {
674623
name: 'prune-empty-bundles',

0 commit comments

Comments
 (0)