Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mesozoic/lib/swc.ts

A generic build system for Deno web apps
Go to Latest
import * as mesozoic from "https://deno.land/x/mesozoic@v1.0.0-beta.1/lib/swc.ts";

Functions

Note: this interface currently does not do actual async work, only provides a corresponding async interfaces to the @swc/core's interface.

Interfaces

{key} or {key = value}

.swcrc

  • import { DEBUG } from '@ember/env-flags';
  • import { FEATURE_A, FEATURE_B } from '@ember/features';

Configuration ported from babel-preset-env

  • export { foo } from 'mod'
  • export { foo as bar } from 'mod'

export * as foo from 'src';

Options for inline-global pass.

e.g. import foo from 'mod.js'

e.g. import * as foo from 'mod.js'.

These properties are mostly not implemented yet, but it exists to support passing terser config to swc minify without modification.

XML-based namespace syntax:

{key: value}

e.g. - import { foo } from 'mod.js'

Programmatic options.

Options for transform.

typeof operator

Type Aliases

Identifier is a in { a, }

namespace A.B { } is a namespace named A with another TsNamespaceDecl as its body.