Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@insurgent/export-map-test

sheerlox141MIT1.0.1

Package that exposes various entry points via package.json's exports field for testing purposes

readme

@insurgent/export-map-test

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

Conditions:

  • @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 should js.js and svg.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 should svg)
  • @insurgent/export-map-test/package.json: should succeed
  • @insurgent/export-map-test/README.md: should fail