Skip to content

Commit c49803b

Browse files
authored
Merge pull request #630 from terinjokes/terinjokes/config-other-amd
config: tales of jQuery and the early days of modules
2 parents c80e3d9 + dd0ca6a commit c49803b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

content/configuration/other-options.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sort: 16
44
contributors:
55
- sokra
66
- skipjack
7+
- terinjokes
78
---
89

910
?> These are all the other options that might not need an entire page. Either we need to create new pages for them, move them to an existing page, or keep an **Other Options** section like this and replace this TODO with a short description/lead-in paragraph.
@@ -20,7 +21,11 @@ amd: {
2021
}
2122
```
2223

23-
?> I don't think this is very clear, at least not without a link pointing to what this might be used for.
24+
Certain popular modules written for AMD, most notably jQuery versions 1.7.0 to 1.9.1, will only register as an AMD module if the loader indicates it has taken [special allowances](https://github.com/amdjs/amdjs-api/wiki/jQuery-and-AMD) for multiple versions being included on a page.
25+
The allowances were the ability to restrict registrations to a specific version or to support different sandboxes with different defined modules.
26+
27+
This option allows you to set the key your module looks for to a truthy value.
28+
As it happens, the AMD support in webpack ignores the defined name anyways.
2429

2530

2631
## `bail`

0 commit comments

Comments
 (0)