1.2.2 • Published 10 months ago

esm-env v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

esm-env

Uses export conditions to return environment information in a way that works with major bundlers and runtimes.

Usage

Install with npm install esm-env, then import as needed:

import { BROWSER, DEV, NODE } from 'esm-env';

Specify conditions in your bundler or runtime. For example:

If esm-env is used in both bundled code and an externalized library, you will need to specify conditions both at build-time and run-time.

Acknowledgements

Thank you to dominikg for refining the approach used by this library to suggest a more scalable method for adding additional conditions.

License

MIT

@cokakoala/skeleton@infinitebrahmanuniverse/nolb-esm@everything-registry/sub-chunk-1616@mediakular/svelte-data-gridkjistik-fixed-component-libraryphone-morkuptaleempresentationsvelte-tweakpane-uisvelte-uxsvelte-web-storagesvelte-writable-withsvelte-rune-swrsvelte-runessvelte-searchable-selectsvelte-theme-selectsvelte-headless-componentssvelte-kit-cookie-sessionsvelte-pdfjssvelte4-bcsveltekeyssveltekit-carbon-utilssvelvet-customwindmill-componentswrenchnpm-ui-componentssveltejs-kit-reroutesvauthsveltesvelte-choreographysvelte-google-maps-apisvelte-podcastsveditorjssvelte-babylonsvelte-babylonjssvelte-firebase-user-storesvelte-crypt-textsvelte-table-layoutthyseusvite-blitzvite-blitz-packip-designkb-svelte-google-maps-apilaunchdarkly-svelte-client-sdkhooks-as-storehtml-svelte-parsermaketlottie-player-sveltelutra@wrkwrk/svelte@unified-api/svelte-directory@undp-data/svelte-undp-components@tomoam/site-kit@temporalio/ui@toolsntuts/utils@trigger.dev/svelte@vmmad/test-svelte@user-credits/svelte-ui@unrilwever/kit@vertece/sveltekit@x33025/components@yzn-h/sveltejs-kit@gratrockstar/native-dialog-component@efstajas/svelte-stepper@edge37/svelte-utils@haysquare/svelte-multi-select@haysquare/svelte-multiselect@content-thing/svelte-componentskjistik-component-librarysveltekit-rewritestwuitrpc-svelte-query@gmana/tw@likable-hair/svelte@likec4/diagram@locationlabuo/leaflet-sveltified@ldn-viz/themes@lilregie/svelte-scanner@nibbs66/buttons-pkg@novely/image-format-selectormetapatcherollesvegenumber-flowrunedrbowes-kitregionistruta-coreniceoutside-uipp-svelte-components@paer/accessibilitytool@okzmo/noted-svelte@nordcode/forms-svelte@nosnibor89/svelte-client-sdk@nowmade/sveltify@nowmade/sveltify-cms@novely/core@novely/renderer-toolkit@number-flow/react@number-flow/svelte@number-flow/vue@humanspeak/svelte-virtual-list@hvniel/lexical-svelte
1.2.2

10 months ago

1.2.0

11 months ago

1.2.1

11 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.0

3 years ago