1.2.1 • Published 23 days ago

esm-env v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
23 days 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-pack@content-thing/svelte-componentskjistik-component-librarysveltekit-rewriteip-designlottie-player-sveltehtml-svelte-parserhooks-as-storekb-svelte-google-maps-apilaunchdarkly-svelte-client-sdklutramaketpp-svelte-componentsollesvegeniceoutside-uirbowes-kitstwuiruta-corerunedtrpc-svelte-query@cartamd/plugin-component@chasi/ui@chanceseed/shoelace-ui@288-toolkit/component-loader@288-toolkit/device@288-toolkit/dismissable@288-toolkit/format@288-toolkit/i18n@288-toolkit/page-transition@288-toolkit/pagination@288-toolkit/sprite-animation@adfinitas.fr/adfinitas-ui@svelte-thing/components@cloudparker/easy-script-loader-svelte@cloudparker/easy-swiper-svelte@edge37/svelte-utils@gratrockstar/native-dialog-component@haysquare/svelte-multi-select@haysquare/svelte-multiselect@eirikk/sveltekit-stuff@eki-group/svelvet@efstajas/svelte-stepper@flyingcatband/tunebook@gmana/tailwind-indicator@gmana/tw@gmana/react@likable-hair/svelte@likec4/diagram@locationlabuo/leaflet-sveltified@ldn-viz/themes@lilregie/svelte-scanner@muzidudu/sv-libs@marianmeres/stuic@marianmeres/content-builder@nibbs66/buttons-pkg@j_c/gracile__create@j_c/gracile__create-gracile@j_c/gracile__engine@kitql/handles@kitql/helpers@kokimoki/svelte@kokimoki/svelte-components
1.2.0

24 days ago

1.2.1

23 days ago

1.1.1

2 months ago

1.1.0

2 months ago

1.1.4

2 months ago

1.1.3

2 months ago

1.1.2

2 months ago

1.0.0

2 years ago