Skip to content

Commit

Permalink
update webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh-couchbase committed Nov 8, 2023
1 parent 3e286af commit 9aa9a4d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/reactViews/iq/bootstrap.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// @ts-nocheck
import * as React from "react";
import { createRoot } from "react-dom/client";
import "./index.scss";

const container = document.getElementById("vscodeRootIQ");
const container:HTMLElement = document.getElementById("vscodeRootIQ");
const newRoot = createRoot(container);

export const App: React.FC = () => {
Expand Down
1 change: 0 additions & 1 deletion src/reactViews/iq/index.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// @ts-nocheck
import ('./bootstrap');
4 changes: 0 additions & 4 deletions src/webViews/iq/couchbaseIq.webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ export const getIQWebviewContent = (
reactAppUri: vscode.Uri,
context: vscode.ExtensionContext
): string => {
// Local path to main script run in the webview
const reactAppPathOnDisk = vscode.Uri.file(
path.join(context.extensionPath, "dist", "iq", "reactBuild.js")
);
const webviewGenericCspSource = "https://*.vscode-cdn.net";

const nonce = getNonce();
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"exclude": [
"node_modules",
".vscode-test",
"**/reactViews/app/*"
"**/reactViews/*"
]
}

0 comments on commit 9aa9a4d

Please sign in to comment.