Socket
Socket
Sign inDemoInstall

rollup-plugin-mxn-jsx

Package Overview
Dependencies
8
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rollup-plugin-mxn-jsx

Rollup JSX plugin that transpiles JSX into JavaScript


Version published
Maintainers
1
Created

Readme

Source

rollup-plugin-mxn-jsx

Rollup JSX plugin that transpiles JSX into JavaScript

  • ~6.1kb size
  • ~2.5kb minified + gzipped

This is a wrapper around mxn-jsx-ast-transformer. Make sure to go check that out for options.

Install

$ npm install rollup-plugin-mxn-jsx

Usage

Use it like this in your rollup.config:

import rollupMxnJsx from "rollup-plugin-mxn-jsx";

export default {
	input: "src/index.js",
	external: [
		"preact",
		"prop-types"
	],
	output: {
		file: "bundle/bundle.js",
		format: "iife",
		name: "App",
		sourcemap: false,
		globals: {
			"preact": "preact",
			"prop-types": "PropTypes"
		}
	},
	plugins: [
		rollupMxnJsx({
			factory: "h",
			include: ["*.js", "*.jsx"]
		})
	]
};

License

This module is released under the MIT license.

Keywords

FAQs

Last updated on 23 Oct 2020

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