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(sourcemaps): try to improve the source maps by fixing the path #1028

Merged
merged 3 commits into from
Jun 7, 2016

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Jun 7, 2016

This is an attempt to improve the source maps. This works fine with Material.

@hansl
Copy link
Contributor Author

hansl commented Jun 7, 2016

@filipesilva could you review please?

return builder.bundle('main - [app/**/*]',
const bundles = this.options.bundles || ['app'];

return builder.bundle('main' + bundles.map(name => `[${name}/**/*]`).join(' - '),
Copy link
Contributor

Choose a reason for hiding this comment

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

For bundles = ['app1', 'app2'] this will evaluate to [app1/**/*] - [app2/**/*]. I think it's missing the first -.

Copy link
Contributor

Choose a reason for hiding this comment

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

Have you checked it works as you expect it to btw? It might need to be main - ([app1/**/*] + [app2/**/*]).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh right. Fixed.

@hansl
Copy link
Contributor Author

hansl commented Jun 7, 2016

I haven't tested it. Doing it right now.

@@ -242,12 +243,31 @@ class BroccoliTypeScriptCompiler extends Plugin {
* This issue is fixed in https://github.com/Microsoft/TypeScript/pull/5620.
* Once we switch to TypeScript 1.8, we can remove this method.
Copy link
Contributor

Choose a reason for hiding this comment

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

Uhm is this comment still accurate? We are on TS 1.8

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We still need to fix sources. I need to spend much more time refactoring this plugin and the rest.

@filipesilva
Copy link
Contributor

Other than verifying that bundling does what you expect and the comment, LGTM.

@hansl hansl merged commit 5f909aa into angular:master Jun 7, 2016
@hansl hansl deleted the source-map branch June 7, 2016 03:54
@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 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants