mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
fix bundle duplication
This commit is contained in:
parent
3826197093
commit
929dfcca24
8 changed files with 7 additions and 26 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { encodeUrl } from "../../shared/rewriters/url";
|
import { encodeUrl } from "../shared";
|
||||||
import { ScramjetClient } from "../client";
|
import { ScramjetClient } from "../client";
|
||||||
|
|
||||||
export default function (client: ScramjetClient) {
|
export default function (client: ScramjetClient) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { encodeUrl } from "../../shared/rewriters/url";
|
import { encodeUrl } from "../shared";
|
||||||
import { ScramjetClient } from "../client";
|
import { ScramjetClient } from "../client";
|
||||||
|
|
||||||
// we need a late order because we're mangling with addEventListener at a higher level
|
// we need a late order because we're mangling with addEventListener at a higher level
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import { rewriteJs } from "../../shared/rewriters/js";
|
|
||||||
import { ScramjetClient } from "../client";
|
import { ScramjetClient } from "../client";
|
||||||
import { config } from "../shared";
|
import { config, rewriteJs } from "../shared";
|
||||||
|
|
||||||
export default function (client: ScramjetClient, self: Self) {
|
export default function (client: ScramjetClient, self: Self) {
|
||||||
// used for proxying *direct eval*
|
// used for proxying *direct eval*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { encodeUrl } from "../../shared/rewriters/url";
|
import { encodeUrl } from "../shared";
|
||||||
import { ScramjetClient } from "../client";
|
import { ScramjetClient } from "../client";
|
||||||
|
|
||||||
export default function (client: ScramjetClient, self: typeof globalThis) {
|
export default function (client: ScramjetClient, self: typeof globalThis) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { encodeUrl } from "../shared/rewriters/url";
|
import { encodeUrl } from "./shared";
|
||||||
|
|
||||||
class ScramjetServiceWorkerRuntime {
|
class ScramjetServiceWorkerRuntime {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { encodeUrl } from "../shared/rewriters/url";
|
import { encodeUrl } from "./shared";
|
||||||
import { ScramjetClient } from "./client";
|
import { ScramjetClient } from "./client";
|
||||||
import { indirectEval } from "./shared/eval";
|
import { indirectEval } from "./shared/eval";
|
||||||
import { config } from "./shared";
|
import { config } from "./shared";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { encodeUrl } from "../../shared/rewriters/url";
|
import { encodeUrl } from "../shared";
|
||||||
|
|
||||||
export default function (client, self) {
|
export default function (client, self) {
|
||||||
client.Proxy("importScripts", {
|
client.Proxy("importScripts", {
|
|
@ -1,18 +0,0 @@
|
||||||
// if (!self.$scramjet) {
|
|
||||||
// //@ts-expect-error really dumb workaround
|
|
||||||
// self.$scramjet = {};
|
|
||||||
// }
|
|
||||||
// self.$scramjet.config = {
|
|
||||||
// prefix: "/scramjet/",
|
|
||||||
// codec: self.$scramjet.codecs.plain,
|
|
||||||
// wrapfn: "$scramjet$wrap",
|
|
||||||
// trysetfn: "$scramjet$tryset",
|
|
||||||
// importfn: "$scramjet$import",
|
|
||||||
// rewritefn: "$scramjet$rewrite",
|
|
||||||
// config: "/scram/scramjet.config.js",
|
|
||||||
// shared: "/scram/scramjet.shared.js",
|
|
||||||
// worker: "/scram/scramjet.worker.js",
|
|
||||||
// thread: "/scram/scramjet.thread.js",
|
|
||||||
// client: "/scram/scramjet.client.js",
|
|
||||||
// codecs: "/scram/scramjet.codecs.js",
|
|
||||||
// };
|
|
Loading…
Add table
Add a link
Reference in a new issue