File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed
Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
3- const {
1+ import {
42 babelCompatSupport ,
53 templateCompatSupport ,
6- } = require ( '@embroider/compat/babel' ) ;
4+ } from '@embroider/compat/babel' ;
75
8- module . exports = {
6+ export default {
97 plugins : [
108 [
119 'babel-plugin-ember-template-compilation' ,
@@ -23,14 +21,14 @@ module.exports = {
2321 'module:decorator-transforms' ,
2422 {
2523 runtime : {
26- import : require . resolve ( 'decorator-transforms/runtime-esm' ) ,
24+ import : import . meta . resolve ( 'decorator-transforms/runtime-esm' ) ,
2725 } ,
2826 } ,
2927 ] ,
3028 [
3129 '@babel/plugin-transform-runtime' ,
3230 {
33- absoluteRuntime : __dirname ,
31+ absoluteRuntime : import . meta . dirname ,
3432 useESModules : true ,
3533 regenerator : false ,
3634 } ,
Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
3- const {
1+ import {
42 babelCompatSupport ,
53 templateCompatSupport ,
6- } = require ( '@embroider/compat/babel' ) ;
4+ } from '@embroider/compat/babel' ;
75
8- module . exports = {
6+ export default {
97 plugins : [
108 [
119 '@babel/plugin-transform-typescript' ,
@@ -31,14 +29,14 @@ module.exports = {
3129 'module:decorator-transforms' ,
3230 {
3331 runtime : {
34- import : require . resolve ( 'decorator-transforms/runtime-esm' ) ,
32+ import : import . meta . resolve ( 'decorator-transforms/runtime-esm' ) ,
3533 } ,
3634 } ,
3735 ] ,
3836 [
3937 '@babel/plugin-transform-runtime' ,
4038 {
41- absoluteRuntime : __dirname ,
39+ absoluteRuntime : import . meta . dirname ,
4240 useESModules : true ,
4341 regenerator : false ,
4442 } ,
You can’t perform that action at this time.
0 commit comments