Package that exposes various entry points via package.json
's exports
field for testing purposes.
Each file contains specific content to be able to test the loaded module value.
npm i --save-dev @insurgent/export-map-test
- ✅
@insurgent/export-map-test
: should import./main.js
- ✅
@insurgent/export-map-test/simple
: should import./simple.js
- ✅
@insurgent/export-map-test/conditional
: should import one file in./conditional
, depending on your criteria - ✅
@insurgent/export-map-test/wildcard/css.css
: should succeed (as shouldjs.js
andsvg.svg
) - ✅
@insurgent/export-map-test/wildcard-js/one
: should only be able to import any.js
file without the extension (one
,two
,three
) - ❌
@insurgent/export-map-test/wildcard-js/css
: should fail (as shouldsvg
) - ✅
@insurgent/export-map-test/package.json
: should succeed - ❌
@insurgent/export-map-test/README.md
: should fail