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

Add a rule to prevent static import of (already) dynamically imported files #81

Open
willdurand opened this issue Nov 27, 2018 · 1 comment

Comments

@willdurand
Copy link
Member

See also: mozilla/addons-frontend#7017 (comment)


The idea is to avoid referencing code from a dynamically (code-splitted) imported file so that we don't impact the main bundle.

Maybe there is a plugin that exists already, and if that suits our needs, then no need to write a rule. We can adopt the plugin in addons-frontend directly.

@kumar303
Copy link

The idea is to avoid referencing code from a dynamically (code-splitted) imported file so that we don't impact the main bundle.

Specifically, the rule should forbid a static import of any path that is dynamically imported in Routes.js.

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

2 participants