]> git.lizzy.rs Git - rust.git/commitdiff
Fix seedrandom in packaged extension
authorbjorn3 <bjorn3@users.noreply.github.com>
Sat, 1 Feb 2020 12:39:04 +0000 (13:39 +0100)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sat, 1 Feb 2020 12:39:04 +0000 (13:39 +0100)
Fixes #2971

editors/code/src/highlighting.ts
editors/code/tsconfig.json

index 014e96f7534c0f12f412bc3d1dc511cc37ef640b..fc7cd5a1cb8435e0e2524d3cfec5f9e43e147978 100644 (file)
@@ -1,7 +1,6 @@
 import * as vscode from 'vscode';
 import * as lc from 'vscode-languageclient';
-import * as seedrandom_ from 'seedrandom';
-const seedrandom = seedrandom_; // https://github.com/jvandemo/generator-angular2-library/issues/221#issuecomment-355945207
+import seedrandom from 'seedrandom';
 
 import { ColorTheme, TextMateRuleSettings } from './color_theme';
 
index e60eb8e5e5b74d5601a232cc7767a435946871b6..1ea433961f14daf08ce2da9cea12eebc907cf36d 100644 (file)
@@ -13,7 +13,8 @@
         "noUnusedParameters": true,
         "noImplicitReturns": true,
         "noFallthroughCasesInSwitch": true,
-        "newLine": "LF"
+        "newLine": "LF",
+        "esModuleInterop": true,
     },
     "exclude": [
         "node_modules"