Skip to content
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.

Add ExternalResolver to filter modules which should not be processed #129

Closed
wants to merge 2 commits into from

Commits on Jun 17, 2014

  1. Add ExternalResolver to filtering external modules

    This adds a new resolver class, `ExternalResolver`, which can be used to filter-out modules which should not be parsed/validated by the transpiler becuase they're external to the system.
    ericf committed Jun 17, 2014
    Configuration menu
    Copy the full SHA
    ddd6fee View commit details
    Browse the repository at this point in the history
  2. Add CLI option -e to ignore external modules

    This option tells the compiler to ignore external modules, instead of trying to find/parse/validate them.
    
    e.g.
    
        // bar.js
        import React from 'react';
        export var bar = 'bar';
    
        // foo.js
        import {bar} from './bar';
    
    When the `-e` option is passed, the compiler will see that the module `'react'` is external and therefore ignore trying to find it, parse it, and validate it.
    ericf committed Jun 17, 2014
    Configuration menu
    Copy the full SHA
    067b6f3 View commit details
    Browse the repository at this point in the history