2017-12-22 15:51:36 +03:00
|
|
|
[workspace]
|
2021-08-25 18:07:09 +03:00
|
|
|
members = [
|
|
|
|
"css",
|
|
|
|
"css/stylis",
|
2021-10-09 11:47:42 +03:00
|
|
|
"dev/cli",
|
2021-08-25 18:07:09 +03:00
|
|
|
"ecmascript",
|
|
|
|
"ecmascript/babel/compat",
|
|
|
|
"ecmascript/jsdoc",
|
|
|
|
"node/binding",
|
|
|
|
"plugin",
|
|
|
|
"plugin/runner",
|
|
|
|
"plugin/testing",
|
|
|
|
"wasm",
|
|
|
|
]
|
2017-12-22 15:51:36 +03:00
|
|
|
|
|
|
|
[package]
|
2019-10-25 04:11:24 +03:00
|
|
|
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
|
2018-11-18 08:00:07 +03:00
|
|
|
description = "Speedy web compiler"
|
2021-03-31 07:09:10 +03:00
|
|
|
documentation = "https://rustdoc.swc.rs/swc/"
|
2019-10-25 04:11:24 +03:00
|
|
|
edition = "2018"
|
2020-09-18 08:29:50 +03:00
|
|
|
license = "Apache-2.0/MIT"
|
|
|
|
name = "swc"
|
|
|
|
repository = "https://github.com/swc-project/swc.git"
|
2021-10-09 11:08:13 +03:00
|
|
|
version = "0.67.0"
|
2017-12-22 15:51:36 +03:00
|
|
|
|
2018-12-21 10:54:36 +03:00
|
|
|
[lib]
|
2018-01-27 09:14:53 +03:00
|
|
|
name = "swc"
|
|
|
|
|
2021-08-16 13:33:18 +03:00
|
|
|
[features]
|
|
|
|
default = ["es3"]
|
|
|
|
# You can disable this feautre to reduce binary size.
|
|
|
|
es3 = []
|
2021-09-10 09:43:14 +03:00
|
|
|
# See https://github.com/swc-project/swc/issues/1108
|
|
|
|
#
|
|
|
|
# If this option is enabled, es2015 transforms are enabled if target is es2015.
|
|
|
|
# If this option is disabled, es2015 transforms are disabled if target is es2015.
|
|
|
|
#
|
|
|
|
# This feature will be removed on v2 of node bindings.
|
|
|
|
wrong-target = []
|
2021-08-16 13:33:18 +03:00
|
|
|
|
2017-12-22 15:51:36 +03:00
|
|
|
[dependencies]
|
2021-10-09 11:08:13 +03:00
|
|
|
ahash = "0.7.4"
|
2020-03-27 08:40:01 +03:00
|
|
|
anyhow = "1"
|
2021-08-04 07:58:10 +03:00
|
|
|
base64 = "0.13.0"
|
2021-04-28 08:49:21 +03:00
|
|
|
dashmap = "4.0.2"
|
2020-09-18 08:29:50 +03:00
|
|
|
either = "1"
|
2021-06-24 09:32:09 +03:00
|
|
|
lru = "0.6.1"
|
2020-01-30 17:29:12 +03:00
|
|
|
once_cell = "1"
|
2021-07-08 10:32:06 +03:00
|
|
|
pathdiff = "0.2.0"
|
2019-10-25 04:11:24 +03:00
|
|
|
regex = "1"
|
2020-09-18 08:29:50 +03:00
|
|
|
serde = {version = "1", features = ["derive"]}
|
|
|
|
serde_json = "1"
|
2020-06-20 09:09:57 +03:00
|
|
|
sourcemap = "6"
|
2021-01-01 07:30:35 +03:00
|
|
|
swc_atoms = {version = "0.2", path = "./atoms"}
|
2021-10-09 11:08:13 +03:00
|
|
|
swc_bundler = {version = "0.68.0", path = "./bundler"}
|
2021-09-27 12:19:15 +03:00
|
|
|
swc_common = {version = "0.13.0", path = "./common", features = ["sourcemap", "concurrent"]}
|
2021-09-28 16:05:20 +03:00
|
|
|
swc_ecma_ast = {version = "0.54.0", path = "./ecmascript/ast"}
|
2021-09-29 15:10:38 +03:00
|
|
|
swc_ecma_codegen = {version = "0.74.0", path = "./ecmascript/codegen"}
|
2021-09-28 16:05:20 +03:00
|
|
|
swc_ecma_ext_transforms = {version = "0.31.0", path = "./ecmascript/ext-transforms"}
|
2021-10-09 11:08:13 +03:00
|
|
|
swc_ecma_loader = {version = "0.21.0", path = "./ecmascript/loader", features = ["lru", "node", "tsc"]}
|
|
|
|
swc_ecma_minifier = {version = "0.37.0", path = "./ecmascript/minifier"}
|
2021-09-28 16:05:20 +03:00
|
|
|
swc_ecma_parser = {version = "0.73.0", path = "./ecmascript/parser"}
|
2021-10-09 11:08:13 +03:00
|
|
|
swc_ecma_preset_env = {version = "0.52.0", path = "./ecmascript/preset-env"}
|
|
|
|
swc_ecma_transforms = {version = "0.81.0", path = "./ecmascript/transforms", features = [
|
2021-01-05 08:29:52 +03:00
|
|
|
"compat",
|
|
|
|
"module",
|
|
|
|
"optimization",
|
|
|
|
"proposal",
|
|
|
|
"react",
|
|
|
|
"typescript",
|
|
|
|
]}
|
2021-10-09 11:08:13 +03:00
|
|
|
swc_ecma_transforms_base = {version = "0.36.0", path = "./ecmascript/transforms/base"}
|
2021-09-28 16:05:20 +03:00
|
|
|
swc_ecma_utils = {version = "0.46.0", path = "./ecmascript/utils"}
|
|
|
|
swc_ecma_visit = {version = "0.40.0", path = "./ecmascript/visit"}
|
2021-10-09 11:08:13 +03:00
|
|
|
swc_ecmascript = {version = "0.73.0", path = "./ecmascript"}
|
2021-02-20 09:18:09 +03:00
|
|
|
swc_visit = {version = "0.2.3", path = "./visit"}
|
2021-09-27 12:19:15 +03:00
|
|
|
tracing = "0.1.28"
|
2019-10-25 04:11:24 +03:00
|
|
|
|
2019-11-26 04:08:48 +03:00
|
|
|
[dev-dependencies]
|
2020-02-17 09:56:41 +03:00
|
|
|
rayon = "1"
|
2021-09-27 12:19:15 +03:00
|
|
|
swc_node_base = {version = "0.4.0", path = "./node/base"}
|
|
|
|
testing = {version = "0.14.0", path = "./testing"}
|
2020-09-18 08:29:50 +03:00
|
|
|
walkdir = "2"
|
2019-11-26 04:08:48 +03:00
|
|
|
|
2019-10-25 04:11:24 +03:00
|
|
|
[[example]]
|
|
|
|
name = "usage"
|
2018-01-12 10:53:06 +03:00
|
|
|
|
2020-03-01 14:05:03 +03:00
|
|
|
[profile.release]
|
|
|
|
codegen-units = 1
|
2021-10-09 11:08:13 +03:00
|
|
|
lto = "fat"
|
2020-05-23 09:36:04 +03:00
|
|
|
# debug = true
|
2020-08-17 09:04:08 +03:00
|
|
|
# opt-level = 'z'
|
2020-03-01 14:05:03 +03:00
|
|
|
|
2018-01-12 10:53:06 +03:00
|
|
|
[profile.bench]
|
2019-11-23 07:03:29 +03:00
|
|
|
codegen-units = 1
|
2020-09-18 08:29:50 +03:00
|
|
|
debug = true
|
2021-08-07 11:27:52 +03:00
|
|
|
|
|
|
|
# Without this, printing diff consumes more than a minute.
|
|
|
|
|
|
|
|
[profile.dev.package.pretty_assertions]
|
|
|
|
opt-level = 3
|
|
|
|
|
|
|
|
[profile.test.package.pretty_assertions]
|
|
|
|
opt-level = 3
|