Socket
Socket
Sign inDemoInstall

@bundl/jsx

Package Overview
Dependencies
159
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bundl/jsx

JSX plugin for Bundl


Version published
Maintainers
2
Created

Readme

Source

@bundl/jsx

JSX Plugin for Bundl.

Note that it doesn't compile using Babel. For Babel use this plugin.

Installation

# npm
npm i -D @bundl/jsx
# yarn
yarn add -D @bundl/jsx

Usage

const jsx = require('@bundl/jsx')

module.exports = {
  output: {
    'build/bundle.js': {
      use: jsx(),
      input: 'src/*.js'
    }
  }
}

Custom JSX factory

This plugin uses jsx-transform so all options are inherited from it.

const jsx = require('@bundl/jsx')

module.exports = {
  output: {
    'build/bundle.js': {
      use: jsx({ factory: 'preact.h' }),
      input: 'src/*.js'
    }
  }
}

Keywords

FAQs

Last updated on 12 Aug 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