javascript-obfuscator / javascript-obfuscator/webpack-obfuscator

webpack-obfuscator not working on Firebase deployment

未关闭
#155 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
928
派生
92
PR 合并指标
30 天内没有已合并 PR

描述

## Expected Behavior
`webpack-obfuscator` and `javacript-obfuscator` should be working on Firebase deployment without issue

## Current Behavior
My firebase functions are deployed correctly unless I import `webpack-obfuscator` or `javacript-obfuscator`
Always produce error
```
Did you list all required modules in the package.json dependencies?
Detailed stack trace: Error: Cannot find module 'webpack-obfuscator'
```

| | webpack-obfuscator | javacript-obfuscator |
|--|----------------|----------|
| sample code | image | image |
| error | image | image |

## Steps to Reproduce
- Install `webpack-obfuscator`
- Run `firebase emulators:start` to test the function, it working properly
- Run `firebase deploy` the functions can not be deployed

## Enviroment
- Node 14
- "webpack-obfuscator": "3.5.1",
- "javascript-obfuscator": "4.0.2"

## Reference
I have taken a look at these issues, but either they are outdated or not work
- https://github.com/javascript-obfuscator/javascript-obfuscator/issues/687
- https://github.com/javascript-obfuscator/webpack-obfuscator/issues/138
- https://github.com/javascript-obfuscator/webpack-obfuscator/issues/82#issue-667058896

cc: @sanex3339 since you found a bug in [loader](https://github.com/javascript-obfuscator/javascript-obfuscator/issues/687#issuecomment-665271638) ( but it was 3 years ago )

贡献指南

这个仓库没有索引到贡献指南

调研方向

从复现所使用的 package.json 依赖项和 Firebase Functions 部署配置开始;比较可正常工作的 firebase emulators:start 路径与 firebase deploy。验证已部署的函数中是否提供了混淆器包,并使用报告的 Cannot find module 错误作为完成检查。

由索引模型根据 Issue 内容生成。

评估

技术栈
firebase, javascript, node.js, typescript, webpack
领域
build-system, cloud
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。