This is an issue report.
This bug was fixed in vue 2.4.2:
https://github.com/vuejs/vue/commit/082fc3967db4d3290e901a38504dcd9bb698e561
Vue 2.3.4 & 2.4.1 has different behavior in pre tag compilation
- demo in 2.3.4
# install vue2.3.4 and vue-template-compiler 2.3.4
npm install
npm run dev
Which works well.
- demo in 2.4.1
# install vue2.3.4 and vue-template-compiler 2.3.4
npm i vue@2.4.1 vue-template-compiler@2.4.1
npm run dev
The demo code is inline now: