0.0.1-1 • Published 7 years ago

@skyrpex/vue-jsx-loader v0.0.1-1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

Vue JSX Webpack loader

This loader will allow to use JSX render functions along with HMR. Beware, it may have bugs.

Installation

npm install @skyrpex/vue-jsx-loader

Usage

// path/to/component.jsx
export default {
  render(h) {
    return <div>
      <p>Hello</p>
    </div>;
  },
};
// webpack.config.js
export default {
  // ...
  module: {
    loaders: [
      // Place the vue-jsx-loader before the babel-loader
      {
        test: /jsx$/,
        loader: '@skyrpex/vue-jsx',
      },
      {
        test: /jsx?$/,
        loader: 'babel',
      },
    ],
  },
};
0.0.1-5

7 years ago

0.0.1-3

8 years ago

0.0.1-2

8 years ago

0.0.1-1

8 years ago