chore(build): move iife pattern to build process to clean the dev code