Comments (2)
当前编译引擎脚本和项目脚本,已经支持选择 sourceMap 的类型为“关闭”、“独立文件”、“内嵌到脚本” 三个选项。只是构建面板中的 UI 只有一个 CheckBox。如果打钩✅,原生上被写死了“内嵌到脚本”,非原生上写死了“独立文件”。
之前原生上搞成内嵌,是因为远程调试无法使用分离 sourceMap 。但是如果是发布游戏正式版,是希望sourcemap 为分离的,否则游戏源码会被泄露,而且增加了包体。
因此,应该把 Checkbox 改为 下拉框
,分为 “关闭”、“独立文件”、“内嵌到脚本” 三个选项。
另外,是否叫“独立文件”,可能还得斟酌一下。“独立文件” or “独立的文件” or “分开的文件” or “分离的文件”。
关于迁移
如果用户之前启用 sourceMap,即打钩✅,那么原生平台,迁移到“内嵌到脚本”,非原生平台迁移到“独立文件”。
from cocos-engine.
看了下历史记录,在 3.8.2 之前实际上原生平台的 sourceMaps 一直都是和其他平台一样是独立文件的。从 3.8.2 开始原生平台改成内联的,由于这个内联存在的版本时间比较短,而且之前调整时就没有维持和旧版本一致了。因而这次支持 sourceMaps 设置 inline 后,不会将旧版本原生平台的 sourceMaps 迁移为 inline ,而是常规的独立文件。如果原生平台需要 inline 的,自行去修改配置即可。
from cocos-engine.
Related Issues (20)
- It is recommended not to use async and await polyfill when previewing
- creator3.8,OpenGL2渲染崩溃问题,GLES2PrimaryCommandBuffer里面draw函数数组越界。必现 HOT 2
- taobao ASTC dont support
- [3.8.3] PostProcess fails with GL error 0x501, 0x506 HOT 5
- 点击事件不回调end或cancel,点击数量获取不对
- label组件char模式,drawcall快速异常增加问题
- 选中effect创建材质 新材质为选中的effect
- mediaQueryPortrait.addEventListener is not a function HOT 6
- 是否会兼容实配鸿蒙JS呢?
- `cc.assetManager.loadAny` 通过uuid 加载 远程bundle内的资源失败. HOT 2
- 希望引擎中能包含 uuid 压缩和解压缩的方法. HOT 2
- Tilemap tiles has wrong display
- [3.8.3] Support for clearing the useless values in the _listenerSet
- 3.8引擎因为渲染问题导致部分安卓模拟器(比如 逍遥模拟器)无法运行问题,直接影响所有出了原生包的creator游戏。必现! HOT 6
- [抖音小游戏] 将3D摄像机渲染到 RenderTexture 时, 层次关系错乱. HOT 1
- [抖音小游戏] 引擎没有自动解决 手机高刷 的问题.
- Add copy texture region to texture region
- AudioSource native 平台播放 bug
- 通过命令行 构建项目时, 如果项目存在 资源引用丢失的情况, 没有警告信息.
- Websocket errors in taobao platform
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocos-engine.