Socket
Book a DemoInstallSign in
Socket

@node-loader/babel

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-loader/babel

A nodejs loader for babel

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
2.2K
13.83%
Maintainers
1
Weekly downloads
 
Created
Source

@node-loader/babel

A nodejs loader for babel. This allows you to compile all files with babel before they are executed in Node.

This project is similar to @babel/node, except that it works with ES modules.

Installation

npm install --save @node-loader/babel

# Or, if you prefer Yarn
yarn add --save @node-loader/babel

If using Node<16.12, use @node-loader/babel@1. Otherwise, use @node-loader/babel@latest

Usage

Run node with the --experimental-loader flag:

node --experimental-loader @node-loader/babel file.js

Configuration

Babel configuration files are loaded and applied per the normal rules.

Composition

If you wish to combine the babel loader with other NodeJS loaders, you may do so by using node-loader-core.

FAQs

Package last updated on 09 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts