Bladeren bron

Fixes certain type-only imports in webviews

main
Eric Amodio 2 jaren geleden
bovenliggende
commit
70ad5ddb88
3 gewijzigde bestanden met toevoegingen van 8 en 1 verwijderingen
  1. +3
    -0
      src/webviews/apps/tsconfig.json
  2. +2
    -1
      src/webviews/commitDetails/protocol.ts
  3. +3
    -0
      webpack.config.js

+ 3
- 0
src/webviews/apps/tsconfig.json Bestand weergeven

@ -3,6 +3,9 @@
"compilerOptions": {
"lib": ["dom", "dom.iterable", "es2020"],
"outDir": "../../",
"paths": {
"@env/*": ["src/env/browser/*"]
},
"useDefineForClassFields": false
},
"include": [

+ 2
- 1
src/webviews/commitDetails/protocol.ts Bestand weergeven

@ -1,5 +1,6 @@
import { TextDocumentShowOptions } from 'vscode';
import type { IssueOrPullRequest } from '../../git/models/issue';
import type { PullRequest } from '../../git/models/pullRequest';
import { IpcCommandType, IpcNotificationType } from '../protocol';
export type FileShowOptions = TextDocumentShowOptions;
@ -21,7 +22,7 @@ export type CommitDetails = {
export type RichCommitDetails = {
formattedMessage?: string;
pullRequest?: IssueOrPullRequest;
pullRequest?: PullRequest;
issues?: IssueOrPullRequest[];
};

+ 3
- 0
webpack.config.js Bestand weergeven

@ -410,6 +410,9 @@ function getWebviewsConfig(mode, env) {
],
},
resolve: {
alias: {
'@env': path.resolve(__dirname, 'src', 'env', 'browser'),
},
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
modules: [basePath, 'node_modules'],
},

Laden…
Annuleren
Opslaan