📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@bavary/webpack-loader

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bavary/webpack-loader

Webpack Loader for bavary declaration files

1.0.1
latest
Source
npm
Version published
Weekly downloads
5
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Logo


Coverage Status Build Status Download count Current version Support me

Checkout related packages

Install via npm:

$ npm install -g @bavary/webpack-loader

Install via yarn:

$ yarn global add @bavary/webpack-loader

Usage

Create a new rule with @bavary/webpack-loader as loader:

module.exports = {
    // ...

    module: {
        rules: [
            {
                test: /\.bv$/,
                use: '@bavary/webpack-loader'
            }
        ]
    }

    // ...
};

Be sure to install the peer-dependency @bavary/core and optionally @bavary/bavary-lib if you want make use of the functions option.

Available options

const options =  {

    // Module type
    esModule: false,

    // Inject functions from @bavary/lib. Be sure to install @bavary/lib to use them
    functions: ['count', ...],

    ...bavaryOptions
}

where bavaryOptions are all options which can be used in the compiler configuration.

Example

./index.bv

entry ['A' | 'B']

./app.js

import parse from './index.bv';
console.log(parse('A')); // Logs "A"

Keywords

bavary

FAQs

Package last updated on 30 Dec 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