deno - how to hide freshjspreact source code from Dev Tools - Stack Overflow

时间: 2025-01-06 admin 业界

I need to hide my source code build with freshjs framework (preact) and deployed to deno.

Unsucceded using these methods:

  1. Add GENERATE_SOURCEMAP=FALSE inside .env file.
  2. Add deno run -A --env-file=.env dev.ts build inside deno.json file, under deno task build script.
  3. Add GENERATE_SOURCEMAP=false deno run -A dev.ts build inside deno.json file, under deno task build script.

I'm expecting my source code to be hidden from DevTools, as you can see from this screenshot. source code showing inside DevTools