forked from emberjs/ember.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.mjs
37 lines (34 loc) · 854 Bytes
/
babel.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
This babel config governs how Ember gets built for publication. Features that
remain un-transpiled until used by an app are not handled here.
See babel.test.config.mjs for the extension to this config that governs our
test suite.
*/
import { resolve, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
export default {
plugins: [
[
'@babel/plugin-transform-typescript',
{
allowDeclareFields: true,
},
],
[
'module:decorator-transforms',
{
runEarly: true,
runtime: { import: 'decorator-transforms/runtime' },
},
],
[
'babel-plugin-ember-template-compilation',
{
compilerPath: resolve(
dirname(fileURLToPath(import.meta.url)),
'./broccoli/glimmer-template-compiler'
),
},
],
],
};