@swc/plugin-noop 1.5.0

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/Cargo.toml ADDED
@@ -0,0 +1,20 @@
1
+ [package]
2
+ authors = ["강동윤 <kdy1997.dev@gmail.com>"]
3
+ description = "Noop plugin for debugging."
4
+ edition = "2018"
5
+ license = "Apache-2.0"
6
+ name = "swc_plugin_noop"
7
+ version = "0.1.0"
8
+
9
+ [lib]
10
+ crate-type = ["cdylib", "rlib"]
11
+
12
+ [dependencies]
13
+ swc_common = {version = "0.29.3", features = ["concurrent"]}
14
+ swc_core = {version = "0.29.10", features = [
15
+ "plugin_transform",
16
+ "ecma_utils",
17
+ "ecma_visit",
18
+ "ecma_ast",
19
+ "common",
20
+ ]}
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@swc/plugin-noop",
3
+ "version": "1.5.0",
4
+ "description": "Noop SWC plugin, for debugging",
5
+ "main": "swc_plugin_noop.wasm",
6
+ "scripts": {
7
+ "prepack": "cp ../../target/wasm32-wasi/release/swc_plugin_noop.wasm ."
8
+ },
9
+ "homepage": "https://swc.rs",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "+https://github.com/swc-project/plugins.git"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/swc-project/plugins/issues"
16
+ },
17
+ "author": "강동윤 <kdy1997.dev@gmail.com>",
18
+ "keywords": [],
19
+ "license": "Apache-2.0"
20
+ }
package/src/lib.rs ADDED
@@ -0,0 +1,9 @@
1
+ use swc_core::{
2
+ ecma::ast::Program,
3
+ plugin::{plugin_transform, proxies::TransformPluginProgramMetadata},
4
+ };
5
+
6
+ #[plugin_transform]
7
+ fn noop(program: Program, _: TransformPluginProgramMetadata) -> Program {
8
+ program
9
+ }
Binary file