From 104ab757d2e93107e6b2fa3aac55915c88643ea0 Mon Sep 17 00:00:00 2001 From: dsehnal <david.sehnal@gmail.com> Date: Wed, 22 Feb 2023 20:37:34 +0100 Subject: [PATCH] Update fs import in data-source.ts --- CHANGELOG.md | 9 ++++++--- src/mol-util/data-source.ts | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fab9bea4..f318e9cc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,12 @@ Note that since we don't clearly distinguish between a public and private interf ## [Unreleased] -Fix impostor bond visuals not correctly updating on `sizeFactor` changes -Fix degenerate case in PCA -Fix near clipping avoidance in impostor shaders +## [v3.31.3] - 2023-02-22 + +- Fix impostor bond visuals not correctly updating on `sizeFactor` changes +- Fix degenerate case in PCA +- Fix near clipping avoidance in impostor shaders +- Update `fs` import in `data-source.ts` ## [v3.31.2] - 2023-02-12 diff --git a/src/mol-util/data-source.ts b/src/mol-util/data-source.ts index 5b9b65a68..3d66dbf74 100644 --- a/src/mol-util/data-source.ts +++ b/src/mol-util/data-source.ts @@ -305,7 +305,8 @@ function ajaxGetInternal<T extends DataType>(title: string | undefined, url: str let _fs: (typeof import ('fs')) | undefined = undefined; function getFS() { if (_fs) return _fs!; - _fs = require('fs'); + const req = require; // To fool webpack + _fs = req('fs'); return _fs!; } -- GitLab