Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/gossi/ember-command. Integrate your Business Logic with Ember gossi.github.io/ember-command
Something went wrong. Try again.
ember-command babel.config.mjs
123456789101112131415161718192021222324252627282930313233343536373839404142import { babelCompatSupport, templateCompatSupport } from '@embroider/compat/babel';import { buildMacros } from '@embroider/macros/babel';import { fileURLToPath } from 'node:url';
export const macros = buildMacros();
// For scenario testingexport const isCompat = Boolean(process.env.ENABLE_COMPAT_BUILD);
export default { plugins: [ [ '@babel/plugin-transform-typescript', { allExtensions: true, allowDeclareFields: true, onlyRemoveTypeImports: true } ], [ 'babel-plugin-ember-template-compilation', { transforms: [...(isCompat ? templateCompatSupport() : macros.templateMacros)] } ], [ 'module:decorator-transforms', { runtime: { import: fileURLToPath(import.meta.resolve('decorator-transforms/runtime-esm')) } } ], ...(isCompat ? babelCompatSupport() : macros.babelMacros), 'ember-concurrency/async-arrow-task-transform' ],
generatorOpts: { compact: false }};