You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1083,14 +1083,15 @@
1083
1083
1084
1084
## <a name='modules'>Modules</a>
1085
1085
1086
+
- The module should start with a `!`. This ensures that if a malformed module forgets to include a final semicolon there aren't errors in production when the scripts get concatenated.
1086
1087
- The file should be named with camelCase, live in a folder with the same name, and match the name of the single export.
1087
1088
- Add a method called noConflict() that sets the exported module to the previous version.
1088
1089
- Always declare `'use strict;'` at the top of the module.
0 commit comments