# disallow import() syntax (es/no-dynamic-import)

This rule reports ES2020 import() syntax as errors.

# Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-dynamic-import: error */ async function f() { const a = await import("source") }
Now loading...

# 📚 References