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
Original file line number
Diff line number
Diff line change
@@ -1085,14 +1085,15 @@
1085
1085
1086
1086
## <a name='modules'>Modules</a>
1087
1087
1088
+
- 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.
1088
1089
- The file should be named with camelCase, live in a folder with the same name, and match the name of the single export.
1089
1090
- Add a method called noConflict() that sets the exported module to the previous version.
1090
1091
- Always declare `'use strict;'` at the top of the module.
0 commit comments