Skip to content

Conversation

brandonroberts
Copy link
Contributor

Closes #6914

The require function was causing failures when using bundlers such as Browserify and SystemJS.

cc: @petebacondarwin

@petebacondarwin
Copy link
Contributor

LGTM

@@ -49,6 +49,7 @@ function main(modulesDirectory) {
var IMPORT_RE = new RegExp("import \\{?([\\w\\n_, ]+)\\}? from '(.+)';?", 'g');
var INJECT_RE = new RegExp("@Inject\\(ROUTER_PRIMARY_COMPONENT\\)", 'g');
var IMJECTABLE_RE = new RegExp("@Injectable\\(\\)", 'g');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is not part of your PR, but shouldn't that line say INJECTABLE_RE?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@brandonroberts
Copy link
Contributor Author

Got it @ericmartinezr

@petebacondarwin petebacondarwin added the action: merge The PR is ready for merge by the caretaker label Feb 19, 2016
…les are transpiled

The require function was causing failures when bundled using Browserify and SystemJS
@brandonroberts brandonroberts force-pushed the router1-build-require branch from f44017f to 0ff0270 Compare March 1, 2016 19:56
@vikerman
Copy link
Contributor

vikerman commented Mar 3, 2016

@petebacondarwin - Please add pr_state: LGTM if you think this is ready to be merged

@vikerman
Copy link
Contributor

vikerman commented Mar 4, 2016

TAP Green

@mary-poppins
Copy link

Merging PR #7049 on behalf of @vikerman to branch presubmit-vikerman-pr-7049.

@mhevery mhevery closed this in ae49085 Mar 4, 2016
@brandonroberts brandonroberts deleted the router1-build-require branch March 4, 2016 14:56
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

router(angular1): Router build file not compatible with browserify for bundling
6 participants