text: module.exports = {
      entry: './src/index.js',
      mode: 'production',
      module: {
          rules: [
              {
                  test: /\.js$/,
                  exclude: /node_modules/,
                  use: [
                      {
                          loader: 'babel-loader',
                          query: {
                              presets: ['@babel/preset-env', {
                                  plugins: [
                                      '@babel/plugin-proposal-class-properties'
                                  ]
                              }],
                          },
                      },
                  ]
              },
              {
                  test: /\.css$/,
                  use: [
                      'style-loader',
                      'css-loader'
                  ]
              },
              {
                  test: /\.(svg)$/,
                  use: [
                      {
                          loader: 'raw-loader',
                      }
                  ]
              }
          ]
      },
      externals: [
          "katex",
          /^katex\/.+$/,
      ],
      output: {
          path: __dirname + '/dist',
          publicPath: '/',
          filename: 'bundle.js',
          library: 'Math',
          libraryTarget: 'umd'
      }
  };
  