Skip to content

Commit

Permalink
fix(babel): correct use of loader #16
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCoene committed Nov 11, 2021
1 parent ccb3418 commit a73e256
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion R/loaders.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,14 @@ use_loader_babel <- function(test = "\\.(js|jsx)$", use_eslint = FALSE){

pkgs <- c("babel-loader", "@babel/core")
if(use_eslint) pkgs <- c(pkgs, "eslint-loader")
use_loader_rule(pkgs, test = test, exclude = "/node_modules/")
use_loader_rule(
pkgs,
test = test,
exclude = "/node_modules/",
use = list(
"babel-loader"
)
)
}

#' Use Vue Loader
Expand Down

0 comments on commit a73e256

Please sign in to comment.