Conversation
✅ Changeset detectedLatest commit: eec954e
If no version change is needed, please add The changes in this PR will be included in the next version bump. powered by: naverpay changeset detect-add actions |
| export default createViteConfig({ | ||
| cwd: '.', | ||
| entry: ['./lib/index.js'], | ||
| ignoredPolyfills: ['esnext.json.parse', 'es.array.push'], |
There was a problem hiding this comment.
요것두 폴리필 불필요할 듯 하여 ignore처리했는데 혹시 최신 스펙 사용을 의도한 것이라면 말씀 부탁드립니닷,,
There was a problem hiding this comment.
저거 두개 다 아마 ignore 처리해도 될 거에요
문서는 못찾겠는데 사소한 이슈로 알고 있습니다
There was a problem hiding this comment.
일단 코드로 보기에는 진짜 단순 parse, push만 쓴느 것 같아서 ignore할게용
| import builtins from 'builtin-modules' | ||
|
|
||
| export default createViteConfig({ | ||
| cwd: '.', |
| options: { | ||
| minify: false, | ||
| rollupOptions: { | ||
| external: [...builtins], |
There was a problem hiding this comment.
근데 이거 builtin 기본적으로 빠지게 설정 안했었나.. 기억이 안나네요
There was a problem hiding this comment.
저도 그런줄 알았는데 deps, peerDeps만 기본 external 처리되어 있습니다
There was a problem hiding this comment.
기본값으로 이거 빼는게 맞을거같네용..
|
|
|
근데 웨 생성되는거죠? |
|
배럴파일에 package.json export가 있어서 그런 것 같습니다. |
음... 제 생각엔 .mjs로 빌드는 필요 없을 것 같긴한데, .json export는 필요하지 않을까 싶기도 하고... 있어도 상관 없을 것 같기도 하고..ㅋㅋ |
|
|
근데 이건 json을 package.json dist에 포함되었나..? 혹은 같은 계층에 있는게 맞는가가 확정되어야 괜찮은거 아닐까요?? https://github.com/NaverPayDev/code-style/blob/main/packages/eslint-config/index.js#L9-L12 이 파일 같은 경우는 import 하는 위치가 잘 되어 있어서 괜찮은 것 같은데, 만약 개발자가 실수한다면 json import 를 제대로 못하는 상황이 생길 수 도.. 있지 않나 해서요! |
|
|
|
이거 package.json.mjs 파일 내용 뭔지 알 수 있을까요? |
|
json의 js화 코드 입니다..! |

Related Issue
Describe your changes