Socket
Socket
Sign inDemoInstall

@playlyfe/babel-loader

Package Overview
Dependencies
190
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @playlyfe/babel-loader

babel module loader for webpack


Version published
Weekly downloads
4
increased by300%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

npm npm Travis

babel-loader

This package allows transpiling JavaScript files using Babel and webpack.

Requirements

{
  node: '>=8.0.0',
  webpack: '>=4.0.0',
  babel: '>=7.0.0'
}

Install

$ npm install --save-dev @playlyfe/babel-loader
$ yarn add --dev @playlyfe/babel-loader

Usage

webpack documentation: Loaders

Within your webpack configuration object, you'll need to add the babel-loader to the list of modules, like so:

module: {
  rules: [
    {
      test: /\.m?js$/,
      exclude: /node_modules/,
      use: {
        loader: '@playlyfe/babel-loader',
        options: {
          cacheDirectory: 'cache-dir-path'
        }
      }
    }
  ]
}

Options

  • cacheDirectory: false | string (Default false). When set, the given directory will be used to cache the results of the loader. Future webpack builds will attempt to read from the cache to avoid needing to run the potentially expensive Babel recompilation process on each run.

Keywords

FAQs

Last updated on 15 Jul 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc