christianalfoni / webpack-bin

A webpack code sandbox
http://www.webpackbin.com
MIT License
710 stars 75 forks source link

VueJS 2.0 #184

Open xereda opened 7 years ago

xereda commented 7 years ago

Hello,

First I need to congratulate you for the excellent tool. The developer community thanks.

I have a question that can be an inconsistency.

The boilerplate for VueJS, if I change the npm package for version 2.0 of the Vue, does not work properly, right !? What should I do to work in version 2.0 of Vue?

Thanks for the feedback.

Jackson

budiadiono commented 7 years ago

I have same problem, here's the bin: http://www.webpackbin.com/4kPWU3j1f. However this tool awesome!

okwme commented 7 years ago

also having this problem, can't seem to figure out why : \

pkawiak commented 7 years ago

The problem is that since vue@2.0.1 main npm package export is set to runtime-only build.

As stated in the docs, runtime-only build doesn't support template option, it only supports render functions.

To make it work we should add an alias in Webpack config

resolve: {
  alias: {
    'vue$': 'vue/dist/vue.common.js'
  }
}

but AFAIK adding aliases is currently not possible as #78 is still open...