Skip to content

docs: fix typo#9855

Merged
bluwy merged 5 commits intovitejs:mainfrom
dev-itsheng:patch-4
Aug 29, 2022
Merged

docs: fix typo#9855
bluwy merged 5 commits intovitejs:mainfrom
dev-itsheng:patch-4

Conversation

@dev-itsheng
Copy link
Copy Markdown
Contributor

Description

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.


test('deep import with query with exports field', async () => {
// since it is imported with `?url` it should return a url
// since it is imported with `?url` it should return an url
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
// since it is imported with `?url` it should return an url
// since it is imported with `?url` it should return a URL

Similar to issue above with the unsounded h, use a before a sounded u.

export default defineConfig({
build: {
// make can no emit light.wasm
// make can not emit light.wasm
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
// make can not emit light.wasm
// make cannot emit light.wasm

let res: string | undefined

// if we fould postfix exist, we should first try resolving file with postfix. details see #4703.
// if we found postfix exist, we should first try resolving file with postfix. details see #4703.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
// if we found postfix exist, we should first try resolving file with postfix. details see #4703.
// if a postfix exists, we should first try resolving file with postfix. details see #4703.

const host = (hmr && hmr.host) || undefined
if (httpsOptions) {
// if we're serving the middlewares over https, the ws library doesn't support automatically creating an https server, so we need to do it ourselves
// if we're serving the middlewares over https, the ws library doesn't support automatically creating a https server, so we need to do it ourselves
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
// if we're serving the middlewares over https, the ws library doesn't support automatically creating a https server, so we need to do it ourselves
// if we're serving the middlewares over https, the ws library doesn't support automatically creating an https server, so we need to do it ourselves

The original text is correct. Use an before an unsounded h.

@dev-itsheng
Copy link
Copy Markdown
Contributor Author

@tony19 Thanks for the review, I have fixed all the issues you raised.

patak-cat
patak-cat previously approved these changes Aug 29, 2022
@bluwy bluwy changed the title fix(*): Typo docs: fix typo Aug 29, 2022
@bluwy bluwy enabled auto-merge (squash) August 29, 2022 13:16
@bluwy bluwy merged commit 583f185 into vitejs:main Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants