Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(angular_1_router): Renamed transpiled require functions #7049

Closed

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
Member

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
Member

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
@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