Yes you need to add a reference to intern typings in include
section of your tsconfig.json
, as described in this tutorial.
But this will only get you past the compilation step. At runtime, you need a loader that understands module references like intern!object
and handles them exactly in the way intern is expecting them to work.
I don't know if any such loader or plugin exists for webpack, I can only find one issue about it in the intern repo, and it does not seem to have any resolution.
In general, Intern 3 relies on dojo loader which is bundled with intern. People who try to use other loaders are on their own, and no common solution has emerged.
For intern 4 (which is a major update and not released yet), there is a plan to 'remove loader dependency from Intern', but I don't know if something specific will be done (or even needs to be done) for supporting webpack.