Skip to content

Conversation

@agilgur5
Copy link
Owner

@agilgur5 agilgur5 commented Dec 4, 2019

  • this uses my fork which merged my commit that fixes the missing
    __esModule in CJS build output

    • which has been an issue in this library since adopting tsdx, as
      that's still an undocumented bug in tsdx
    • until this fix is merged and released in the root library, will
      be using this fork
  • it also has my recently merged commit that changes the cacheRoot to
    ./node_modules/.cache/ instead of ./rts2_cache_* directories

    • can remove them from gitignore and they no longer clutter app root

Fixes #12 by using my fork as I'm not sure when jaredpalmer/tsdx#327 will be merged (it has yet to be reviewed)

@codecov
Copy link

codecov bot commented Dec 4, 2019

Codecov Report

Merging #24 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #24   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      2           
  Lines          44     44           
  Branches       13     13           
=====================================
  Hits           44     44

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40e9912...b2cc981. Read the comment docs.

Copy link
Owner Author

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

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

Looks good, not much to see here

- this uses my fork which merged my PR/commit that fixes the missing
  __esModule in CJS build output
  - which has been an issue in this library since adopting tsdx, as
    that's still an undocumented bug in tsdx
    - the bug means that default imports get transpiled to x = require
      instead of { default: x } = require
      - which affects anyone using CJS and importing the default export
        - and most apps still transpile down, as do most test runners,
          so basically it affects almost everyone using the default
    - for more details, see #12
  - until this fix is merged and released in the root library, will
    be using this fork

- it also has my recently merged PR/commit that changes the cacheRoot
  to ./node_modules/.cache/ instead of ./rts2_cache_* directories
  - can remove them from gitignore and they no longer clutter app root
@agilgur5 agilgur5 merged commit ebddd6a into master Dec 4, 2019
@agilgur5 agilgur5 deleted the tsdx-fork branch December 4, 2019 07:21
@agilgur5 agilgur5 added kind: bug Something isn't working properly or is fixed scope: dependencies Pull requests that update a dependency file labels Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: bug Something isn't working properly or is fixed scope: dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CJS export is missing __esModule - Code transpiled to CJS can't use default export

2 participants