Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CJS bundles include ESM version of babel runtime helper of external dependencies #1458

Closed
3 tasks
sungik-choi opened this issue Jun 29, 2023 · 0 comments · Fixed by #1459
Closed
3 tasks
Assignees
Labels
bug Issues related to anything that isn't working build Issue or PR related to build system

Comments

@sungik-choi
Copy link
Contributor

sungik-choi commented Jun 29, 2023

Summary

CJS 번들에 외부 의존성이 사용하는 @babel/runtime/helpers 의 ESM 버전이 포함되는 문제

Reproduction process

Version of bezier-react

1.7.0

Browser

No response

Operating system

  • macOS
  • Windows
  • Linux

Additonal Information

#513 과 같은 문제이지만, 이 PR의 접근 방식으로 해결되지 않았습니다.

    nodeResolve({
      extensions,
      exportConditions: ['default', 'require'],
      mainFields: ['main'],
    }),

설정을 참고하여 위와 같이 CJS 모듈 엔트리포인트에 먼저 진입하도록 설정을 강제해보았지만, ESM 헬퍼를 import하는 동작은 변하지 않았습니다.

@sungik-choi sungik-choi added help wanted Issue or PR that extra attention is needed bug Issues related to anything that isn't working build Issue or PR related to build system labels Jun 29, 2023
@sungik-choi sungik-choi changed the title CJS bundles include babel runtime helper (ESM) of external dependencies CJS bundles include ESM version of babel runtime helper of external dependencies Jun 29, 2023
@sungik-choi sungik-choi self-assigned this Jun 29, 2023
@sungik-choi sungik-choi removed the help wanted Issue or PR that extra attention is needed label Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to anything that isn't working build Issue or PR related to build system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant