Add CommonJS support and use `:globals` to match compile-modules.