Thanks for pointing out the tree shaking. I can confirm that the same occurs for VueJs - CLI 3. All worked great in development but as soon as I tested in production it would break. I was pulling out my hair for a few hours on this but it turned out to be tree shaking.