Loading apps/demo/next.config.js +1 −1 Original line number Original line Diff line number Diff line Loading @@ -51,7 +51,7 @@ module.exports = withMDX({ enforce: 'pre', enforce: 'pre', }); }); config.experiments.topLevelAwait = true; // config.experiments.topLevelAwait = true; return config; return config; }, }, Loading apps/demo/src/utils/file.ts +1 −1 Original line number Original line Diff line number Diff line Loading @@ -37,7 +37,7 @@ if (typeof window !== 'undefined') { const { publicRuntimeConfig } = getConfig(); const { publicRuntimeConfig } = getConfig(); // Can't use `import` here because ESM is read-only (can't set `mitm` field) // Can't use `import` here because ESM is read-only (can't set `mitm` field) // Add `await` here because top-level await is on, so every import can be a `Promise` // Add `await` here because top-level await is on, so every import can be a `Promise` StreamSaver = await require('streamsaver'); StreamSaver = require('streamsaver'); StreamSaver.mitm = publicRuntimeConfig.basePath + '/StreamSaver/mitm.html'; StreamSaver.mitm = publicRuntimeConfig.basePath + '/StreamSaver/mitm.html'; } } Loading libraries/adb-backend-direct-sockets/tsconfig.json +3 −0 Original line number Original line Diff line number Diff line Loading @@ -9,6 +9,9 @@ "references": [ "references": [ { { "path": "../adb/tsconfig.build.json" "path": "../adb/tsconfig.build.json" }, { "path": "../stream-extra/tsconfig.build.json" } } ] ] } } libraries/adb-backend-webusb/tsconfig.json +3 −0 Original line number Original line Diff line number Diff line Loading @@ -13,6 +13,9 @@ { { "path": "../adb/tsconfig.build.json" "path": "../adb/tsconfig.build.json" }, }, { "path": "../stream-extra/tsconfig.build.json" }, { { "path": "../struct/tsconfig.build.json" "path": "../struct/tsconfig.build.json" } } Loading libraries/adb-backend-ws/tsconfig.json +3 −0 Original line number Original line Diff line number Diff line Loading @@ -9,6 +9,9 @@ "references": [ "references": [ { { "path": "../adb/tsconfig.build.json" "path": "../adb/tsconfig.build.json" }, { "path": "../stream-extra/tsconfig.build.json" } } ] ] } } Loading
apps/demo/next.config.js +1 −1 Original line number Original line Diff line number Diff line Loading @@ -51,7 +51,7 @@ module.exports = withMDX({ enforce: 'pre', enforce: 'pre', }); }); config.experiments.topLevelAwait = true; // config.experiments.topLevelAwait = true; return config; return config; }, }, Loading
apps/demo/src/utils/file.ts +1 −1 Original line number Original line Diff line number Diff line Loading @@ -37,7 +37,7 @@ if (typeof window !== 'undefined') { const { publicRuntimeConfig } = getConfig(); const { publicRuntimeConfig } = getConfig(); // Can't use `import` here because ESM is read-only (can't set `mitm` field) // Can't use `import` here because ESM is read-only (can't set `mitm` field) // Add `await` here because top-level await is on, so every import can be a `Promise` // Add `await` here because top-level await is on, so every import can be a `Promise` StreamSaver = await require('streamsaver'); StreamSaver = require('streamsaver'); StreamSaver.mitm = publicRuntimeConfig.basePath + '/StreamSaver/mitm.html'; StreamSaver.mitm = publicRuntimeConfig.basePath + '/StreamSaver/mitm.html'; } } Loading
libraries/adb-backend-direct-sockets/tsconfig.json +3 −0 Original line number Original line Diff line number Diff line Loading @@ -9,6 +9,9 @@ "references": [ "references": [ { { "path": "../adb/tsconfig.build.json" "path": "../adb/tsconfig.build.json" }, { "path": "../stream-extra/tsconfig.build.json" } } ] ] } }
libraries/adb-backend-webusb/tsconfig.json +3 −0 Original line number Original line Diff line number Diff line Loading @@ -13,6 +13,9 @@ { { "path": "../adb/tsconfig.build.json" "path": "../adb/tsconfig.build.json" }, }, { "path": "../stream-extra/tsconfig.build.json" }, { { "path": "../struct/tsconfig.build.json" "path": "../struct/tsconfig.build.json" } } Loading
libraries/adb-backend-ws/tsconfig.json +3 −0 Original line number Original line Diff line number Diff line Loading @@ -9,6 +9,9 @@ "references": [ "references": [ { { "path": "../adb/tsconfig.build.json" "path": "../adb/tsconfig.build.json" }, { "path": "../stream-extra/tsconfig.build.json" } } ] ] } }