title: Make function available to google app script, from webpack module
body: <p>I am using webpack with gas-webpack-plugin to transpile my typescript code to JS so it can be used in code.gs(GAS main file). But when webpack modularize functions in the entry file, they are no longer available to Google App Script.</p>
  
  <p>I tried to use gas-webpack-plugin to make the function available globally to GAS but no luck.
  <a href="https://github.com/fossamagna/gas-webpack-plugin" rel="nofollow noreferrer">https://github.com/fossamagna/gas-webpack-plugin</a></p>
  
  <p>here is my webpack.config.js</p>
  
  <pre><code>var path = require('path');
  var GasPlugin = require('gas-webpack-plugin');
  
  module.exports = env =&gt; {
  
  return {
      context: __dirname,
      mode: 'production',
      entry: './main/Code.ts',
      optimization: {
          minimize: false
      },
      module: {
          rules: [
              {
                  test: /\.ts$/,
                  use: 'ts-loader',
                  exclude: /node_modules/
              },
          ]
      },
      resolve: {
          extensions: ['.ts', '.js']
      },
      output: {
          filename: 'Code.js',
          path: path.resolve(__dirname, 'build/gs'),
      },
      plugins: [
          new GasPlugin()
      ]
  };
  </code></pre>
  
  <p>};</p>
  
  <p>i am exporting functions in my entry file like this</p>
  
  <pre><code>export function onOpen(){
      console.log('not working...');
  }
  
  export function testFunc(){
      console.log('not working...');
  }
  </code></pre>