Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit fd3dfb9

Browse files
multicsznck
authored andcommitted
docs: Add CommonJS plugin in example as it's required in most cases
If rollup-plugin-commonjs is not used, rollup complains: Error: 'default' is not exported by node_modules/vue-runtime-helpers/dist/normalize-component.js
1 parent dcd18a7 commit fd3dfb9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ With rollup you can break your application into reusable modules.
2222
> This document applies to v4.0+. If you are looking for older versions, docs are [here](https://github.com/vuejs/rollup-plugin-vue/tree/2.2/docs)
2323
2424
```js
25+
import commonjs from 'rollup-plugin-commonjs'
2526
import VuePlugin from 'rollup-plugin-vue'
2627

2728
export default {
2829
entry: 'main.js',
29-
plugins: [VuePlugin(/* VuePluginOptions */)]
30+
plugins: [
31+
commonjs(),
32+
VuePlugin(/* VuePluginOptions */)
33+
]
3034
}
3135
```
3236

0 commit comments

Comments
 (0)