-
Notifications
You must be signed in to change notification settings - Fork 12k
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/cli): disable node global #8130
Conversation
47fbbb8
to
5cdcc36
Compare
Note: |
5cdcc36
to
fbc78b4
Compare
This will be fixed in CLI once angular/angular-cli#8130 lands. -rw-r--r-- 1 iminar eng 14942 Oct 20 22:23 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:23 dist/inline.5d66b81ec9e01af9d28d.bundle.js -rw-r--r-- 1 iminar eng 528395 Oct 20 22:23 dist/main.e36bb99245ca52ae546f.bundle.js -rw-r--r-- 1 iminar eng 37205 Oct 20 22:23 dist/polyfills.0dfca732c5a075c110d0.bundle.js
This will be fixed in CLI once angular/angular-cli#8130 lands. -rw-r--r-- 1 iminar eng 14942 Oct 20 22:23 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:23 dist/inline.5d66b81ec9e01af9d28d.bundle.js -rw-r--r-- 1 iminar eng 528395 Oct 20 22:23 dist/main.e36bb99245ca52ae546f.bundle.js -rw-r--r-- 1 iminar eng 37205 Oct 20 22:23 dist/polyfills.0dfca732c5a075c110d0.bundle.js
This will be fixed in CLI once angular/angular-cli#8130 lands. -rw-r--r-- 1 iminar eng 14942 Oct 20 22:23 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:23 dist/inline.5d66b81ec9e01af9d28d.bundle.js -rw-r--r-- 1 iminar eng 528395 Oct 20 22:23 dist/main.e36bb99245ca52ae546f.bundle.js -rw-r--r-- 1 iminar eng 37205 Oct 20 22:23 dist/polyfills.0dfca732c5a075c110d0.bundle.js
Whoops I found an issue with these changes : |
Ok I see. It's quite common for libs to try and check the env if available so we shouldn't disable it. Thanks a bunch for testing this, it would have gotten through otherwise. |
The node only `global` object had been left in because it used to cause a build size regression with Angular. This doesn't seem to be the case anymore so it should be removed because it causes problematic interactions with some libraries. Fix angular#5804 Supersedes angular#7931
fbc78b4
to
3d5f163
Compare
@Wykks done, the PR doesn't remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed that this helps quite a bit for aio. I'm not sure what all the implications are for other projects.
This will be fixed in CLI once angular/angular-cli#8130 lands. -rw-r--r-- 1 iminar eng 14942 Oct 20 22:23 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:23 dist/inline.5d66b81ec9e01af9d28d.bundle.js -rw-r--r-- 1 iminar eng 528395 Oct 20 22:23 dist/main.e36bb99245ca52ae546f.bundle.js -rw-r--r-- 1 iminar eng 37205 Oct 20 22:23 dist/polyfills.0dfca732c5a075c110d0.bundle.js
heads up that this might break the old service worker library. see:
angular/angular#19702 (comment)
should we make this option configurable? or at least turn it on if the old
service worker is present?
…On Mon, Oct 23, 2017 at 2:57 PM Hans ***@***.***> wrote:
Merged #8130 <#8130>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8130 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AANM6KeQsmmPFnlPoo7g0jps2eLV1Xbsks5svQvmgaJpZM4QA4EL>
.
|
@IgorMinar I think the error on the message you linked was due to patching the CLI files to disable |
This will be fixed in CLI once angular/angular-cli#8130 lands. -rw-r--r-- 1 iminar eng 14942 Oct 20 22:23 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:23 dist/inline.5d66b81ec9e01af9d28d.bundle.js -rw-r--r-- 1 iminar eng 528395 Oct 20 22:23 dist/main.e36bb99245ca52ae546f.bundle.js -rw-r--r-- 1 iminar eng 37205 Oct 20 22:23 dist/polyfills.0dfca732c5a075c110d0.bundle.js
Seems like pdfjs is broken due to this change. It (or one of its dependencies) tries to load the browserify |
can you make global configurable in angular-cli.json ? It also breaks Faye. |
I'm starting to think that this will have to be configurable to allow
certain libraries to work, but it should be off by default.
…On Fri, Oct 27, 2017 at 3:27 PM Michal Žeravík ***@***.***> wrote:
can you make global configurable in angular-cli.json ? It also breaks Faye.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8130 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANM6J4x0OVZw9KAZ4q3mOuJEh6ewCv7ks5swdpLgaJpZM4QA4EL>
.
|
@IgorMinar I agree. I have found no way how to get Faye (and possibly others) to work without global. |
This will be fixed in CLI once angular/angular-cli#8130 lands. -rw-r--r-- 1 iminar eng 14942 Oct 20 22:23 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:23 dist/inline.5d66b81ec9e01af9d28d.bundle.js -rw-r--r-- 1 iminar eng 528395 Oct 20 22:23 dist/main.e36bb99245ca52ae546f.bundle.js -rw-r--r-- 1 iminar eng 37205 Oct 20 22:23 dist/polyfills.0dfca732c5a075c110d0.bundle.js
This will be fixed in CLI once angular/angular-cli#8130 lands. -rw-r--r-- 1 iminar eng 14942 Oct 20 22:23 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:23 dist/inline.5d66b81ec9e01af9d28d.bundle.js -rw-r--r-- 1 iminar eng 528395 Oct 20 22:23 dist/main.e36bb99245ca52ae546f.bundle.js -rw-r--r-- 1 iminar eng 37205 Oct 20 22:23 dist/polyfills.0dfca732c5a075c110d0.bundle.js
This will be fixed in CLI once angular/angular-cli#8130 lands. -rw-r--r-- 1 iminar eng 14942 Oct 20 22:23 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:23 dist/inline.5d66b81ec9e01af9d28d.bundle.js -rw-r--r-- 1 iminar eng 528395 Oct 20 22:23 dist/main.e36bb99245ca52ae546f.bundle.js -rw-r--r-- 1 iminar eng 37205 Oct 20 22:23 dist/polyfills.0dfca732c5a075c110d0.bundle.js
This will be fixed in CLI once angular/angular-cli#8130 lands. -rw-r--r-- 1 iminar eng 14942 Oct 20 22:23 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:23 dist/inline.5d66b81ec9e01af9d28d.bundle.js -rw-r--r-- 1 iminar eng 528395 Oct 20 22:23 dist/main.e36bb99245ca52ae546f.bundle.js -rw-r--r-- 1 iminar eng 37205 Oct 20 22:23 dist/polyfills.0dfca732c5a075c110d0.bundle.js PR Close #19702
This will be fixed in CLI once angular/angular-cli#8130 lands. -rw-r--r-- 1 iminar eng 14942 Oct 20 22:23 dist/0.b19e913fbdd6507d346b.chunk.js -rw-r--r-- 1 iminar eng 1535 Oct 20 22:23 dist/inline.5d66b81ec9e01af9d28d.bundle.js -rw-r--r-- 1 iminar eng 528395 Oct 20 22:23 dist/main.e36bb99245ca52ae546f.bundle.js -rw-r--r-- 1 iminar eng 37205 Oct 20 22:23 dist/polyfills.0dfca732c5a075c110d0.bundle.js PR Close #19702
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The node only
global
object had been left in because it used to cause a build size regression with Angular.This doesn't seem to be the case anymore so it should be removed because it causes problematic interactions with some libraries.
Fix #5804
Supersedes #7931