Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Commit

Permalink
fix: use require.resolve to load babel preset
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Sep 27, 2018
1 parent 858d475 commit 16292d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babel-register.js
@@ -1,6 +1,6 @@
/* eslint-disable import/no-unassigned-import */
require('@babel/register')({
only: [/travis-deploy-once\/(lib|cli.js)/, /node_modules\/(got|cacheable-request)/],
presets: [['@babel/preset-env', {targets: {node: 'current'}, useBuiltIns: 'entry'}]],
presets: [[require.resolve('@babel/preset-env'), {targets: {node: 'current'}, useBuiltIns: 'entry'}]],
});
require('@babel/polyfill');

0 comments on commit 16292d3

Please sign in to comment.