Skip to content

Commit

Permalink
fix: remove redundant shaders import.
Browse files Browse the repository at this point in the history
  • Loading branch information
aamir1995 committed Oct 2, 2023
1 parent 18a9d0b commit 61d226d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions demo-snippets/demo/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { type DeviceProfile, type ViewImports, type ViewImportmap } from "@novorender/api";
import { shaders } from "@novorender/api/public/shaders";
import type { IPosition } from "monaco-editor";

export interface IModule<R = void, P extends any[] = []> {
Expand Down Expand Up @@ -35,7 +34,7 @@ if (typeof window !== "undefined" && typeof navigator !== 'undefined') {
// must be imported dynamically to fix SSG build
import("@novorender/api").then(({ View }) => {
const baseUrl = new URL(".", location.origin);
const coreImportsMap: ViewImportmap = { baseUrl, shaders };
const coreImportsMap: ViewImportmap = { baseUrl };
coreImportsPromise = View.downloadImports(coreImportsMap);
});
}
Expand Down
2 changes: 0 additions & 2 deletions demo-snippets/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ declare function openAlert(content: string, type: 'primary' | 'secondary' | 'suc
* @param content string to show in the info pane
*/
declare function openInfoPane(content: object | string | any, title?: string): void;

declare module "@novorender/api/public/shaders";

0 comments on commit 61d226d

Please sign in to comment.