fix: provide link if auto-refresh disabled#62
fix: provide link if auto-refresh disabled#62midgleyc wants to merge 2 commits intoLoathing-Associates-Scripting-Society:mainfrom
Conversation
|
Apologies for the delay.
Also, we currently use Yarn v1 instead of NPM. For the sake of reproducibility, please use Would you like to do this yourself? If not, I can make another PR. |
|
Sure, rebased and rebuilt. I think |
|
It appears that I tried running |
|
Yes, exactly that: WSL on Windows 10. I'd expect it to be an issue of line endings. Looking at |
|
Of course! If the contents of I'm not sure how to "fix" this...ugh. However, this is clearly beyond the scope of this PR. For now, I'll just accept it. Thanks! |
|
Searching through the codebase for carriage returns, I find them only in If I add I really don't know what's going on here. |
|
It seems that object-assign is bundled using different identifiers on Windows and Linux. This is from a diff of -"names":["getOwnPropertySymbols","Object","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","val","TypeError","C__Users_Phil_Documents_GitHub_philter_node_modules_objectAssign","assign","test1",
+"names":["getOwnPropertySymbols","Object","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","val","TypeError","objectAssign","assign","test1",My question is: How is the absolute path ( Edit: It's not just object-assign...looks like Rollup loves using absolute paths on Windows. This is from an unminified -var C__Users_Phil_Documents_GitHub_philter_node_modules_react = {exports: {}};
+var react = {exports: {}}; |
Ensure that TypeScript emits files with LF line endings on all platforms including Windows. This fix is needed only for @philter/common, whose build artifacts are directly generated by TypeScript. Other packages use Rollup, which always emits output with LF-endings. Previously, TypeScript emitted bundles had CRLF line endings on Windows. This was then consumed by @philter/manager and @philter/api. Since both projects use Rollup, I didn't notice this in their output bundles. However, it affected the sourcemaps, which had '\r'. Also, it caused chunk hashes to be computed differently on Windows and Linux. I discovered this while investigating #62.
Ensure that TypeScript emits files with LF line endings on all platforms including Windows. This fix is needed only for @philter/common, whose build artifacts are directly generated by TypeScript. Other packages use Rollup, which always emits output with LF-endings. Previously, TypeScript emitted bundles had CRLF line endings on Windows. This was then consumed by @philter/manager and @philter/api. Since both projects use Rollup, I didn't notice this in their output bundles. However, it affected the sourcemaps, which had '\r'. Also, it caused chunk hashes to be computed differently on Windows and Linux. I discovered this while investigating #62.
Notes: - Update Vite to 2.5.0, which fixes a bug that caused absolute paths of dependencies to leak into the bundle (and the sourcemap). This was discovered in pull request #62, investigated further in issue #75, and then remedied via monkeypatching Vite in PR #77. Now that Vite has fixed the bug, we can remove the monkeypatch. (`patch-package` is still needed to work with `react-virtualized`)
Notes: - Update Vite to 2.5.0, which fixes a bug that caused absolute paths of dependencies to leak into the bundle (and the sourcemap). This was discovered in pull request #62, investigated further in issue #75, and then remedied via monkeypatching Vite in PR #77. Now that Vite has fixed the bug, we can remove the monkeypatch. (`patch-package` is still needed to work with `react-virtualized`)
Using Firefox, you can set
accessibility.blockautorefreshtotrueinabout:configto block automatic refresh. This means that the newer Philter Manager shows a blank white screen.This PR adds a link you can click if the refresh hasn't occurred.
I edited both the
.tsand the.jsfiles manually: editing the.tsfile and running a build (npm run build) changed the assets files, but not therelay_Philter_Manager.jsfile.