TabScript - v2.0.2
    Preparing search index...

    Function default

    • Webpack loader that transforms .tab files to JavaScript.

      Parameters

      • this: any
      • source: string

        The TabScript source code

      Returns string

      The transpiled JavaScript code

      // webpack.config.js
      module.exports = {
        module: {
          rules: [
            {
              test: /\.tab$/,
              use: {
                loader: 'tabscript/webpack',
                options: {
                  whitespace: 'pretty'
                }
              }
            }
          ]
        }
      };