0.0.9 • Published 6 years ago

@bundl/jsx v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@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'
    }
  }
}
0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago