[Vuejs]-Add exports to final webpack vue bundle to use it as a module

0👍

mix.webpackConfig({
    experiments: {
        outputModule: true,
    },
    output: {
        module: true,
        library: {
            type: 'module',
        },
    },
});

Did it for me

Leave a comment