Socket
Book a DemoInstallSign in
Socket

html-bricks-plugin-babel

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-bricks-plugin-babel

Babel support for HTML-bricks

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

html-bricks-plugin-babel

Babel support for html-bricks using the popular Babel transpiler.

Requirements

html-bricks >= 0.3.

Installation

Install using npm

npm install --save-dev html-bricks-plugin-babel

Then include the plugin in your config

{
  "plugins": [
    "plugin-babel"
  ]
}

Usage

All .js files will be compiled using @babel/preset-env. If you want to use a different preset, override the transpiler settings using a .babelrc file in your project directory. The path to each file is passed to the Babel transpiler, so you can use multiple .babelrc files to have different settings for different sections of your project. See Babel's own documentation on this for more info.

Example from Babels website

src/script.js

const result = {
  ...obj,
  foo: 'bar'
}

build/script.js

const result = babelHelpers.extends({}, obj, {
  foo: 'bar'
})

Keywords

babel

FAQs

Package last updated on 22 Apr 2020

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.