diff --git a/web/packages/core/src/i18n.ts b/web/packages/core/src/internal/i18n.ts similarity index 100% rename from web/packages/core/src/i18n.ts rename to web/packages/core/src/internal/i18n.ts diff --git a/web/packages/core/src/register-element.ts b/web/packages/core/src/internal/register-element.ts similarity index 100% rename from web/packages/core/src/register-element.ts rename to web/packages/core/src/internal/register-element.ts diff --git a/web/packages/core/src/internal/ui/panic.tsx b/web/packages/core/src/internal/ui/panic.tsx index cea627d1412d..fe222fdb9bf3 100644 --- a/web/packages/core/src/internal/ui/panic.tsx +++ b/web/packages/core/src/internal/ui/panic.tsx @@ -1,4 +1,4 @@ -import { text, textAsParagraphs } from "../../i18n"; +import { text, textAsParagraphs } from "../i18n"; import { createRef } from "tsx-dom"; import { buildInfo } from "../../build-info"; import { RUFFLE_ORIGIN } from "../constants"; diff --git a/web/packages/core/src/ruffle-embed.ts b/web/packages/core/src/ruffle-embed.ts index 5af3dc4c2906..97ff4a82dd8b 100644 --- a/web/packages/core/src/ruffle-embed.ts +++ b/web/packages/core/src/ruffle-embed.ts @@ -5,7 +5,7 @@ import { RufflePlayer, workaroundYoutubeMixedContent, } from "./ruffle-player"; -import { registerElement } from "./register-element"; +import { registerElement } from "./internal/register-element"; import { isSwf } from "./swf-utils"; /** diff --git a/web/packages/core/src/ruffle-object.ts b/web/packages/core/src/ruffle-object.ts index a873263d415b..397a45af9379 100644 --- a/web/packages/core/src/ruffle-object.ts +++ b/web/packages/core/src/ruffle-object.ts @@ -6,7 +6,7 @@ import { getPolyfillOptions, } from "./ruffle-player"; import { FLASH_ACTIVEX_CLASSID } from "./flash-identifiers"; -import { registerElement } from "./register-element"; +import { registerElement } from "./internal/register-element"; import { RuffleEmbed } from "./ruffle-embed"; import { isSwf } from "./swf-utils"; diff --git a/web/packages/core/src/ruffle-player.tsx b/web/packages/core/src/ruffle-player.tsx index cfdd46c184c2..bfa456afecd5 100644 --- a/web/packages/core/src/ruffle-player.tsx +++ b/web/packages/core/src/ruffle-player.tsx @@ -1,7 +1,7 @@ import type { RuffleHandle, ZipWriter } from "../dist/ruffle_web"; import { createRuffleBuilder } from "./load-ruffle"; import { applyStaticStyles, ruffleShadowTemplate } from "./shadow-template"; -import { lookupElement } from "./register-element"; +import { lookupElement } from "./internal/register-element"; import { DEFAULT_CONFIG } from "./config"; import type { DataLoadOptions, URLLoadOptions } from "./load-options"; import { @@ -14,7 +14,7 @@ import { import type { MovieMetadata } from "./movie-metadata"; import { swfFileName } from "./swf-utils"; import { buildInfo } from "./build-info"; -import { text, textAsParagraphs } from "./i18n"; +import { text, textAsParagraphs } from "./internal/i18n"; import { isExtension } from "./current-script"; import { configureBuilder } from "./internal/builder"; import { showPanicScreen } from "./internal/ui/panic"; diff --git a/web/packages/core/src/shadow-template.ts b/web/packages/core/src/shadow-template.ts index b243b700dd01..330081873afa 100644 --- a/web/packages/core/src/shadow-template.ts +++ b/web/packages/core/src/shadow-template.ts @@ -1,4 +1,4 @@ -import { text } from "./i18n"; +import { text } from "./internal/i18n"; /** * Insert all rules from array in the style sheet. diff --git a/web/packages/core/src/source-api.ts b/web/packages/core/src/source-api.ts index c326c6b061a1..b23380b99748 100644 --- a/web/packages/core/src/source-api.ts +++ b/web/packages/core/src/source-api.ts @@ -1,5 +1,5 @@ import { pluginPolyfill, polyfill } from "./polyfills"; -import { registerElement } from "./register-element"; +import { registerElement } from "./internal/register-element"; import { RufflePlayer } from "./ruffle-player"; import { buildInfo } from "./build-info"; import { InstallationOptions } from "./install"; diff --git a/web/packages/core/tsconfig.json b/web/packages/core/tsconfig.json index bdd53f7419a0..b2c9fcad9b93 100644 --- a/web/packages/core/tsconfig.json +++ b/web/packages/core/tsconfig.json @@ -4,7 +4,7 @@ "composite": true, "module": "es2020", "moduleResolution": "node", - "target": "es2017", + "target": "es2021", "rootDir": "src", "outDir": "dist", "jsx": "react-jsx", diff --git a/web/packages/demo/tsconfig.json b/web/packages/demo/tsconfig.json index a7fc6fbf23de..a008e3eab68b 100644 --- a/web/packages/demo/tsconfig.json +++ b/web/packages/demo/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ES2021", "useDefineForClassFields": true, "lib": ["ES2020", "DOM", "DOM.Iterable"], "module": "ESNext", diff --git a/web/packages/extension/jsconfig.json b/web/packages/extension/jsconfig.json index b1e759dfe955..1acf274a581b 100644 --- a/web/packages/extension/jsconfig.json +++ b/web/packages/extension/jsconfig.json @@ -4,7 +4,7 @@ "lib": ["es2021"], "module": "es2022", "moduleResolution": "node", - "target": "es2017", + "target": "es2021", "resolveJsonModule": true, "maxNodeModuleJsDepth": 0, }, diff --git a/web/packages/extension/tsconfig.json b/web/packages/extension/tsconfig.json index 96acbb24a21a..799e0e9f3898 100644 --- a/web/packages/extension/tsconfig.json +++ b/web/packages/extension/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "module": "es2020", "moduleResolution": "node", - "target": "es2017", + "target": "es2021", "rootDir": "src", }, "include": ["src/**/*"], diff --git a/web/packages/selfhosted/tsconfig.json b/web/packages/selfhosted/tsconfig.json index 15c955319620..84307e98a7ed 100644 --- a/web/packages/selfhosted/tsconfig.json +++ b/web/packages/selfhosted/tsconfig.json @@ -4,7 +4,7 @@ "composite": true, "module": "es2020", "moduleResolution": "node", - "target": "es2017", + "target": "es2021", "rootDir": ".", "outDir": "dist", "types": ["node", "@wdio/globals/types", "@wdio/mocha-framework", "ruffle-core"]