0.21.0 • Published 3 years ago

@reboost/plugin-vue v0.21.0

Weekly downloads
83
License
MIT
Repository
github
Last release
3 years ago

npm license

Vue Plugin

Adds support for .vue files, using Vue 3 SFC compiler. Also enables Hot Reloading for Vue Components.

Usage

Setup

Install it using npm

npm i -D @reboost/plugin-vue

Import it from the package

const { start } = require('reboost');
const VuePlugin = require('@reboost/plugin-vue');

Add it to the plugins array

const { start } = require('reboost');
const VuePlugin = require('@reboost/plugin-vue');

start({
  plugins: [
    VuePlugin()
  ]
})

Require file in your code

import Component from './file.vue';

Options

compiler

Type: object

Compiler to use when compiling SFCs. You may need it if you want to use a different version of the SFC compiler than the one which comes with this package. First, install the version of the compiler you want to use then pass it to the options. Like so

const { start } = require('reboost');
const VuePlugin = require('@reboost/plugin-vue');

start({
  plugins: [
    VuePlugin({
      // Install the version of the compiler you want
      // then pass it to the plugin
      compiler: require('@vue/compiler-sfc')
    })
  ]
})

Why Vue 2 is not supported

Vue 2 uses the with statement in its code, but the with statement is forbidden in ES modules and strict mode. And because Reboost uses native ES modules, with statements will give an error. That's why Vue 2 is not supported.

License

Licensed under the MIT License.

0.21.0

3 years ago

0.20.1

3 years ago

0.20.0

3 years ago

0.19.2

3 years ago

0.19.1

3 years ago

0.19.0

3 years ago

0.18.2

3 years ago

0.18.1

3 years ago

0.18.0

3 years ago

0.17.2

4 years ago

0.17.1

4 years ago

0.17.0

4 years ago

0.16.2

4 years ago

0.16.0

4 years ago

0.16.1

4 years ago

0.15.0

4 years ago

0.14.1

4 years ago

0.14.0

4 years ago

0.13.1

4 years ago

0.13.0

4 years ago

0.12.1

4 years ago

0.12.0

4 years ago

0.11.0

4 years ago

0.10.1

4 years ago

0.10.0

4 years ago

0.9.1

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.11

4 years ago

0.5.10

4 years ago

0.5.9

4 years ago

0.5.8

4 years ago

0.5.7

4 years ago

0.5.5

4 years ago

0.5.4

4 years ago