Socket
Socket
Sign inDemoInstall

@lite-v3/babel-config-vanilla

Package Overview
Dependencies
213
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lite-v3/babel-config-vanilla

Babel config of Vanilla for Tokopedia web services


Version published
Maintainers
4
Created

Readme

Source

@lite-v3/babel-config-vanilla

Shared Vanilla Babel config for Tokopedia Web Services

By Tokopedia Version

Installation

# Using npm
npm install @lite-v3/babel-config-vanilla

# Using yarn
yarn add @lite-v3/babel-config-vanilla

# Using pnpm
pnpm install @lite-v3/babel-config-vanilla

Configs

This package has 3 configs which are provided:

NameDescription
babelClientConfigA babel config for Tokopedia web service client side
babelClientLegacyConfigA babel config for Tokopedia web service client side (Legacy config)
babelServerConfigA babel config for Tokopedia web service server side

Usage

1. Babel Config

Add the following to your babel.config.js:

module.exports = require('@lite-v3/babel-config-vanilla').babelClientConfig;

The code above is adding babel.config.js in Tokopedia web service client side

2. Webpack Config

Add the following to your webpack.config.js:

import webpack from 'webpack';
import { babelServerConfig } from '@lite-v3/babel-config-vanilla';

const webpackConfig = {
    ...
    module: {
        rules: [
            {
                oneOf: [
                    {
                        test: /\.(ts|js)x?$/,
                        exclude: /(node_modules|bower_components)/,
                        use: {
                            loader: 'babel-loader',
                            options: babelClientConfig
                        }
                    }
                ],
            },
        ]
    }
    ...
}

export default webpackConfig;

The code above is adding webpack.config.js in Tokopedia web service server side


Code By WPE Team @Tokopedia

FAQs

Last updated on 19 Oct 2021

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