File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1- const {
1+ import { createRequire } from 'module' ;
2+ import { fileURLToPath } from 'url' ;
3+
4+ import {
25 babelCompatSupport ,
36 templateCompatSupport ,
4- } = require ( '@embroider/compat/babel' ) ;
7+ } from '@embroider/compat/babel' ;
8+
9+ const require = createRequire ( import . meta. url ) ;
510
6- module . exports = {
11+ export default {
712 plugins : [
813 [
914 'babel-plugin-ember-template-compilation' ,
@@ -28,7 +33,7 @@ module.exports = {
2833 [
2934 '@babel/plugin-transform-runtime' ,
3035 {
31- absoluteRuntime : __dirname ,
36+ absoluteRuntime : fileURLToPath ( new URL ( '.' , import . meta . url ) ) ,
3237 useESModules : true ,
3338 regenerator : false ,
3439 } ,
Original file line number Diff line number Diff line change 1- const {
1+ import { createRequire } from 'module' ;
2+ import { fileURLToPath } from 'url' ;
3+
4+ import {
25 babelCompatSupport ,
36 templateCompatSupport ,
4- } = require ( '@embroider/compat/babel' ) ;
7+ } from '@embroider/compat/babel' ;
8+
9+ const require = createRequire ( import . meta. url ) ;
510
611module . exports = {
712 plugins : [
@@ -36,7 +41,7 @@ module.exports = {
3641 [
3742 '@babel/plugin-transform-runtime' ,
3843 {
39- absoluteRuntime : __dirname ,
44+ absoluteRuntime : fileURLToPath ( new URL ( '.' , import . meta . url ) ) ,
4045 useESModules : true ,
4146 regenerator : false ,
4247 } ,
You can’t perform that action at this time.
0 commit comments