Use withAssets plugin to lazily load JS for editor mode