@swc/core 1.2.212 → 1.2.218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +179 -0
- package/Visitor.d.ts +17 -4
- package/Visitor.js +96 -9
- package/index.js +123 -11
- package/package.json +40 -18
- package/postinstall.js +143 -0
- package/types.d.ts +163 -95
- package/.prettierignore +0 -63
- package/.prettierrc.json +0 -1
- package/babel.d.ts +0 -14
- package/babel.js +0 -2
- package/run_swcx.d.ts +0 -2
package/.prettierignore
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# Bundler cache files
|
|
2
|
-
.cache/
|
|
3
|
-
|
|
4
|
-
# Generated
|
|
5
|
-
CHANGELOG.md
|
|
6
|
-
target/
|
|
7
|
-
node_modules/
|
|
8
|
-
|
|
9
|
-
# Space sensitive
|
|
10
|
-
crates/jsdoc/tests/
|
|
11
|
-
crates/swc/tests/errors/
|
|
12
|
-
crates/swc/tests/projects/
|
|
13
|
-
crates/swc/tests/serde/
|
|
14
|
-
crates/swc_css_codegen/tests/
|
|
15
|
-
crates/swc_css_lints/tests/
|
|
16
|
-
crates/swc_css_minifier/tests/
|
|
17
|
-
crates/swc_css_parser/tests/
|
|
18
|
-
crates/swc_css_prefixer/tests/
|
|
19
|
-
crates/swc_ecma_codegen/tests/
|
|
20
|
-
crates/swc_ecma_lints/tests/
|
|
21
|
-
crates/swc_ecma_parser/tests/
|
|
22
|
-
crates/swc_estree_compat/tests/
|
|
23
|
-
crates/swc_html_codegen/tests/
|
|
24
|
-
crates/swc_html_minifier/tests/
|
|
25
|
-
crates/swc_html_parser/tests/
|
|
26
|
-
crates/swc_webpack_ast/tests/
|
|
27
|
-
|
|
28
|
-
# Generated by testing system
|
|
29
|
-
output/
|
|
30
|
-
output.js
|
|
31
|
-
output.*.js
|
|
32
|
-
output.full.js
|
|
33
|
-
output.mjs
|
|
34
|
-
index.g.js
|
|
35
|
-
output.json
|
|
36
|
-
output.ts
|
|
37
|
-
output.css
|
|
38
|
-
output.min.css
|
|
39
|
-
output.html
|
|
40
|
-
output.min.html
|
|
41
|
-
|
|
42
|
-
# Generated
|
|
43
|
-
crates/swc_ecma_preset_env/data
|
|
44
|
-
crates/swc_ecma_preset_env/**/*.json
|
|
45
|
-
crates/swc/tests/tsc-references
|
|
46
|
-
scripts/npm
|
|
47
|
-
|
|
48
|
-
# Downloaded
|
|
49
|
-
benches/
|
|
50
|
-
|
|
51
|
-
# TODO: Enable formatting
|
|
52
|
-
helpers/
|
|
53
|
-
packages/swc-helpers
|
|
54
|
-
node-swc/__tests__
|
|
55
|
-
node-swc/src
|
|
56
|
-
node-swc/tests
|
|
57
|
-
crates/swc/tests/srcmap/
|
|
58
|
-
crates/swc/tests/stacktrace/
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
# git submodules
|
|
62
|
-
crates/swc_ecma_parser/tests/test262-parser
|
|
63
|
-
crates/swc_html_parser/tests/html5lib-tests
|
package/.prettierrc.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
package/babel.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Options, ParseOptions } from './types';
|
|
2
|
-
export declare type BabelifyOptions = {
|
|
3
|
-
/**
|
|
4
|
-
* If it's not specified, transforms will not be applied.
|
|
5
|
-
*
|
|
6
|
-
* The parser config should be provided via this property when transformations are enabled.
|
|
7
|
-
*/
|
|
8
|
-
transforms: Options;
|
|
9
|
-
} | {
|
|
10
|
-
/**
|
|
11
|
-
* Option for the parser.
|
|
12
|
-
*/
|
|
13
|
-
parser: ParseOptions;
|
|
14
|
-
};
|
package/babel.js
DELETED
package/run_swcx.d.ts
DELETED