你是否正在寻找关于requirejs的内容?让我把最实时的东西奉献给你:
Download requirejs
All you need to start using require.js in the browser.
The r.js file allows you to run the optimizer as well as run modules in Node, Rhino, Nashorn or xpcshell.
If you are running in Node, and want to use npm to install this file via npm, see the Use with Node page for more information.
For information on its use, as well as how to get the JAR files to run it under Rhino/Nashorn, see the r.js README.
These are useful loader plugins that have the same license terms as require.js itself. Download the plugin file and place it as a sibling to your "data-main" main.js script.
. Great for loading templates. The text strings can be inlined in an optimized build when the optimizer is used.
. Useful for pausing execution of top level application logic until the DOM is ready for querying/modification.
Load files written in CoffeeScript. With this plugin, it is easy to code in CoffeeScript in the browser, it can participate in the optimizer optimizations, and it works in Node and Rhino/Nashorn via the . This is the best way to do cross-environment, modular CoffeeScript. The project home has more information on how to install and use it.
used in internationalization (i18n) that are made up of separate country/language/locale-specific bundles.
More details on the higher level motivations for the 2.2 release.
Full list of changes:
The main issue: a change in 2.1.21 of require.js created an extraneous global. While jshint is used in the repo, it was not properly configured to catch that issue, but it is now. Only the require.js loader changed. No r.js optimizer-specific bug fixes, but it uses require.js as a dependency.
Full list of changes:
Main changes in the r.js optimizer: updates to the Esprima and UglifyJS dependencies. For require.js: fixes a couple of error conditions.
Full list of changes:
The main fixes: a fix in require.js to allow out of order define calls in a built file, and an optimizer fix to detect another UMD pattern and to skip looking at its internal structure.
Full list of changes:
A new onNodeCreated hook in require.js that will allow extending requirejs to support Subresource Integrity (SRI). Updates for esprima and uglifyjs2 in the optimizer.
Full list of changes:
The notable changes are in the r.js optimizer:
Full list of changes:
The notable changes are in the r.js optimizer: an update to Esprima 2.1.0 for dependency tracing, and a fix around "use strict" processing that should help some loader plugins or build scenarios that were using React.
Full list of changes:
The notable changes are in the r.js optimizer:
Full list of changes:
Mainly fixes a regression from 2.1.14 in the r.js optimizer where some define() calls were not found. The most common manifestations of the bug would be either an extra define('jquery', function(){}) in the build output or namespaced builds not working. The fixes for 2.1.15 are just in the optimizer. Full list of changes:
A couple more regression fixes for 2.1.12. One to fix nested plugin ID normalization, like "pluginA!pluginbB!resource", and one for the optimizer incorrectly detecting UMD wrapped code.
Version 2.1.12 regressed around ID normalization. 2.1.13 fixes that regression, and it is recommended that you do not use 2.1.12, but use 2.1.13 instead.
Just a bug fix/maintenance release. Full list of changes:
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/shenmilingyu/article-5315-1.html
日本海军强在舰新