Fix blank website: migrate from dead CDN deps to bundled React 19 + Firebase 12 + Bootstrap 3#33
Draft
Fix blank website: migrate from dead CDN deps to bundled React 19 + Firebase 12 + Bootstrap 3#33
Conversation
… 7 with esbuild bundler Co-authored-by: ProLoser <67395+ProLoser@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issue causing website to appear blank
Fix blank website: migrate from dead CDN deps to bundled React 19 + Firebase 12
Mar 16, 2026
Owner
|
@copilot split the script file up and double check the css |
…trap 3 from npm Co-authored-by: ProLoser <67395+ProLoser@users.noreply.github.com>
Contributor
Author
Done in 288a7d6. Split:
CSS fix: Bootstrap was in |
Copilot
AI
changed the title
Fix blank website: migrate from dead CDN deps to bundled React 19 + Firebase 12
Fix blank website: migrate from dead CDN deps to bundled React 19 + Firebase 12 + Bootstrap 3
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The site rendered blank because
script.jswas never built, the Firebase 1.1.3 CDN (cdn.firebase.com) is dead, andscript.jsxused React 0.12 APIs (React.createClass,ReactFireMixin,getDOMNode()) that are incompatible with the modern versions already declared inpackage.json.Changes
script.jsx— Now a thin entry point; all logic split intosrc/:src/constants.js—types,nextTypessrc/utils.js—cursorPos,placeCaretAtEndsrc/firebase.js— Firebase app +dbinitializationsrc/components/ContentEditable.jsx— cursor-stable rich text input usinguseLayoutEffectsrc/components/Line.jsx— single screenplay line with Firebase syncsrc/components/Nav.jsx— top navigation barsrc/components/Home.jsx— landing pagesrc/components/ScriptPage.jsx— script editor (Firebase sync, keyboard handling)src/App.jsx— hash router rootuseState,useEffect,useLayoutEffect,useRef,forwardRef,useImperativeHandle,useCallback; Firebase v12 modular SDK; react-router v7index.html— Removed all CDN<script>and<link>tags; JS and CSS are now fully self-hosted bundles (script.js,script.css)package.json— Fixed Bootstrap version from^5.3.8to^3.4.1to match Bootstrap 3 class names used throughout (glyphicons,navbar-inverse, etc.); addedesbuild-sass-plugindevDependency; unified build vianode scripts/build.jsscripts/build.js— New unified build script using esbuild +esbuild-sass-plugin: bundles JS/JSX, compiles SCSS, and inlines Bootstrap 3 CSS (including glyphicon fonts) into a singlescript.cssoutput — no CDN dependency.gitignore— Updated to reflect new build artifact names (script.css,fonts/)Result
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.