text: const VueLoaderPlugin = require('vue-loader/lib/plugin')
  
  module.exports = {
    mode: 'development',
    context: __dirname,
    entry: './src/main.ts',
    output: {
      path: __dirname,
      filename: 'build.js'
    },
    resolve: {
      alias: {
        vue$: 'vue/dist/vue.esm.js'
      },
      extensions: ['.ts', '.tsx', '.js']
    },
    module: {
      rules: [
        {
          test: /\.tsx?$/,
          exclude: /node_modules/,
          use: [
            'babel-loader',
            {
              loader: 'ts-loader',
              options: {
                appendTsSuffixTo: [/\.vue$/],
                appendTsxSuffixTo: [/\.vue$/]
              }
            }
          ]
        },
        {
          test: /\.vue$/,
          use: ['vue-loader']
        }
      ]
    },
    devtool: 'source-map',
    plugins: [
      new VueLoaderPlugin()
    ]
  }
  