add snap resizing option
fix commonjs shim
dist