Closed yongholeeme closed 26 minutes ago
기본 punycode를 설치하고, pnpm patch 처리하는 것도 좋은 것 같아요~
https://unpkg.com/browse/punycode@2.3.1/package.json
저희는
이렇게 exports
로 찾아가고 있는데, 저기는 그게 없이 module
로만 되어 있어서 그런거같네요...
코드 좀 훔쳐와서 es-punycode
라도 만들까요 ㅋㅋㅋ
https://github.com/mathiasbynens/punycode.js/issues?q=is%3Aissue+is%3Aopen+esm+
보니까 더이상 뭐할 의지는 없어보이긴하네요
있어도 좀 특이한...ㅋㅋㅋ
"module": "punycode.es6.js",
준내 오래되보이긴하네요 ㅋㅋ
그렇다고.. es6 자체를 지원안하고 있는건 아닌 것 같아서,, 싸게싸게 가려면 그냥 저거 patch 처리해서 파일명 바꾸고 package.json 수정하면 될 것 같은데,, 이게 패키지라서 제대로 말려서 들어갈 진 모르겠네여?
module
은 번들러에서만 지원하는 야매 필드라, nodejs 환경에서는 제대로 안될거같습니다
흐음.. 그러면 es-punycode로 가는 수 밖에!ㅋㅋ
punycode-esm 이 있습니다만 cjs 에서 사용할 수가 없..(사용할 순 있지만..)
/
로 끝나면 디렉토리로 인식해 에러 발생당신의 선택 ~~~~
다같이 빌드해버리자는 말씀이시죠?
이거 하고 싶지는 않은데.. ㅠ^ㅠ 일단 코드 수정해서 nurl esm에서 punycode cjs import 정상적으로 사용할 수 있게 할까요?
이거 하고 싶지는 않은데.. ㅠ^ㅠ
22222
일단 코드 수정해서 nurl esm에서 punycode cjs import 정상적으로 사용할 수 있게 할까요?
`import punycode from 'punycode'
해서 punycode.decode
이렇게여?
@yceffort-naver 님, 네 맞습니다
일단 그러케 하시죠~~~~
@naverpay/punycode ..? 🫣
dependency alias 적용 후 dist/esm/index.js 에서
import {decode, encode} from 'npm-punycode'
로 import 하고 있는 부분에서 npm-punycode의 cjs 코드를 참조해 에러가 발생하는 듯