How to use the vue-loader/lib/template-compiler/modules/transform-require function in vue-loader

To help you get started, we’ve selected a few vue-loader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hiendv / octicons-modular / rollup.plugins.js View on Github external
withVue (cssOutput) {
    return new Plugins([
      vue({
        compileOptions: {
          modules: [transformRequire({})]
        },
        scss: {
          includePaths: [
            path.join(__dirname, 'node_modules')
          ]
        },
        css (style) {
          fs.writeFileSync(cssOutput, style)
        },
        postcss: {
          plugins: postcssPlugins
        }
      }),
      buble({
        transforms: {
          dangerousForOf: true