0.0.9 • Published 5 years ago

@bundl/jsx v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago