Closed obfuscatedgenerated closed 1 year ago
Note: it only occurs when the code being bundled uses the file containing these type annotations/keywords. If only parts of the external are used that could be interpreted as JS, the build passes.
Removing the module as an external doesn't fix the issue, so it is clear ts-loader won't handle the file at all
Nevermind, just realised I'm excluding node_modules haha 🙄
Expected Behaviour
An external written in Typescript can be used.
Actual Behaviour
Webpack halts loading the external when encountering a type annotation or TS keyword with the error:
Steps to Reproduce the Problem
Sample ts file from external named
ollieos
:Excerpt of webpack.config.js:
Error: