CallExpression()

in packages/build-plugin-lce/src/compiler/depAnalyze.js [93:107]


    CallExpression(nodePath) {
      const { callee, arguments: args } = nodePath.node;
      const isImportNode = (
        callee.type === 'Identifier' &&
        callee.name === 'require'
      ) || callee.type === 'Import';

      if (
        isImportNode &&
        args.length === 1 &&
        args[0].type === 'StringLiteral'
      ) {
        result.push(args[0].value);
      }
    },