magicast icon indicating copy to clipboard operation
magicast copied to clipboard

`useSemi: false` in format options ignored on imports

Open userquin opened this issue 1 year ago • 0 comments

Environment

------------------------------
- Operating System: Windows_NT
- Node Version:     v20.10.0
- Package Manager:  [email protected]
------------------------------

Reproduction

https://github.com/vite-pwa/create-pwa :

  • pnpm install && nr build
  • cd examples && node ../index.js
  • follow the prompts (options doesn't matter) then open vite config file inside created folder

Describe the bug

useSemi: false shouldn't add imports with ;:

  • https://github.com/vite-pwa/create-pwa/blob/main/src/vite.ts
  • https://github.com/vite-pwa/create-pwa/blob/main/src/customize/vanilla.ts#L107

Generates import { VitePWA } from 'vite-plugin-pwa';

Additional context

No response

Logs

No response

userquin avatar May 07 '24 10:05 userquin