I am looking to compile my TypeScript code into JavaScript and then apply an obfuscation loader to further secure it. Despite trying various approaches, I have been unable to successfully achieve this task. I attempted setting up an entry point for the bundle.js file, but encountered issues. Can someone provide guidance on the most effective method to accomplish this?
module.exports = {
mode: "development",
entry: {
bundle: "./main.ts",
},
devtool: 'inline-source-map',
module:{
rules: [
{
test: /\.tsx?$/,
include: [ path.resolve(__dirname, ".") ],
use: {
loader: 'ts-loader',
loader: 'obfuscator-loader'
},
exclude: /node_modules/
}