Procházet zdrojové kódy

Update fs import in data-source.ts

dsehnal před 2 roky
rodič
revize
104ab757d2
2 změnil soubory, kde provedl 8 přidání a 4 odebrání
  1. 6 3
      CHANGELOG.md
  2. 2 1
      src/mol-util/data-source.ts

+ 6 - 3
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
 

+ 2 - 1
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!;
 }