Skip to content

v0.2.8

Latest

Choose a tag to compare

@deepentropy deepentropy released this 06 May 07:07
· 1 commit to main since this release

Fix CJS require() returning empty namespace (#89)

Renamed the CJS bundles to .cjs so Node parses them as CommonJS instead of treating them as ESM under "type": "module".

  • main: dist/index.jsdist/index.cjs
  • exports["."].require: ./dist/index.js./dist/index.cjs
  • exports["./runtime"].require: ./dist/runtime/index.js./dist/runtime/index.cjs

require('oakscriptjs') now returns the full namespace (81 exports) again. ESM consumers are unaffected.

Full Changelog: v0.2.7...v0.2.8