You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to ensure the values I use in my webpack obfuscator config are type safe. But for some reason the TypeScript compiler gives me no error if, for example, I use incorrect values like high-obfuscation123 for optionsPreset:
webpack.config.ts
exportconstmainConfig: Configuration={// ...plugins: [// ...newWebpackObfuscatorPlugin({optionsPreset: "high-obfuscation123",// No compile time errors. Only runtime ones (during webpack running).// ...})],// ...}
I also tried to access configuration types directly but it causes an another runtime error although VSCode successfully recognize imports:
I want to ensure the values I use in my webpack obfuscator config are type safe. But for some reason the TypeScript compiler gives me no error if, for example, I use incorrect values like
high-obfuscation123
foroptionsPreset
:webpack.config.ts
I also tried to access configuration types directly but it causes an another runtime error although VSCode successfully recognize imports:
webpack.config.ts
How can I make my webpack obfuscator config type safe?
The text was updated successfully, but these errors were encountered: