vuejs / rollup-plugin-vue

Roll .vue files
https://vuejs.github.io/rollup-plugin-vue
MIT License
843 stars 148 forks source link

Library with cjs format got vue-runtime-helper #270

Closed mazipan closed 5 years ago

mazipan commented 5 years ago

Version

4.7.2

Description

I used bili.js from @egoist that extend rollup-plugin-vue, when building library got this extra line

var __vue_normalize__ = _interopDefault(require('vue-runtime-helpers/dist/normalize-component.js'));

This line made my user got this error:

Module not found: Error: Can't resolve 'vue-runtime-helpers/dist/normalize-component.js'

What is expected?

vue-runtime-helpers was included as part of script, not using external require.

What is actually happening?

Using external require.

Related with: https://github.com/mazipan/vue-google-adsense/issues/12

zcuric commented 5 years ago

+1

ArjunAtlast commented 5 years ago

+1

xaksis commented 5 years ago

@mazipan how did you resolve this?