1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(try_trait)]
#![feature(specialization)]
#![feature(core_intrinsics)]
#![feature(nll)]
#![feature(trace_macros)]
#![cfg_attr(test, feature(test))]
#![recursion_limit = "1024"]

#[macro_use]
extern crate lazy_static;
#[macro_use(js_word)]
extern crate swc_atoms;
#[macro_use]
extern crate swc_common;
extern crate chashmap;
extern crate fxhash;
extern crate hashbrown;
extern crate indexmap;
extern crate inflector;
extern crate ordered_float;
extern crate scoped_tls;
extern crate swc_ecma_ast as ast;
#[cfg(test)]
extern crate swc_ecma_codegen;
extern crate swc_ecma_parser;
#[cfg(test)]
#[macro_use]
extern crate pretty_assertions;
#[cfg(test)]
extern crate sourcemap;
#[cfg(test)]
extern crate tempfile;
#[cfg(test)]
extern crate test;
#[cfg(test)]
#[macro_use]
extern crate testing;
extern crate either;
extern crate serde;
extern crate unicode_xid;

pub use self::{
    const_modules::const_modules, fixer::fixer, hygiene::hygiene, inline_globals::InlineGlobals,
    resolver::resolver, simplify::simplifier,
};

#[cfg(test)]
#[macro_use]
mod tests;
#[macro_use]
mod quote;
#[macro_use]
pub mod helpers;
#[macro_use]
mod macros;
#[macro_use]
mod hygiene;
pub mod compat;
mod const_modules;
mod fixer;
mod inline_globals;
pub mod modules;
pub mod pass;
pub mod proposals;
pub mod react;
mod resolver;
pub mod scope;
mod simplify;
pub mod typescript;
pub mod util;