vue-prism-component icon indicating copy to clipboard operation
vue-prism-component copied to clipboard

vue-prism-component does not provide an export named 'default'

Open mesqueeb opened this issue 4 years ago • 2 comments

Is it possible to prepare an ESM version so I can use this in Vite? I'm not sure why I'm seeing issues like this...

SyntaxError: The requested module '/@fs/Users/lucaban/ghq/github.com/CyCraft/blitzar/node_modules/vue-prism-component/dist/vue-prism-component.common.js?v=d01fabea' does not provide an export named 'default'

mesqueeb avatar Jul 19 '21 05:07 mesqueeb

I have found many issues with usage in Vite. I was able to solve them by bundling Prism into the dist esm built file. I will make a PR.

mesqueeb avatar Jul 19 '21 09:07 mesqueeb

↑ @egoist please review this small PR with great value for me :O

mesqueeb avatar Jul 19 '21 09:07 mesqueeb