Title: should scripts be compile into scripts.bundle.js instead of using script-loader? · Issue #7290 · angular/angular-cli · GitHub
Open Graph Title: should scripts be compile into scripts.bundle.js instead of using script-loader? · Issue #7290 · angular/angular-cli
X Title: should scripts be compile into scripts.bundle.js instead of using script-loader? · Issue #7290 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [x] feature request currently global scripts are loaded by script-loader. which can't be optimize or minify, and can break some l...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [x] feature request currently global scripts are loaded by script-loader. which can't be ...
X Description: Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [x] feature request currently global scripts are loaded by script-loader. which can...
Opengraph URL: https://github.com/angular/angular-cli/issues/7290
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"should scripts be compile into scripts.bundle.js instead of using script-loader?","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [ ] bug report -> please search issues before submitting\r\n- [x] feature request\r\n```\r\n\r\ncurrently global scripts are loaded by script-loader. which can't be optimize or minify, and can break some library rely on global context\r\n\r\nlibrary1.js\r\n```javascript\r\n'use strict'\r\nvar library1 = function(){...}\r\n```\r\nanother script rely on library1\r\n```javascript\r\nlibrary1(...)\r\n```\r\n\r\nthey works well in traditional non-webpack environment, but currently they can't work because eval() is not allowed to add variable to context in strict mode.\r\n\r\nsince angular-cli is not allowed to modify webpack.config.js to use custom loaders.\r\nis there any way to work-around let such a library script work now?","author":{"url":"https://github.com/zh99998","@type":"Person","name":"zh99998"},"datePublished":"2017-08-07T14:39:53Z","url":"https://github.com/angular/angular-cli/issues/7290"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:62c8d6f3-a604-ec93-0117-f7ab59ca42b1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D42E:27A67B:27F8E9E:348F85D:6B055B62 |
| html-safe-nonce | 39f9af73713d9f5bfd039fe4fbb5f8878f5fd2a37de30b627bc0a3367648e703 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDJFOjI3QTY3QjoyN0Y4RTlFOjM0OEY4NUQ6NkIwNTVCNjIiLCJ2aXNpdG9yX2lkIjoiODk3MjIzODYxNzg4NDA1NjQxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c815dc4add1b92f0ede318314ded4906faa55549600c3d6af552bfd1bfcdd0bd |
| hovercard-subject-tag | issue:248432583 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/7290/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d535cbe940956fcb663da8ddf218a91c95d627285daf1ca313d2f56872aa4aaa/angular/angular-cli/issues/7290 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d535cbe940956fcb663da8ddf218a91c95d627285daf1ca313d2f56872aa4aaa/angular/angular-cli/issues/7290 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [x] feature request currently global scripts are loaded by script-loader. which can't be ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zh99998 |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width