Closed tb-b closed 2 years ago
Hi @tb-b thanks for the suggestions. Responses to each below:
yarn zxp
so it doesn't ship to the user, but it is included in yarn build
for the developer's use. You can adjust these settings in cep.config.ts
under build.sourceMap
and zxp.sourceMap
if you'd like.Closing this out for now. Feel free to open new issues on one of these topics in the future.
What would be the recommended way to make the generated jsx/index.js less transparent?
jsx/index.js reveals:
packages.json contents, including used dependencies, comments etc.setting treeshake: true in vite.es.config.ts solves thisvar config reveals entire cep.config.ts including ports - var ns only uses config.id, is there any reason for including the whole config here?javascript-obfuscator can be added to rollup to help with hiding this, though it would be better to avoid importing entire config objectall JS functions that invoke JSX functions from index.jsxbin are here in their original form with comments etc.javascript-obfuscator can be added to rollup to help with hiding thesesame goes for the index.map.jssourcemap can be disabled by sourcemap: false, in vite.es.config.tsJSXBIN is 2.0 (instead of 2.1) but I guess we can't do much about it until the extendscript-jsxbin dependency gets updated?
Edit: added solutions I've found so far