Skip to content

Commit

Permalink
update node template-compiler stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Aug 5, 2024
1 parent 3bffe9c commit 7bbd411
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -432,14 +432,24 @@ function templateCompilerConfig() {
// need to be discovered from ember.debug.js instead when running in the
// browser, and stubbed to ember-template-compiler.js in node.
const externals = {
'@ember/template-compilation': `{ __registerTemplateCompiler(){} }`,
'@ember/template-compilation': `{
__esModule: true,
__registerTemplateCompiler(){},
}`,
ember: `{
get ENV() { return require('@ember/-internals/environment').ENV },
get FEATURES() { return require('@ember/canary-features').FEATURES },
get VERSION() { return require('ember/version').default },
__esModule: true,
default: {
get ENV() { return require('@ember/-internals/environment').ENV },
get FEATURES() { return require('@ember/canary-features').FEATURES },
get VERSION() { return require('ember/version').default },
},
}`,
'@ember/-internals/glimmer': `{
__esModule: true,
}`,
'@ember/application': `{
__esModule: true,
}`,
'@ember/-internals/glimmer': `{ template: undefined }`,
'@ember/application': `{}`,
};
let config = legacyBundleConfig(
'./broccoli/amd-compat-entrypoints/ember-template-compiler.js',
Expand Down

0 comments on commit 7bbd411

Please sign in to comment.