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
# Installing Zen in a Node.js Application that uses a bundler
2
+
3
+
⚠️ Note: Zen runs only on the server side, it does not run in the browser.
4
+
5
+
Zen might not work out of the box with bundlers, depending on how they are configured.
6
+
To ensure that Zen can properly instrument your code and protect your application, you may need to adjust your bundler settings.
7
+
8
+
In order to be compatible with Zen, your bundler needs to be configured to exclude all external packages from the bundle.
9
+
You can also choose to only exclude Zen and all the packages that should be protected.
10
+
In this case, your production environment still needs the `node_modules` folder.
11
+
12
+
If you are using esbuild, you can find [more information here](./esbuild.md).
13
+
14
+
If it is not possible to exclude all packages from bundling, Zen provides the following helper function to get a list of all the packages that need to be excluded:
"AIKIDO: Your application seems to be using a bundler without externalizing Zen and the packages that should be protected. Zen will not function as intended. See https://github.com/AikidoSec/firewall-node/blob/main/docs/bundler.md for more information."
0 commit comments