This is an automated email from the ASF dual-hosted git repository.

thiagohp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git


The following commit(s) were added to refs/heads/master by this push:
     new 4aef53a90 TAP5-2840: fixing regression with Require.js off
4aef53a90 is described below

commit 4aef53a9044f75dce3b1a90f907328793569bb2b
Author: Thiago H. de Paula Figueiredo <[email protected]>
AuthorDate: Sun Nov 1 18:30:34 2026 -0300

    TAP5-2840: fixing regression with Require.js off
---
 .../src/main/java/org/apache/tapestry5/modules/JavaScriptModule.java  | 4 ++--
 tapestry-core/src/main/resources/META-INF/assets/tapestry5/moment.js  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/tapestry-core/src/main/java/org/apache/tapestry5/modules/JavaScriptModule.java
 
b/tapestry-core/src/main/java/org/apache/tapestry5/modules/JavaScriptModule.java
index 7c11e7aab..f5f571384 100644
--- 
a/tapestry-core/src/main/java/org/apache/tapestry5/modules/JavaScriptModule.java
+++ 
b/tapestry-core/src/main/java/org/apache/tapestry5/modules/JavaScriptModule.java
@@ -579,8 +579,8 @@ public class JavaScriptModule
         
         final Resource moment = 
assetSource.getClasspathAsset("/META-INF/assets/tapestry5/moment.js")
                 .getResource();
-        configuration.add("t5/core/moment", new EsShim(moment)
-                .defaultExport("moment")
+        configuration.add("moment", new EsShim(moment)
+                .defaultExport("window.moment")
                 .getResource());
         
         if (compatibility.enabled(Trait.BOOTSTRAP_3))
diff --git 
a/tapestry-core/src/main/resources/META-INF/assets/tapestry5/moment.js 
b/tapestry-core/src/main/resources/META-INF/assets/tapestry5/moment.js
index 8db9a856b..1f2f05a25 100644
--- a/tapestry-core/src/main/resources/META-INF/assets/tapestry5/moment.js
+++ b/tapestry-core/src/main/resources/META-INF/assets/tapestry5/moment.js
@@ -3,7 +3,7 @@
 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
 //! license : MIT
 //! momentjs.com
-((e,a)=>{"object"==typeof exports&&"undefined"!=typeof 
module?module.exports=a():"function"==typeof 
define&&define.amd?define(a):e.moment=a()})(this,function(){var F;function 
L(){return F.apply(null,arguments)}function E(e){return e instanceof 
Array||"[object Array]"===Object.prototype.toString.call(e)}function 
z(e){return null!=e&&"[object 
Object]"===Object.prototype.toString.call(e)}function l(e,a){return 
Object.prototype.hasOwnProperty.call(e,a)}function 
N(e){if(Object.getOwnPropertyN [...]
+((e,a)=>{"object"==typeof exports&&"undefined"!=typeof 
module?module.exports=a():"function"==typeof 
define&&define.amd?define(a):e.moment=a()})(window,function(){var F;function 
L(){return F.apply(null,arguments)}function E(e){return e instanceof 
Array||"[object Array]"===Object.prototype.toString.call(e)}function 
z(e){return null!=e&&"[object 
Object]"===Object.prototype.toString.call(e)}function l(e,a){return 
Object.prototype.hasOwnProperty.call(e,a)}function N(e){if(Object.getOwnPropert 
[...]
 //! moment.js
 L.version="2.31.0",F=x,L.fn=p,L.min=function(){return 
Ra("isBefore",[].slice.call(arguments,0))},L.max=function(){return 
Ra("isAfter",[].slice.call(arguments,0))},L.now=function(){return 
Date.now?Date.now():+new Date},L.utc=U,L.unix=function(e){return 
x(1e3*e)},L.months=function(e,a){return 
Dt(e,a,"months")},L.isDate=R,L.locale=pa,L.invalid=V,L.duration=et,L.isMoment=f,L.weekdays=function(e,a,t){return
 gt(e,a,t,"weekdays")},L.parseZone=function(){return 
x.apply(null,arguments).parseZone( [...]
 //! moment.js locale configuration
@@ -213,4 +213,4 @@ 
L.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6
 //! moment.js locale configuration
 
L.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),w
 [...]
 //! moment.js locale configuration
-L.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),w
 [...]
\ No newline at end of file
+L.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),w
 [...]

Reply via email to