《玩转webpack》第五章 进阶篇: webpack 构建速度和体积优化策略com/polyfill_service/v2/polyfill.min.js?unknown=polyfill&features=Promise,Map,Set ## 体积优化策略总结 Scope Hoisting Tree-shaking 公共资源分离 图片压缩 动态 Polyfill ## ☐ ☐ ☐ ☐ ## 扫码试看/订阅 《玩转webpack》0 码力 | 36 页 | 8.13 MB | 2 年前3
Whats in a Name? Whats a Name in? - Walter E. Brown - CppCon 2020particular. Assuredly we’ve all been taught scope rules during our early training. However, ... ## Caveats about the "scope" of this talk The topic of C++ names C++, such a context is termed a declarative region. Confusingly, such a context is also known as a scope. • Each name is injected into (associated with) a context: Not necessarily into the declaration-context #### [basic.lookup.unqual] 1. Outermost block scope of A::N::g, before the use of k. 2. Scope of namespace N. 3. Scope of namespace A. 4. Global scope, before the definition of A::N::g. ## Example0 码力 | 7 页 | 4.37 MB | 1 年前3
Spring Framwork Language Support v5.3.36 SNAPSHOTasync {} and types like Flow. Spring Framework provides support for Coroutines on the following scope: • Deferred and Flow return values support in Spring MVC and WebFlux annotated @Controller • Suspending file). The first two steps (testing and writing your dynamic language source files) are beyond the scope of this chapter. See the language specification and reference manual for your chosen dynamic language goo.setMetaClass(metaClass); } } A full discussion of meta-programming in Groovy is beyond the scope of the Spring reference manual. See the relevant section of the Groovy reference manual or do a search0 码力 | 42 页 | 603.79 KB | 2 年前3
Creating a Sender/Receiver HTTP Serverinterface ## Basic Design • main() runs an event loop for network and timer events. • It uses an async_scope for outstanding work. • Initial work consist of accepting incoming client connections. • Each client networking: http://wg21.link/p2762 • Implementation: https://github.com/beman-project/net29 •Async scope: http://wg21.link/p3149 TechAtBloomberg.com0 码力 | 8 页 | 2.19 MB | 1 年前3
ES6 Tutorial..14 ES6 and Hoisting.....15 4. ES6 – VARIABLES ..... 16 Type Syntax ..... 16 JavaScript and Dynamic Typing ..... 17 JavaScriptVariable Scope ..... 17 The Let and Block Scope ..... 18 let and immutable ..... 21 const and arrays ..... 21 The var keyword ..... 22 var and hoisting ..... 22 var and block scope ..... 23 var and block level safety ..... 23 5. ES6 – OPERATORS ..... 25 Arithmetic 62 Lambda Functions ..... 63 Function Expression and Function Declaration ..... 64 Function Hoisting ..... 65 Immediately Invoked Function Expression ..... 65 Generator Functions ..... 67 Arrow0 码力 | 435 页 | 4.00 MB | 2 年前3
《玩转webpack》 第三章 基础篇 Webpack 进阶用法WEBPACK_REQUIRE_METHOD(0) 启动程序 ## scope hoisting 原理 ## 原理:将所有模块的代码按照引用顺序放在一个函数作用域里,然后适当的重命名一些变量以防止变量名冲突 ## 对比: 通过 scope hoisting 可以减少函数声明代码和内存开销 * * * ___ * ## scope hoisting 使用 module.exports = {0 码力 | 69 页 | 4.33 MB | 2 年前3
The JavaScript Handbook
22. Asynchronous Programming and Callbacks • 23. Promises • 24. Async and Await • 25. Variables scope ### 1. Introduction to JavaScript JavaScript is one of the most popular programming languages in simple ones, called primary expressions: 2 0.02 ;('something') true false this //the current scope undefined i //where i is a variable or a constant Arithmetic expressions are expressions that take Variables scope When I introduced variables, I talked about using const, let, and var. Scope is the set of variables that's visible to a part of the program. In JavaScript we have a global scope, block0 码力 | 56 页 | 577.92 KB | 2 年前3
webpack past present futureBUNDLER SOLVE A SHORT WEBPACK HISTORY LESSON ## PROBLEMS BUNDLERS SOLVE • SCRIPT TAGS • GLOBAL SCOPE • IIFE • MODULE FORMATS com/sponsors/sokra ## 2017 ## • Jun 2017 • WEBPACK 3 RELEASED (5 MONTHS AFTER WEBPACK 2) • EXPERIMENTAL SCOPE HOISTING ## • Aug 2017 • TRIVAGO STARTED SPONSORING WITH $10K/MONTH • Feb 2018 • WEBPACK 4 RELEASED0 码力 | 28 页 | 6.00 MB | 2 年前3
webpack 5 why breaking changesn) → MAX: 80k at 14K MODULES • NOTE: NUMBER OF EMITTED MODULES < NUMBER OF INPUT MODULES (SCOPE HOISTING) ## DETERMINISTIC BY DEFAULT • MIGRATION: • CHECK IF LONG TERM CACHING IS RELEVANT FOR YOU0 码力 | 43 页 | 8.58 MB | 2 年前3
MY STORY WITH WEBPACKENOUGH MONTHLY MONEY FOR FULL TIME AT THIS TIME ## JUN 2017: WEBPACK 3 WEBPACK 3 RELEASED • SCOPE HOISTING (MODULE CONCATENATION) • NO BIG BREAKING CHANGES MOSTLY INTERNAL CHANGES 5 MONTHS AFTER VERSION0 码力 | 55 页 | 8.90 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
WebpackBundleAnalyzerPluginspeed-measure-webpack-pluginTree-shakingScope HoistingnamescopedeclarationdefinitionidentifierKotlinSpring FrameworkDynamic Language SupportScripted BeansScopesender/receiver HTTP serverasynchronous frameworkminimalistic networking interfaceevent loopasync_scopeES6ECMAScriptJavaScript模块类模块机制打包原理代码分割构建优化语法变量类型运算符过去现在未来问题Webpack 5Breaking ChangesPolyfillsCacheFilename模块捆绑器性能改进未来计划赞助支持













