You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7f19f23
Browse filesBrowse the repository at this point in the historyBrowse files
feat(studio): load GSAP from the CLI's bundled copy by default (#6256)
* feat(studio): load GSAP from the CLI's bundled copy by default
Studio preview now loads the GSAP, CustomEase and MotionPathPlugin scripts
it adds from files the CLI ships and serves same-origin at /api/vendor/npm,
instead of jsDelivr. HYPERFRAMES_GSAP_BASE_URL still wins when set, and a
composition on another GSAP version gets its plugin from jsDelivr.
Renders now honor HYPERFRAMES_GSAP_BASE_URL when they replace a missing
local GSAP script, and the setting accepts plain http only for loopback
hosts.
Closes#6205
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* refactor(studio): keep comment share flat for the GSAP local root
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* fix(cli): find the installed gsap with node resolution when run from source
The Windows CI lane installs with the hoisted linker, so gsap is not under
packages/core/node_modules there.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* fix(producer): load a nested composition's missing GSAP from the mirror
A sub-composition's missing local gsap/dist script was hoisted into the
render unchanged, so HYPERFRAMES_GSAP_BASE_URL (and the jsDelivr fallback)
only reached the entry document. Run the same rewrite on every
sub-composition before it is compiled, resolving its path the way the
inliner will hoist it.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Studio uses the mirror for the GSAP, CustomEase, and MotionPathPlugin scripts
90
-
it adds to previews, including dependencies loaded when you edit motion.
91
115
Keep `gsap@<version>` in authored GSAP URLs so the server can infer which
92
116
plugin version to add. When it cannot infer a version, it uses the framework's
93
117
default, currently `3.15.0`.
94
118
95
-
The base must be an absolute HTTP(S) URL without credentials, a query string,
96
-
or a fragment. Surrounding whitespace and trailing slashes are removed.
97
-
An unset or empty value uses `https://cdn.jsdelivr.net/npm`; an invalid
98
-
nonempty value stops API startup with a configuration error.
119
+
The base must be an absolute URL without credentials, a query string, or a
120
+
fragment. Use HTTPS. Plain `http://` is accepted only for this machine:
121
+
`localhost`, `127.0.0.0/8`, and `::1`. Surrounding whitespace and trailing
122
+
slashes are removed. An invalid nonempty value stops API startup with a
123
+
configuration error.
99
124
100
125
The server reads this setting once at startup. Restart it after changing the
101
126
value. For a managed CLI preview, run `npx hyperframes preview ./my-video --stop`
102
127
before starting it again with the new setting. Cached preview HTML is keyed
103
-
by the normalized mirror URL, so a different mirror takes effect after restart
128
+
by the GSAP source, so a different mirror takes effect after restart
104
129
without deleting the preview cache.
105
130
106
-
This setting changes only dependencies Studio adds. Your composition's own
107
-
script, font, image, and media URLs stay as authored; serve those locally too
108
-
for an offline project. If the selected mirror is unavailable or lacks a
109
-
requested file, Studio does not retry that dependency through jsDelivr.
131
+
Renders read the same setting. When a composition points at a local
132
+
`gsap/dist/` script that does not exist, the render compiler loads that file
133
+
from the mirror instead of jsDelivr and inlines it, as it does for other
134
+
remote scripts. An invalid value fails that render with the same
135
+
configuration error. Renders do not use the CLI's bundled copy.
136
+
137
+
This setting changes only GSAP scripts HyperFrames adds. Your composition's
138
+
own script, font, image, and media URLs stay as authored, including a GSAP
139
+
`<script>` that points at jsDelivr; serve those locally too for an offline
140
+
project. When Studio writes GSAP into a composition file, for example when you
141
+
add the first animation to a file without one, it writes the jsDelivr URL so
142
+
the file still renders outside Studio. If the selected mirror is unavailable or lacks a requested file,
143
+
Studio does not retry that dependency through jsDelivr.
0 commit comments