How to use the ts-loader/package.version function in ts-loader

To help you get started, we’ve selected a few ts-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 egoist / poi / plugins / typescript / index.js View on Github external
api.webpackUtils.addCacheSupport(rule, () =>
      api.getCacheConfig(
        'ts-loader',
        {
          typescript: api.localRequire('typescript/package').version,
          'ts-loader': require('ts-loader/package').version
        },
        configFile
      )
    )