Sha256: 20e7aa55cce42e696d5b0804723a6511bf09afe85c714b355e81fda4f07c6b6c

Contents?: true

Size: 412 Bytes

Versions: 6

Compression:

Stored size: 412 Bytes

Contents

import { setup } from '../utils.js'

export default setup('env', () => {
  return {
    onResolve: {
      filter: /^env$/,
      callback({ path }) {
        return { path, namespace: 'env' }
      }
    },

    onLoad: {
      filter: /.*/,
      namespace: 'env',
      callback() {
        const env = Deno.env.toObject()
        return { loader: 'json', contents: JSON.stringify(env) }
      }
    }
  }
})

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
proscenium-0.1.0.alpha2-x86_64-linux lib/proscenium/cli/esbuild/env_plugin.js
proscenium-0.1.0.alpha2-x86_64-darwin lib/proscenium/cli/esbuild/env_plugin.js
proscenium-0.1.0.alpha2-arm64-darwin lib/proscenium/cli/esbuild/env_plugin.js
proscenium-0.1.0.alpha1-x86_64-linux lib/proscenium/cli/esbuild/env_plugin.js
proscenium-0.1.0.alpha1-x86_64-darwin lib/proscenium/cli/esbuild/env_plugin.js
proscenium-0.1.0.alpha1-arm64-darwin lib/proscenium/cli/esbuild/env_plugin.js