@douyinfe/semi-rspack-plugin 0.0.1 → 2.34.0-beta.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.
Files changed (3) hide show
  1. package/LICENSE +83 -0
  2. package/README.md +8 -11
  3. package/package.json +5 -5
package/LICENSE ADDED
@@ -0,0 +1,83 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 DouyinFE
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ The code implementation of the external library is referenced by DouyinFe are:
24
+
25
+ - animate.css
26
+
27
+ The MIT License (MIT)
28
+
29
+ Copyright (c) 2020 Daniel Eden
30
+
31
+ Permission is hereby granted, free of charge, to any person obtaining a copy
32
+ of this software and associated documentation files (the "Software"), to deal
33
+ in the Software without restriction, including without limitation the rights
34
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35
+ copies of the Software, and to permit persons to whom the Software is
36
+ furnished to do so, subject to the following conditions:
37
+
38
+ The above copyright notice and this permission notice shall be included in all
39
+ copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47
+ SOFTWARE.
48
+
49
+ - Ant Design
50
+ MIT LICENSE
51
+
52
+ Copyright (c) 2015-present Ant UED, https://xtech.antfin.com/
53
+
54
+ Permission is hereby granted, free of charge, to any person obtaining
55
+ a copy of this software and associated documentation files (the
56
+ "Software"), to deal in the Software without restriction, including
57
+ without limitation the rights to use, copy, modify, merge, publish,
58
+ distribute, sublicense, and/or sell copies of the Software, and to
59
+ permit persons to whom the Software is furnished to do so, subject to
60
+ the following conditions:
61
+
62
+ The above copyright notice and this permission notice shall be
63
+ included in all copies or substantial portions of the Software.
64
+
65
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
66
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
67
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
68
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
69
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
70
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
71
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
72
+
73
+ - rc-tree
74
+
75
+ MIT LICENSE
76
+
77
+ Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
78
+
79
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
80
+
81
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
82
+
83
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- > A webpack plugin for Semi Design to custom theme、replace prefix and so on.
1
+ > A repack plugin for Semi Design to custom theme、replace prefix and so on.
2
2
 
3
3
  ## Introduction
4
4
  The plugin is designed for Semi Design, support webpack4 and webpack5, provides two major abilities:
@@ -8,12 +8,12 @@ The plugin is designed for Semi Design, support webpack4 and webpack5, provides
8
8
  ## Usage
9
9
 
10
10
  ### Install
11
- Install `@douyinfe/semi-webpack-plugin` as a development dependency:
11
+ Install `@douyinfe/semi-rspack-plugin` as a development dependency:
12
12
 
13
13
  ``` shell
14
- npm install --save-dev @douyinfe/semi-webpack-plugin
14
+ npm install --save-dev @douyinfe/semi-rspack-plugin
15
15
  # or
16
- yarn add --dev @douyinfe/semi-webpack-plugin
16
+ yarn add --dev @douyinfe/semi-rspack-plugin
17
17
  ```
18
18
 
19
19
  ### Custom theme
@@ -30,7 +30,7 @@ In order to use the npm package, you need to customize the theme through [Semi D
30
30
 
31
31
  ``` js
32
32
  // webpack.config.js
33
- const SemiPlugin = require('@douyinfe/semi-webpack-plugin').default;
33
+ const SemiPlugin = require('@douyinfe/semi-rspack-plugin').default;
34
34
 
35
35
  module.exports = {
36
36
  // ...
@@ -57,7 +57,7 @@ $font-size-small: 16px;
57
57
  ``` js
58
58
  // webpack.config.js
59
59
  const path = require('path');
60
- const SemiPlugin = require('@douyinfe/semi-webpack-plugin').default;
60
+ const SemiPlugin = require('@douyinfe/semi-rspack-plugin').default;
61
61
 
62
62
  module.exports = {
63
63
  // ...
@@ -72,7 +72,7 @@ module.exports = {
72
72
  #### Through parameters
73
73
  ``` js
74
74
  // webpack.config.js
75
- const SemiPlugin = require('@douyinfe/semi-webpack-plugin').default;
75
+ const SemiPlugin = require('@douyinfe/semi-rspack-plugin').default;
76
76
 
77
77
  module.exports = {
78
78
  // ...
@@ -91,7 +91,7 @@ The CSS selectors used by Semi Design is prefixed with semi by default(e.g, `.se
91
91
 
92
92
  ``` js
93
93
  // webpack.config.js
94
- const SemiPlugin = require('@douyinfe/semi-webpack-plugin').default;
94
+ const SemiPlugin = require('@douyinfe/semi-rspack-plugin').default;
95
95
 
96
96
  module.exports = {
97
97
  // ...
@@ -143,9 +143,6 @@ Type: `Boolean`
143
143
 
144
144
  In the compilation phase, whether to exclude css references.Used to solve the problem that Next.js does not support the global introduction of css in third-party code.See this [discussion](https://github.com/vercel/next.js/discussions/27953).
145
145
 
146
- ##### options.webpackContext.NormalModule
147
-
148
- Type: `webpack NormalModule`
149
146
 
150
147
  ##### options.extractCssOptions.loader
151
148
 
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-rspack-plugin",
3
- "version": "0.0.1",
3
+ "version": "2.34.0-beta.0",
4
4
  "description": "",
5
- "author": "伍浩威 <wuhaowei.whw@bytedance.com>",
6
5
  "homepage": "",
7
6
  "license": "MIT",
8
7
  "main": "lib/index.js",
@@ -15,7 +14,8 @@
15
14
  ],
16
15
  "scripts": {
17
16
  "build:lib": "rimraf lib && tsc",
18
- "dev": "tsc -w --sourceMap"
17
+ "dev": "tsc -w --sourceMap",
18
+ "prepublishOnly": "npm run build:lib"
19
19
  },
20
20
  "dependencies": {
21
21
  "@babel/core": "^7.15.4",
@@ -30,5 +30,5 @@
30
30
  "typescript": "^4",
31
31
  "webpack": "^5.77.0"
32
32
  },
33
- "gitHead": "3ac52f8f6f711d525534036ec9be58e81a8eeebd"
34
- }
33
+ "gitHead": "66e287fcec3fff41839dfe30529b746ceee76aa5"
34
+ }