How to use the @rollup/pluginutils.extractAssignedNames function in @rollup/pluginutils

To help you get started, we’ve selected a few @rollup/pluginutils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rollup / plugins / packages / commonjs / src / transform.js View on Github external
enter(node) {
      if (node.type !== 'AssignmentExpression') return;
      if (node.left.type === 'MemberExpression') return;

      extractAssignedNames(node.left).forEach((name) => {
        assignedTo.add(name);
      });
    }
  });

@rollup/pluginutils

A set of utility functions commonly used by Rollup plugins

MIT
Latest version published 29 days ago

Package Health Score

100 / 100
Full package analysis