How to use the babel-register.default function in babel-register

To help you get started, we’ve selected a few babel-register examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github babel / babel / scripts / babel-register.js View on Github external
"use strict";

const register = require("babel-register").default;
const config = require("../.babelrc");

register(Object.assign({}, config, {
  extensions: [".js"],
  // Only js files in the test folder but not in the subfolder fixtures.
  only: [/packages\/.+\/test\/(?!fixtures\/).+\.js$/],
  compact: true,
}));

babel-register

babel require hook

MIT
Latest version published 8 years ago

Package Health Score

76 / 100
Full package analysis

Popular babel-register functions

Similar packages