Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require.D #66

Open
McIvanX opened this issue Mar 5, 2024 · 7 comments · May be fixed by #50
Open

Require.D #66

McIvanX opened this issue Mar 5, 2024 · 7 comments · May be fixed by #50
Labels

Comments

@McIvanX
Copy link

McIvanX commented Mar 5, 2024

Sorry if i am missinformed and could find the solution without opening an issue. I am also new to webpacks and the programming language overall.

I get this output on one of the files using the tool:

require.d(exports, {
  JF: function () {
    return c;
  },
  UZ: function () {
    return u;
  },
  jK: function () {
    return a;
  }
});
const n = "^https?:";
const i = "^wss?:";
function o(t) {
  const e = t.match(new RegExp(/^\w+:/, "gi"));
  if (e && e.length) {
    return e[0];
  }
}
function s(t, e) {
  const r = o(t);
  return typeof r !== "undefined" && new RegExp(e).test(r);
}
function a(t) {
  return s(t, n);
}
function u(t) {
  return s(t, i);
}
function c(t) {
  return new RegExp("wss?://localhost(:d{2,5})?").test(t);
}

require.d isn't defined, this should be the func to export the functions to call them later on. Is it generated on purpose? What should i change in order for it to not give me an error?

@McIvanX
Copy link
Author

McIvanX commented Mar 5, 2024

UPDATE: i found https://deploy-preview-50--webcrack.netlify.app/, i am now trying to find the CLI version for this.

@j4k0xb
Copy link
Owner

j4k0xb commented Mar 5, 2024

yeah its currently work in progress
you'll have to clone that branch and build it to use the CLI

@j4k0xb j4k0xb added the webpack label Mar 5, 2024
@j4k0xb j4k0xb linked a pull request Mar 5, 2024 that will close this issue
@McIvanX
Copy link
Author

McIvanX commented Mar 5, 2024

oh, fast reply, thanks. Do you know whether unpacking multiple js files will be possible? What if i just merge all of them into a single one?

@j4k0xb
Copy link
Owner

j4k0xb commented Mar 5, 2024

it unpacks only the first bundle it finds in a file

@McIvanX
Copy link
Author

McIvanX commented Mar 5, 2024

sure, thank you so much

@McIvanX
Copy link
Author

McIvanX commented Mar 5, 2024

i get this issue:

npm ERR! npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! npm ERR! Unsupported URL Type "workspace:": workspace:*

@McIvanX
Copy link
Author

McIvanX commented Mar 5, 2024

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants