use_loader_babel: Use babel Loader

View source: R/loaders.R

use_loader_babelR Documentation

Use babel Loader

Description

Adds the loader for babel compiler to the loader configuration file.

Usage

use_loader_babel(test = "\\.(js|jsx)$", use_eslint = FALSE)

Arguments

test

Test regular expression test which files should be transformed by the loader.

use_eslint

Whether to also add the ESlint loader.

Details

The use_elsint argument is useful here as loaders have to be defined in the correct order or files might be checked after being processed by babel.

Excludes node_modules by default.


packer documentation built on May 28, 2022, 5:06 p.m.