Skip to content

Simplify Dependency Management Flags #1319

@ChadKillingsworth

Description

@ChadKillingsworth

Currently, we have multiple dependency flags:

Closure

  • --manage_closure_dependencies
  • --only_closure_dependencies
  • --closure_entry_point

CommonJS

ES6

We're missing dependencies flags here. You "can" use the closure flags, but you have to specify your entry points as the normalized module name module$path$file.

I'd like to get this down to a single set of flags that supports all 3.

New Flags Proposal

These flags would replace all of the existing dependency flags mentioned above.

  • --process_common_js_modules - this would only enable module rewriting.
  • --manage_dependencies - This would have two modes (yet to be named) to allow users to control whether dropMoochers is enabled in DependencyOptions.
  • --entry_point - this would use the ES6 and CommonJS file based syntax. For closure, it would use the module import syntax: goog:namespace

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions