Skip to content

Commit

Permalink
docs: add type assertions to json import documentation (#453)
Browse files Browse the repository at this point in the history
* Adding import assertion to the docs, to make compatible with node 17+
per the docs: https://github.com/tc39/proposal-import-assertions

* Added capitalization for the Vue menu item

* Update packages/vite-plugin-docs/docs/getting-started/vue/00-create-project.md

Co-authored-by: Jack Steam <[email protected]>

Co-authored-by: Jack Steam <[email protected]>
  • Loading branch information
altryne and jacksteamdev authored Aug 15, 2022
1 parent a65fe1f commit 8beadbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// highlight-start
import { crx } from '@crxjs/vite-plugin'
import manifest from './manifest.json'
import manifest from './manifest.json' // Node 14 & 16
import manifest from './manifest.json' assert { type: 'json' } // Node >=17
// highlight-end

export default defineConfig({
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
position: 2.2
label: Vue

1 comment on commit 8beadbe

@vercel
Copy link

@vercel vercel bot commented on 8beadbe Aug 15, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.