| 123456789101112131415161718192021 |
- // xjs.js - Combined build (example)
- // This file is auto-generated/merged in production.
- // For dev, it imports animal and layer from window if loaded separately.
- (function(global) {
- // If we are in a merged environment, Layer and animal might be defined in closures above.
- // But here we simulate the final structure.
-
- // Ensure we have a global entry point if not already
- const x = global.animal || {};
-
- // Extend animal with Layer features if not present
- if (global.Layer && !x.Layer) {
- x.Layer = global.Layer;
- }
-
- // Export to global 'x' or 'xjs' as short alias?
- // global.x = x;
-
- })(typeof window !== 'undefined' ? window : this);
|