/*
Nuxt.js module for vue-wait

Usage:
    - Install vue-wait package
    - Add this into your nuxt.config.js file:
    {
        modules: [
            // Simple usage
            'vue-wait/nuxt'

            // Optionally passing options in module configuration
            ['vue-wait/nuxt', { useVuex: true }]
        ],

        // Optionally passing options in module top level configuration
        wait: { useVuex: true }
    }
*/

const {resolve} = require('path');

module.exports = function nuxtVueWaitModule(moduleOptions) {
    const options = Object.assign({}, this.options.wait, moduleOptions);

    // Register plugin
    this.addPlugin({
        src: resolve(__dirname, 'vue-wait-plugin.js'),
        fileName: 'vue-wait-plugin.template.js',
        options: options
    })
};

// required by nuxt
module.exports.meta = require('../package.json');

@@ -696,16 +696,25 @@
 -plugin.
+template.
 js'),%0A  
@@ -746,25 +746,16 @@
 -plugin.
-template.
 js',%0A   

fix nuxt module