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

Recursive importScripts causes stack overflow #5190

Open
mischnic opened this issue Sep 27, 2020 · 0 comments
Open

Recursive importScripts causes stack overflow #5190

mischnic opened this issue Sep 27, 2020 · 0 comments

Comments

@mischnic
Copy link
Member

🐛 bug report

Uncaught RangeError: Maximum call stack size exceeded.
    at worker1.178c9a39.js:2
    at worker1.178c9a39.js:212
    at worker1.7e89840e.js:2
    at worker1.7e89840e.js:79
    at worker1.178c9a39.js:2
    at worker1.178c9a39.js:212
    at worker1.7e89840e.js:2
    at worker1.7e89840e.js:79
    at worker1.178c9a39.js:2
    at worker1.178c9a39.js:212

🎛 Configuration (.babelrc, package.json, cli command)

{
	"dependencies": {
		"@babel/core": "^7.11.6"
	},
	"@parcel/bundler-default": {
		"minBundleSize": 0
	}
}

💁 Possible Solution

This is probably once again caused by runtimes....

💻 Code Sample

// index.js (entry)
new Worker("./worker1.js");

// worker1.js
import url from "url:./data.txt";
import "./worker2";

// workers2.js
import "./core.js";
new Worker("./worker3.js");

// worker3.js
import "./core.js";

// core.js
import "./worker3.js";

before_bundle:

before_bundle

BundleGraph:

BundleGraph

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

No branches or pull requests

1 participant