vue-highlighter icon indicating copy to clipboard operation
vue-highlighter copied to clipboard

Using Rollup for building vue-highlighter

Open Remeic opened this issue 5 years ago • 1 comments

Hi, we need to migrate to rollup instead of bili. A good starting point: https://vuejs.org/v2/cookbook/packaging-sfc-for-npm.html Instead of buble we want use babel ( latest version ) and serving all possible format. Bundle size is a crucial part, so make attention to preset of babel. ( Advice use bugfixes Minification must be delegated to the terser plugin.

Thanks in advance to all who will contribute to this Issue. For any question, let we know

Remeic avatar Oct 03 '20 18:10 Remeic

Just made the above PR (#28) for this. Because you're not using an SFC, it's a bit different than the cookbook but I just based it on how I've solved this before using rollup. Let me know if there's any feedback or issues.

khamer avatar Oct 03 '20 20:10 khamer