Skip to content

Commit

Permalink
๐Ÿ“ fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
padosum committed Sep 18, 2023
1 parent db5608f commit cb11178
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions wiki/crbug 1173575 non-JS module files deprecated.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
---
title : crbug/1173575, non-JS module files deprecated
date : 2023-07-24 23:37:02 +0900
updated : 2023-07-24 23:42:12 +0900
aliases : ["crbug/1173575, non-JS module files deprecated"]
draft : false
tags : ["Vite", "Error"]]
title: crbug/1173575, non-JS module files deprecated
date: 2023-07-24 23:37:02 +0900
updated: 2023-07-24 23:42:12 +0900
aliases: ["crbug/1173575, non-JS module files deprecated"]
draft: false
tags: ["Vite", "Error"]
---

Vscode๋กœ ๊ฐœ๋ฐœ์„ ํ•˜๋˜ ์ค‘์— ๋ฐฅ ๋จน๊ณ  ์ž๋ฆฌ์— ๋Œ์•„์˜ค๋‹ˆ ํฌ๋กฌ์—์„œ ๋‹ค์Œ ์˜ค๋ฅ˜๊ฐ€ ๋‚˜ํƒ€๋‚˜๋”๋‹ˆ ๊ฐœ๋ฐœ ์„œ๋ฒ„๊ฐ€ ๋™์ž‘ํ•˜์ง€ ์•Š์•˜๋‹ค.
Vscode๋กœ ๊ฐœ๋ฐœ์„ ํ•˜๋˜ ์ค‘์— ๋ฐฅ ๋จน๊ณ  ์ž๋ฆฌ์— ๋Œ์•„์˜ค๋‹ˆ ํฌ๋กฌ์—์„œ ๋‹ค์Œ ์˜ค๋ฅ˜๊ฐ€ ๋‚˜ํƒ€๋‚˜๋”๋‹ˆ ๊ฐœ๋ฐœ ์„œ๋ฒ„๊ฐ€ ๋™์ž‘ํ•˜์ง€ ์•Š์•˜๋‹ค.

```
crbug/1173575, non-JS module files deprecated
```

๊ฒ€์ƒ‰ํ–ˆ์„ ๋•Œ ์ธํ„ฐ๋„ท ์—ฐ๊ฒฐ ๋ฌธ์ œ, Vscode์—์„œ ๋””๋ฒ„๊น… ๋ฌธ์ œ, ์žฌ๋ถ€ํŒ…ํ•˜๋ผ๋Š” ์—ฌ๋Ÿฌ ๊ฐ€์ง€ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์ด ์žˆ์—ˆ๋Š”๋ฐ ๋‹ค ํ•ด๋ดค์ง€๋งŒ ํ•ด๊ฒฐ๋˜์ง€ ์•Š์•˜๋‹ค.
๊ฒ€์ƒ‰ํ–ˆ์„ ๋•Œ ์ธํ„ฐ๋„ท ์—ฐ๊ฒฐ ๋ฌธ์ œ, Vscode์—์„œ ๋””๋ฒ„๊น… ๋ฌธ์ œ, ์žฌ๋ถ€ํŒ…ํ•˜๋ผ๋Š” ์—ฌ๋Ÿฌ ๊ฐ€์ง€ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์ด ์žˆ์—ˆ๋Š”๋ฐ ๋‹ค ํ•ด๋ดค์ง€๋งŒ ํ•ด๊ฒฐ๋˜์ง€ ์•Š์•˜๋‹ค.

๋‚˜๋Š” Vite๋กœ ํ”„๋กœ์ ํŠธ๋ฅผ ๋นŒ๋“œํ•˜๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์ด๊ฒŒ ๋ญ” ๋ฌธ์ œ์ผ๊นŒ ๊ณ ๋ฏผํ•˜๋‹ค๊ฐ€ ๋‚ด๊ฐ€ ์ž‘์—…ํ•œ ๋‚ด์šฉ์„ ๊ฑฐ์Šฌ๋Ÿฌ ์˜ฌ๋ผ๊ฐ”๋‹ค.
`git status`๋กœ ํ™•์ธํ•˜๋‹ˆ `index.html` ํŒŒ์ผ์„ ์‹ค์ˆ˜๋กœ ์ด๋™ํ•œ ๊ฒƒ์„ ๋ฐœ๊ฒฌํ–ˆ๋‹ค.
`git status`๋กœ ํ™•์ธํ•˜๋‹ˆ `index.html` ํŒŒ์ผ์„ ์‹ค์ˆ˜๋กœ ์ด๋™ํ•œ ๊ฒƒ์„ ๋ฐœ๊ฒฌํ–ˆ๋‹ค.

์›๋ž˜ vite์—์„œ๋Š” `index.html`์ด root directory์— ์กด์žฌํ•œ๋‹ค. ๋‹ค๋ฅธ ํŒŒ์ผ์„ ์˜ฎ๊ธฐ๋ ค๋‹ค `index.html`์„ `/src` ๋‚ด๋ถ€๋กœ ์ด๋™์‹œํ‚จ ๊ฒƒ์ด๋‹ค. ์›๋ž˜๋Œ€๋กœ ๋Œ๋ฆฌ๋‹ˆ ์ž˜ ๋™์ž‘ํ–ˆ๋‹ค.
์›๋ž˜ vite์—์„œ๋Š” `index.html`์ด root directory์— ์กด์žฌํ•œ๋‹ค. ๋‹ค๋ฅธ ํŒŒ์ผ์„ ์˜ฎ๊ธฐ๋ ค๋‹ค `index.html`์„ `/src` ๋‚ด๋ถ€๋กœ ์ด๋™์‹œํ‚จ ๊ฒƒ์ด๋‹ค. ์›๋ž˜๋Œ€๋กœ ๋Œ๋ฆฌ๋‹ˆ ์ž˜ ๋™์ž‘ํ–ˆ๋‹ค.

## reference

- [Vite - index.html and Project Root](https://vitejs.dev/guide/#index-html-and-project-root)




0 comments on commit cb11178

Please sign in to comment.