Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-vue-jsx-hot-reload

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-vue-jsx-hot-reload

Babel plugin for hot reloading Vue 2.0 JSX component

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-vue-jsx-hot-reload

Babel plugin for hot reloading Vue 2.0 JSX component.

This plugin only works with Vue 2.0 JSX and it's in very early stage. Use this for development only.

Installation

npm install --save-dev babel-plugin-vue-jsx-hot-reload

Usage

In your .babelrc:

{
  "plugins": [
        ["vue-jsx-hot-reload", { "debug": false }]
    ]
}

Then write your component like this

// You can't use export default { render(h) {} } directly
const Component = {
    prop: {....},
    render(h) {
        return (
            <div>Hello World</div>
        );
    }
};

export default Component;
// That's it !!

Options

Setting debug: true will log the JSX component name in terminal

License

MIT

Keywords

FAQs

Package last updated on 28 Oct 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc