Skip to content

Commit

Permalink
have vite output .mjs file
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaaash committed Jan 11, 2022
1 parent 0025a20 commit bf7ce53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/vue-ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({
entry: path.resolve(__dirname, 'src/index.ts'),
name: 'vue-ui',
formats: ['es'],
fileName: () => 'index.js',
fileName: () => 'index.mjs',
},
rollupOptions: {
external: ['@solana/wallet-adapter-base', '@solana/wallet-adapter-vue', 'vue'],
Expand Down

2 comments on commit bf7ce53

@HRK44
Copy link

@HRK44 HRK44 commented on bf7ce53 Jan 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jordansexton this change makes my build fail (using CRA), see #265 (comment)

@jordaaash
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HRK44 CRA is not currently supported and none of the starter projects use it, see #241 for context.

Please sign in to comment.