Create a library like: # library('foo-bar'); // hyphen It uses the library name as an identifier in the generated JS even though it may contain non-identifier characters.