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

hidden modules not working #53

Open
cjahv opened this issue Apr 21, 2021 · 1 comment
Open

hidden modules not working #53

cjahv opened this issue Apr 21, 2021 · 1 comment

Comments

@cjahv
Copy link

cjahv commented Apr 21, 2021

Document:

https://webpack.js.org/configuration/stats/#statsexcludemodules

Error Anchor:

td: pre: code= module.name.split("!").join("\n")

each chunk in module.chunks

td: pre: code= module.name.split("!").join("\n")

each chunk in module.chunks

@cjahv
Copy link
Author

cjahv commented Apr 21, 2021

diff --git a/app/pages/upload/page.js b/app/pages/upload/page.js
index d28a05c..46f2044 100644
--- a/app/pages/upload/page.js
+++ b/app/pages/upload/page.js
@@ -24,6 +24,7 @@ module.exports = function() {
                fileReader.readAsText(files[0]);
                fileReader.onload = function() {
                        var data = fileReader.result;
+                       data = data.replace(/"hidden modules"/g, `"hidden modules","name":"hidden modules","chunks":[]`);
                        app.load(JSON.parse(data));
                        $(".modal").modal("hide");
                        app.loadPage.apply(app, nextPage);

😄

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

No branches or pull requests

1 participant