transform loader for webpack