@qubit-ltd/rollup-builder 1.8.5 → 1.8.7
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/README.md +6 -6
- package/README.zh_CN.md +6 -6
- package/doc/api/global.html +1 -1
- package/doc/api/index.html +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Rollup Builder
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.com/package/@qubit-ltd/rollup-builder)
|
|
4
4
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
5
5
|
[](README.zh_CN.md)
|
|
6
6
|
[](https://dl.circleci.com/status-badge/redirect/gh/Haixing-Hu/rollup-builder/tree/master)
|
|
@@ -37,9 +37,9 @@ formats such as CommonJS (CJS), ES Module (ESM), and Universal Module Definition
|
|
|
37
37
|
You can install `rollup-builder` as a development dependency using `npm` or `yarn`:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
npm install @
|
|
40
|
+
npm install @qubit-ltd/rollup-builder --save-dev
|
|
41
41
|
# or
|
|
42
|
-
yarn add @
|
|
42
|
+
yarn add @qubit-ltd/rollup-builder --dev
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
## <span id="usage">Usage</span>
|
|
@@ -51,7 +51,7 @@ yarn add @haixing_hu/rollup-builder --dev
|
|
|
51
51
|
Example `rollup.config.mjs`:
|
|
52
52
|
|
|
53
53
|
```js
|
|
54
|
-
import rollupBuilder from '@
|
|
54
|
+
import rollupBuilder from '@qubit-ltd/rollup-builder';
|
|
55
55
|
|
|
56
56
|
export default rollupBuilder('MyLibrary', import.meta.url);
|
|
57
57
|
```
|
|
@@ -64,7 +64,7 @@ yarn add @haixing_hu/rollup-builder --dev
|
|
|
64
64
|
Example `rollup.config.mjs`:
|
|
65
65
|
|
|
66
66
|
```js
|
|
67
|
-
import rollupBuilder from '@
|
|
67
|
+
import rollupBuilder from '@qubit-ltd/rollup-builder';
|
|
68
68
|
|
|
69
69
|
export default rollupBuilder('MyLibrary', import.meta.url, {
|
|
70
70
|
formats: ['cjs', 'esm'],
|
|
@@ -311,7 +311,7 @@ See the following web pages for more details:
|
|
|
311
311
|
**NOTE:** In order to use this feature, you must specify the `exports` option to
|
|
312
312
|
`'mixed'` in the `rollup.config.mjs` file, i.e.,
|
|
313
313
|
```js
|
|
314
|
-
import rollupBuilder from '@
|
|
314
|
+
import rollupBuilder from '@qubit-ltd/rollup-builder';
|
|
315
315
|
|
|
316
316
|
export default rollupBuilder('MyLibrary', import.meta.url, { exports: 'mixed' });
|
|
317
317
|
```
|
package/README.zh_CN.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Rollup Builder
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.com/package/@qubit-ltd/rollup-builder)
|
|
4
4
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
5
5
|
[](README.md)
|
|
6
6
|
[](https://dl.circleci.com/status-badge/redirect/gh/Haixing-Hu/rollup-builder/tree/master)
|
|
@@ -34,9 +34,9 @@ Definition (UMD) 格式,可以选择是否进行代码压缩。
|
|
|
34
34
|
您可以将 `rollup-builder` 安装为开发依赖,使用 `npm` 或 `yarn` 安装:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
npm install @
|
|
37
|
+
npm install @qubit-ltd/rollup-builder --save-dev
|
|
38
38
|
# 或
|
|
39
|
-
yarn add @
|
|
39
|
+
yarn add @qubit-ltd/rollup-builder --dev
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## <span id="usage">使用</span>
|
|
@@ -47,7 +47,7 @@ yarn add @haixing_hu/rollup-builder --dev
|
|
|
47
47
|
示例 `rollup.config.mjs`:
|
|
48
48
|
|
|
49
49
|
```js
|
|
50
|
-
import rollupBuilder from '@
|
|
50
|
+
import rollupBuilder from '@qubit-ltd/rollup-builder';
|
|
51
51
|
|
|
52
52
|
export default rollupBuilder('MyLibrary', import.meta.url);
|
|
53
53
|
```
|
|
@@ -58,7 +58,7 @@ yarn add @haixing_hu/rollup-builder --dev
|
|
|
58
58
|
示例 `rollup.config.mjs`:
|
|
59
59
|
|
|
60
60
|
```js
|
|
61
|
-
import rollupBuilder from '@
|
|
61
|
+
import rollupBuilder from '@qubit-ltd/rollup-builder';
|
|
62
62
|
|
|
63
63
|
export default rollupBuilder('MyLibrary', import.meta.url, {
|
|
64
64
|
formats: ['cjs', 'esm'],
|
|
@@ -267,7 +267,7 @@ import Foo from 'my-module';
|
|
|
267
267
|
|
|
268
268
|
**注意:** 为了使用此特性,您必须在 `rollup.config.mjs` 文件中指定 `exports: 'mixed'` 选项,即:
|
|
269
269
|
```js
|
|
270
|
-
import rollupBuilder from '@
|
|
270
|
+
import rollupBuilder from '@qubit-ltd/rollup-builder';
|
|
271
271
|
|
|
272
272
|
export default rollupBuilder('MyLibrary', import.meta.url, { exports: 'mixed' });
|
|
273
273
|
```
|
package/doc/api/global.html
CHANGED
|
@@ -2903,7 +2903,7 @@ with the <code>import.meta.url</code> of the caller module.</p>
|
|
|
2903
2903
|
|
|
2904
2904
|
<footer>
|
|
2905
2905
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a>
|
|
2906
|
-
on Sun Jan 05 2025 14:
|
|
2906
|
+
on Sun Jan 05 2025 14:20:13 GMT+0800 (China Standard Time)
|
|
2907
2907
|
using the <a href="https://github.com/Haixing-Hu/jsdoc-minami">customized Minami theme</a>.
|
|
2908
2908
|
</footer>
|
|
2909
2909
|
|
package/doc/api/index.html
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
<section class="readme">
|
|
51
51
|
<article><h1>Rollup Builder</h1>
|
|
52
|
-
<p><a href="https://npmjs.com/package/@
|
|
52
|
+
<p><a href="https://npmjs.com/package/@qubit-ltd/rollup-builder"><img src="https://img.shields.io/npm/v/@qubit-ltd/rollup-builder.svg" alt="npm package"></a>
|
|
53
53
|
<a href="https://www.apache.org/licenses/LICENSE-2.0"><img src="https://img.shields.io/badge/License-Apache-blue.svg" alt="License"></a>
|
|
54
54
|
<a href="README.zh_CN.md"><img src="https://img.shields.io/badge/%E6%96%87%E6%A1%A3-%E4%B8%AD%E6%96%87%E7%89%88-blue.svg" alt="中文文档"></a>
|
|
55
55
|
<a href="https://dl.circleci.com/status-badge/redirect/gh/Haixing-Hu/rollup-builder/tree/master"><img src="https://dl.circleci.com/status-badge/img/gh/Haixing-Hu/rollup-builder/tree/master.svg?style=shield" alt="CircleCI"></a></p>
|
|
@@ -81,9 +81,9 @@ CommonJS and ES6.</li>
|
|
|
81
81
|
</ul>
|
|
82
82
|
<h2><span id="installation">Installation</span></h2>
|
|
83
83
|
<p>You can install <code>rollup-builder</code> as a development dependency using <code>npm</code> or <code>yarn</code>:</p>
|
|
84
|
-
<pre class="prettyprint source lang-bash"><code>npm install @
|
|
84
|
+
<pre class="prettyprint source lang-bash"><code>npm install @qubit-ltd/rollup-builder --save-dev
|
|
85
85
|
# or
|
|
86
|
-
yarn add @
|
|
86
|
+
yarn add @qubit-ltd/rollup-builder --dev
|
|
87
87
|
</code></pre>
|
|
88
88
|
<h2><span id="usage">Usage</span></h2>
|
|
89
89
|
<ol>
|
|
@@ -92,7 +92,7 @@ yarn add @haixing_hu/rollup-builder --dev
|
|
|
92
92
|
export a function that defines the library's build options. You can use the
|
|
93
93
|
provided <code>rollupBuilder</code> function to streamline this process.</p>
|
|
94
94
|
<p>Example <code>rollup.config.mjs</code>:</p>
|
|
95
|
-
<pre class="prettyprint source lang-js"><code>import rollupBuilder from '@
|
|
95
|
+
<pre class="prettyprint source lang-js"><code>import rollupBuilder from '@qubit-ltd/rollup-builder';
|
|
96
96
|
|
|
97
97
|
export default rollupBuilder('MyLibrary', import.meta.url);
|
|
98
98
|
</code></pre>
|
|
@@ -103,7 +103,7 @@ requirements. You can specify the input file, formats, filename prefix, and
|
|
|
103
103
|
other options. Refer to the <a href="#configuration">Configuration Options</a> section
|
|
104
104
|
for more details.</p>
|
|
105
105
|
<p>Example <code>rollup.config.mjs</code>:</p>
|
|
106
|
-
<pre class="prettyprint source lang-js"><code>import rollupBuilder from '@
|
|
106
|
+
<pre class="prettyprint source lang-js"><code>import rollupBuilder from '@qubit-ltd/rollup-builder';
|
|
107
107
|
|
|
108
108
|
export default rollupBuilder('MyLibrary', import.meta.url, {
|
|
109
109
|
formats: ['cjs', 'esm'],
|
|
@@ -385,7 +385,7 @@ import Foo from 'my-module';
|
|
|
385
385
|
</ul>
|
|
386
386
|
<p><strong>NOTE:</strong> In order to use this feature, you must specify the <code>exports</code> option to
|
|
387
387
|
<code>'mixed'</code> in the <code>rollup.config.mjs</code> file, i.e.,</p>
|
|
388
|
-
<pre class="prettyprint source lang-js"><code>import rollupBuilder from '@
|
|
388
|
+
<pre class="prettyprint source lang-js"><code>import rollupBuilder from '@qubit-ltd/rollup-builder';
|
|
389
389
|
|
|
390
390
|
export default rollupBuilder('MyLibrary', import.meta.url, { exports: 'mixed' });
|
|
391
391
|
</code></pre>
|
|
@@ -408,7 +408,7 @@ See the <a href="LICENSE">LICENSE</a> file for details.</p></article>
|
|
|
408
408
|
|
|
409
409
|
<footer>
|
|
410
410
|
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a>
|
|
411
|
-
on Sun Jan 05 2025 14:
|
|
411
|
+
on Sun Jan 05 2025 14:20:13 GMT+0800 (China Standard Time)
|
|
412
412
|
using the <a href="https://github.com/Haixing-Hu/jsdoc-minami">customized Minami theme</a>.
|
|
413
413
|
</footer>
|
|
414
414
|
|