Closed HMaker closed 1 year ago
+1, same error
Change exclude settings:
exclude: [/node_modules/, /paths\.mjs/, /components\.plugin\.mjs/]
tried your suggestion, but still not work, maybe I configured it wrong?
vite: {
plugins: [
obfuscatorPlugin({
exclude: [/node_modules/, /.nuxt\.mjs/, /components\.plugin\.mjs/],
debugger: true,
options: {
compact: true,
debugProtection: true,
},
}),
],
},
can you share the full defineNuxtConfig?
Modify your configuration. @chz8494
- exclude: [/node_modules/, /.nuxt\.mjs/, /components\.plugin\.mjs/]
+ exclude: [/node_modules/, /paths\.mjs/, /components\.plugin\.mjs/]
The issue https://github.com/elmeet/vite-plugin-javascript-obfuscator/issues/3 was closed as fixed, but it "worked" because the example project didn't include any file to be obfuscated.
I forked the example project to fix the plugin settings, the same error happens Check it at https://stackblitz.com/edit/github-ftj7nb-dedmuj?file=nuxt.config.ts
Run
nuxt generate
in the terminal:The plugin version is
"vite-plugin-javascript-obfuscator": "^3.1.0"