Package that illustrates different ways to expose entry points via package.json’s "exports" field (see Node.js docs).
npm i @skypack/export-map-test
- ✅
@skypack/export-map-test(main entry): should import./module.jsif using the export map - ✅
@skypack/export-map-test/simple: should import./simple.js - ✅
@skypack/export-map-test/conditional: should import one file in./conditional, depending on your criteria - ✅
@skypack/export-map-test/wildcard/css.css: should succeed (as should…/js.jsand…/svg.svg) - ✅
@skypack/export-map-test/wildcard-js/one: should only be able to import any.jsfile without the extension (one,two,three) - ❌
@skypack/export-map-test/wildcard-js/css: should fail (as shouldsvg) - ✅
@skypack/export-map-test/package.json: should succeed - ❌
@skypack/export-map-test/README.md: should fail