chore: expose absoluteRuntime

This commit is contained in:
Clark Du 2019-03-20 12:42:34 +00:00
parent 5c17bc856e
commit be4cee84bf

View File

@ -46,7 +46,8 @@ module.exports = (context, options = {}) => {
shippedProposals, shippedProposals,
forceAllTransforms, forceAllTransforms,
decoratorsBeforeExport, decoratorsBeforeExport,
decoratorsLegacy decoratorsLegacy,
absoluteRuntime
} = options } = options
let { targets } = options let { targets } = options
@ -108,7 +109,7 @@ module.exports = (context, options = {}) => {
corejs: useBuiltIns !== false ? false : corejs, corejs: useBuiltIns !== false ? false : corejs,
helpers: useBuiltIns === 'usage', helpers: useBuiltIns === 'usage',
useESModules: true, useESModules: true,
absoluteRuntime: path.dirname(require.resolve('@babel/runtime/package.json')) absoluteRuntime
}]) }])
return { return {