Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Plugin fails on dynamic imports #24

Open
DreierF opened this issue Aug 10, 2020 · 0 comments
Open

Plugin fails on dynamic imports #24

DreierF opened this issue Aug 10, 2020 · 0 comments

Comments

@DreierF
Copy link

DreierF commented Aug 10, 2020

Using dynamic imports like

import(/* webpackChunkName: "login" */ './login/LoginPage')

causes the plugin to break. It throws with:

ERROR in ./src/Index.ts
Module parse failed: Unknown node type Import.
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
Error: Unknown node type Import.
    at Controller.traverse (.../node_modules/estraverse/estraverse.js:454:31)
    at Object.traverse (.../node_modules/estraverse/estraverse.js:646:27)
    at VariableVirtualScope.traversePureDeclarator (.../node_modules/deep-scope-analyser/lib/analyser/virtualScope/variableVirtualScope.js:96:20)
    at VariableVirtualScope.findAllReferencesToVirtualScope (.../node_modules/deep-scope-analyser/lib/analyser/virtualScope/variableVirtualScope.js:44:22)
    at ...node_modules/deep-scope-analyser/lib/analyser/moduleAnalyser.js:139:45
    at Array.forEach (<anonymous>)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant