Skip to content

Commit

Permalink
fix: rename relative exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Shlomi Assaf (shlassaf) committed Aug 21, 2016
1 parent 630f191 commit ee66675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulp/relative-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const visitCallExpression = (function() {


function tsDefinitionImportRename() {
const CORE_IMPORT_REGEX = /^(import {.+} from ['"])(.*\/components\/angular2-modal)(['"];?)$/mg;
return replace(CORE_IMPORT_REGEX, `$1${CORE_PACKAGE_NAME}$3`);
const CORE_IMPORT_REGEX = /^(import|export)( \{.+\} from ['"])(.*\/components\/angular2-modal)(['"];?)$/mg;
return replace(CORE_IMPORT_REGEX, `$1$2${CORE_PACKAGE_NAME}$4`);
}

module.exports.tsDefinitionImportRename = tsDefinitionImportRename();
Expand Down

0 comments on commit ee66675

Please sign in to comment.