From be4cee84bfcf0fb1592764d94e57a022a954fe4b Mon Sep 17 00:00:00 2001 From: Clark Du Date: Wed, 20 Mar 2019 12:42:34 +0000 Subject: [PATCH] chore: expose absoluteRuntime --- packages/babel-preset-app/src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/babel-preset-app/src/index.js b/packages/babel-preset-app/src/index.js index 98cfb7f919..3afa2114c4 100644 --- a/packages/babel-preset-app/src/index.js +++ b/packages/babel-preset-app/src/index.js @@ -46,7 +46,8 @@ module.exports = (context, options = {}) => { shippedProposals, forceAllTransforms, decoratorsBeforeExport, - decoratorsLegacy + decoratorsLegacy, + absoluteRuntime } = options let { targets } = options @@ -108,7 +109,7 @@ module.exports = (context, options = {}) => { corejs: useBuiltIns !== false ? false : corejs, helpers: useBuiltIns === 'usage', useESModules: true, - absoluteRuntime: path.dirname(require.resolve('@babel/runtime/package.json')) + absoluteRuntime }]) return {