File: app.ts

package info (click to toggle)
node-ts-loader 9.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,940 kB
  • sloc: javascript: 7,230; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Optionally import module for typing.
// This will be removed during TypeScript compilation since
// its not directly used.
import debugModule = require('./debug')

console.log('do something')

// The DEBUG constant will be inlined by webpack's DefinePlugin (see config)
// The whole if-statement can then be removed by UglifyJS
if (DEBUG) {
	var debug = <typeof debugModule>require('./debug');
	debug('uhh ohh')
}

console.log('do something else')