René's URL Explorer Experiment


Title: Webpack Config is stripping out Crypto · Issue #1548 · angular/angular-cli · GitHub

Open Graph Title: Webpack Config is stripping out Crypto · Issue #1548 · angular/angular-cli

X Title: Webpack Config is stripping out Crypto · Issue #1548 · angular/angular-cli

Description: OS? Mac OSX El Capitan Versions. angular-cli: local (v1.0.0-beta.10, branch: webpack) node: 4.4.7 os: darwin x64 Repro steps. I've pulled down the Angular-cli project and am building it locally, so I am using the new webpack version. The...

Open Graph Description: OS? Mac OSX El Capitan Versions. angular-cli: local (v1.0.0-beta.10, branch: webpack) node: 4.4.7 os: darwin x64 Repro steps. I've pulled down the Angular-cli project and am building it locally, so...

X Description: OS? Mac OSX El Capitan Versions. angular-cli: local (v1.0.0-beta.10, branch: webpack) node: 4.4.7 os: darwin x64 Repro steps. I've pulled down the Angular-cli project and am building it locally...

Opengraph URL: https://github.com/angular/angular-cli/issues/1548

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Webpack Config is stripping out Crypto","articleBody":"1. OS?  \n   Mac OSX El Capitan\n2. Versions. \n   angular-cli: local (v1.0.0-beta.10, branch: webpack)  \n   node: 4.4.7  \n   os: darwin x64  \n3. Repro steps.\n   I've pulled down the Angular-cli project and am building it locally, so I am using the new webpack version. \n   The project that I am building uses Crypto libraries (via a dependency of a dependency ...).\n   When I was running `ng build` I was seeing the dependency built like this:\n\n```\n    /* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\n    var crypto = __webpack_require__(147);\n    var BufferUtil = __webpack_require__(21);\n    var $ = __webpack_require__(15);\n\n    var Hash = module.exports;\n\n    Hash.sha1 = function(buf) {\n      $.checkArgument(BufferUtil.isBuffer(buf));\n      return crypto.createHash('sha1').update(buf).digest();\n    };\n    ...\n```\n\nAnd then when I looked at module 147 (I.E. the crypto module) I was seeing nothing there:\n\n```\n/***/ },\n/* 147 */\n/***/ function(module, exports, __webpack_require__) {\n\n/***/ },\n```\n\nAfter a while of searching I took a look in the Angular-CLI code and saw that part of the webpack config (addon/ng2/models/webpack-build-common.ts) was this:\n\n```\nnode: {\n      global: 'window',\n      crypto: 'empty',\n      module: false,\n      clearImmediate: false,\n      setImmediate: false\n    }\n```\n\nWhen I remove `crypto: 'empty'` everything builds correctly with the crypto module getting pulled in.\n\nSo my question is, why have you specified that crypto should be empty? \nIs there any way to fix this more permanently? \n","author":{"url":"https://github.com/jmc265","@type":"Person","name":"jmc265"},"datePublished":"2016-08-04T10:42:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":73},"url":"https://github.com/1548/angular-cli/issues/1548"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2b2e90c5-dac4-a071-229a-7957e4959cf3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id86C6:A27F4:15A5C88:1E0E322:6980C82B
html-safe-nonce9f3da3a14e9ff72b09177620558f382c643962a1242cd62f5026559df439b869
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkM2OkEyN0Y0OjE1QTVDODg6MUUwRTMyMjo2OTgwQzgyQiIsInZpc2l0b3JfaWQiOiI2NDM3NjU0MDQxNTc2NTkxNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca1504c3e643f90f8a8cfcb2526415fc463bf397691cb807ffbd62d8d3dce0b49
hovercard-subject-tagissue:169345099
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/1548/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e810128121e4a8832acb5f2966ad4a3f7a82a20a180fab7094d22c11dc4aac2d/angular/angular-cli/issues/1548
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e810128121e4a8832acb5f2966ad4a3f7a82a20a180fab7094d22c11dc4aac2d/angular/angular-cli/issues/1548
og:image:altOS? Mac OSX El Capitan Versions. angular-cli: local (v1.0.0-beta.10, branch: webpack) node: 4.4.7 os: darwin x64 Repro steps. I've pulled down the Angular-cli project and am building it locally, so...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejmc265
hostnamegithub.com
expected-hostnamegithub.com
Nonec940d5e308643c0003d2824389ea8281bcaae0a9a0d07438e3fb5e0bdc4fef12
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebb3d0fe9b8e408797775c5db420b1ee5ff06e4d0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/1548#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F1548
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F1548
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/1548
Reloadhttps://github.com/angular/angular-cli/issues/1548
Reloadhttps://github.com/angular/angular-cli/issues/1548
angular https://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Notifications https://github.com/login?return_to=%2Fangular%2Fangular-cli
Fork 11.9k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Star 27k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Code https://github.com/angular/angular-cli
Issues 262 https://github.com/angular/angular-cli/issues
Pull requests 21 https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security 1 https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
Code https://github.com/angular/angular-cli
Issues https://github.com/angular/angular-cli/issues
Pull requests https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/1548
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/1548
Webpack Config is stripping out Cryptohttps://github.com/angular/angular-cli/issues/1548#top
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%22
https://github.com/jmc265
https://github.com/jmc265
jmc265https://github.com/jmc265
on Aug 4, 2016https://github.com/angular/angular-cli/issues/1548#issue-169345099
type: faqhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20faq%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.