MitsuhaKitsune / vuex-webextensions

A Vuex plugin to share store through webextensions components
MIT License
83 stars 30 forks source link

fix: update rollup format to commonJS #55

Closed TCashion closed 3 years ago

TCashion commented 3 years ago

Based on the rollup docs, the iife format is better suited for use in the <script> tag. Since extensions may bootstrap from the background script, it seems that the commonJS format may be a better approach.

This builds the index.js file in such a way that it creates a default export, whereas the iife format did not.

This is in relation to issue 54 that I opened today.

@MitsuhaKitsune would it help if I went ahead and incremented the package numbers for npm in this PR?