use_loader_babel {packer}R 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.


[Package packer version 0.1.3 Index]