Closed Bug 1000172 Opened 11 years ago Closed 11 years ago

[Settings] Prevent the scripts defining global objects from being merged during script optimization

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: arthurcc, Assigned: arthurcc)

References

Details

Attachments

(1 file)

Currently we use requirejs shim for legacy objects existed in the global scope. The original files will be removed during the optimization and make the objects unable to be accessed by reference. We should prevent those files from the optimization process by modifying settings.build.jslike.
Fred, George, could you check if this makes sense to you? Thanks.
Attachment #8411027 - Flags: feedback?(gduan)
Attachment #8411027 - Flags: feedback?(gasolin)
Attachment #8411027 - Flags: feedback?(gasolin) → feedback+
Comment on attachment 8411027 [details] Link to https://github.com/mozilla-b2g/gaia/pull/18587 Evelyn, could you rubber stamp on this patch? Thanks.
Attachment #8411027 - Flags: review?(ehung)
Attachment #8411027 - Flags: review?(ehung) → review+
Thanks all! master: 590788dc7a88b9d9b1f98f1d0da5447c4616f557
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: