Skip to content

.browserslistrc가 없을 때 browserslist에서 발생하는 에러를 해결합니다 - #18

Merged
keemhyunseok merged 5 commits into
mainfrom
repo/15_cwd
Dec 30, 2024
Merged

.browserslistrc가 없을 때 browserslist에서 발생하는 에러를 해결합니다#18
keemhyunseok merged 5 commits into
mainfrom
repo/15_cwd

Conversation

@keemhyunseok

Copy link
Copy Markdown
Contributor

Related Issue

Describe your changes

image

  • �pite내부의 const packageJSONPath = path.join(cwd, 'package.json') 코드에서 발생하는 에러를 해결합니다
  • node:path, node:fs를 external 세팅합니다

Request

@npayfebot

npayfebot commented Dec 30, 2024

Copy link
Copy Markdown
Contributor

✅ Changeset detected

Latest commit: bd756c9

@naverpay/pite, @naverpay/test packages have detected changes.

If no version change is needed, please add skip-detect-change to the label.

The changes in this PR will be included in the next version bump.

powered by: naverpay changeset detect-add actions

@yceffort-naver

Copy link
Copy Markdown
Contributor

우리 browserslistrc 없으면 우리껄로 기본값하기로 했던거같은데 맞나요?

@keemhyunseok

Copy link
Copy Markdown
Contributor Author

https://github.com/NaverPayDev/pite/blob/main/packages/pite/src/index.ts#L3-L29

네넵 그건 반영되어있습니다. �cosmic config관련 로직 실행전에 터져서,, 이부분 수정했씁니다

Comment thread packages/pite/vite.config.mjs Outdated
dep,
new RegExp(`^${dep}/.*`),
]),
external: [...deps, 'node:path', 'node:fs'],

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.

@keemhyunseok keemhyunseok Dec 30, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

29be0bd 반영했습니다!

@yceffort-naver yceffort-naver left a comment

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.

감사합니다.

@keemhyunseok

Copy link
Copy Markdown
Contributor Author

감삼다~

@keemhyunseok
keemhyunseok merged commit 4ad3d9d into main Dec 30, 2024
// @ts-check
export default createViteConfig({
formats: ['es', 'cjs'],
cwd: '.',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

이거 주로 __dirname 넣어주긴 하는데, 기본값을 '.' 으로 줄까여

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

저는 별 생각없이 넣은 것이긴한데 기본값 있어서 옵셔널로 받아도 좋을 것 같습니다

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