mirror of
https://github.com/zoriya/v10.git
synced 2026-08-15 18:34:22 +00:00
fix: resolve @open-wc/context-protocol module resolution issues
- Update TypeScript moduleResolution from "node" to "bundler" in base config - Remove 5 @ts-ignore directives for context-protocol import resolution - All HTML packages now import @open-wc/context-protocol without type errors - Builds and type checking continue to work correctly - Eliminates need for type suppression comments in critical components Files affected: - tsconfig.base.json: Updated module resolution strategy - html-media-elements/src/media-provider.ts: Removed @ts-ignore - html/src/media-provider.ts: Removed @ts-ignore - html/src/media-container.ts: Removed @ts-ignore - html/src/components/connected/media-play-button.ts: Removed @ts-ignore - html/src/components/connected/media-mute-button.ts: Removed @ts-ignore 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
Christian Pillsbury
co-authored by
Claude
parent
7154b1e446
commit
e5f23ed2bb
@@ -1,4 +1,3 @@
|
||||
// @ts-ignore - Module resolution issues with @open-wc/context-protocol
|
||||
import { ProviderMixin } from '@open-wc/context-protocol';
|
||||
import { createMediaStore } from '@vjs-10/media-store';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// @ts-ignore - Module resolution issues with @open-wc/context-protocol
|
||||
import { ConsumerMixin } from '@open-wc/context-protocol';
|
||||
|
||||
// NOTE: This should be fairly generic code that could itself be abstracted into configuration for a more generic factory implementation. (CJP)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// @ts-ignore - Module resolution issues with @open-wc/context-protocol
|
||||
import { ConsumerMixin } from '@open-wc/context-protocol';
|
||||
|
||||
// NOTE: This should be fairly generic code that could itself be abstracted into configuration for a more generic factory implementation. (CJP)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// @ts-ignore - Module resolution issues with @open-wc/context-protocol
|
||||
import { ConsumerMixin } from '@open-wc/context-protocol';
|
||||
|
||||
export function getTemplateHTML() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// @ts-ignore - Module resolution issues with @open-wc/context-protocol
|
||||
import { ProviderMixin } from '@open-wc/context-protocol';
|
||||
import { createMediaStore } from '@vjs-10/media-store';
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
"target": "ES2020",
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "node",
|
||||
"moduleResolution": "bundler",
|
||||
"allowJs": true,
|
||||
"checkJs": false,
|
||||
"declaration": true,
|
||||
|
||||
Reference in New Issue
Block a user