Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const getBabelOptions = require('./lib/get-babel-options');
const findApp = require('./lib/find-app');
const emberPlugins = require('./lib/ember-plugins');
const cacheKeyForTree = require('calculate-cache-key-for-tree');
const replace = require('broccoli-string-replace');

const APP_BABEL_RUNTIME_VERSION = new WeakMap();
const PROJECTS_WITH_VALID_EMBER_CLI = new WeakSet();
Expand Down Expand Up @@ -268,7 +269,18 @@ module.exports = {
}
});

return new Funnel(transpiledHelpers, {
return new Funnel(replace(
transpiledHelpers,
{
files: [
'@babel/runtime/helpers/esm/*.js',
],
pattern: {
match: /"@babel\/runtime\/helpers\/esm\/([^."]+)\.js"/g,
replacement: '"@babel/runtime/helpers/esm/$1"'
}
}
), {
destDir: this.moduleName(),
});
},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@babel/plugin-transform-runtime": "^7.13.9",
"@babel/plugin-transform-typescript": "^7.20.13",
"@babel/preset-env": "^7.20.2",
"@babel/runtime": "7.12.18",
"@babel/runtime": "^7.20.0",
"amd-name-resolver": "^1.3.1",
"babel-plugin-debug-macros": "^0.3.4",
"babel-plugin-ember-data-packages-polyfill": "^0.1.2",
Expand All @@ -60,6 +60,7 @@
"broccoli-debug": "^0.6.4",
"broccoli-funnel": "^3.0.8",
"broccoli-source": "^3.0.1",
"broccoli-string-replace": "^0.1.2",
"calculate-cache-key-for-tree": "^2.0.0",
"clone": "^2.1.2",
"ember-cli-babel-plugin-helpers": "^1.1.1",
Expand Down
44 changes: 37 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading