initial commit
This commit is contained in:
46
babel.config.mjs
Normal file
46
babel.config.mjs
Normal file
@@ -0,0 +1,46 @@
|
||||
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,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user