import { dirname } from 'node:path'; import { fileURLToPath } from 'node:url'; import { babelCompatSupport, templateCompatSupport, } from '@embroider/compat/babel'; export default { plugins: [ [ 'babel-plugin-ember-template-compilation', { enableLegacyModules: [ 'ember-cli-htmlbars', 'ember-cli-htmlbars-inline-precompile', 'htmlbars-inline-precompile', ], transforms: [...templateCompatSupport()], }, ], [ 'module:decorator-transforms', { runtime: { import: fileURLToPath( import.meta.resolve('decorator-transforms/runtime-esm'), ), }, }, ], [ '@babel/plugin-transform-runtime', { absoluteRuntime: dirname(fileURLToPath(import.meta.url)), useESModules: true, regenerator: false, }, ], 'ember-concurrency/async-arrow-task-transform', ...babelCompatSupport(), ], generatorOpts: { compact: false, }, };