Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lightspeed/babel-preset-node

Package Overview
Dependencies
Maintainers
10
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightspeed/babel-preset-node

Common Babel configuration for Lightspeed Node.js apps

  • 0.3.1
  • npm
  • Socket score

Version published
Weekly downloads
137
decreased by-15.95%
Maintainers
10
Weekly downloads
 
Created
Source

@lightspeed/babel-preset-node

npm version

Introduction

Babel Node.js configuration and plugins in a convenient package.

Features

  • ✨ Transpile Node.js (and server-side React when used) TypeScript code to meet Lightspeed Node.js standards
  • ➡ Absolute path resolving for root src:
// From anywhere in your app, this will resolve to `<root>/src/components/MyComponent.(js,ts,jsx,tsx)
import { MyComponent } from 'src/components/MyComponent';

Quick Start

  1. Install the dependency in your webapp.
yarn add @babel/core @lightspeed/babel-preset-node
  1. Consume the Babel preset.
// babel.config.js
module.exports = {
  presets: ['@lightspeed/node'],
};
  1. Optionally, extend the configuration as you see fit.
// babel.config.js
module.exports = {
  presets: [
    [
      '@lightspeed/node',
      {
        'preset-env': {
          targets: {
            node: '8',
          },
        },
      },
    ],
  ],
};

FAQs

Package last updated on 03 Apr 2019

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc