@repodog/rollup-config 4.0.8 → 4.0.10
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/LICENSE +1 -1
- package/README.md +9 -9
- package/package.json +2 -2
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -29,11 +29,11 @@ npm install @repodog/rollup-config rollup --save-dev
|
|
|
29
29
|
|
|
30
30
|
```javascript
|
|
31
31
|
// rollup.config.mjs
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
import rollupConfig from '@repodog/rollup-config';
|
|
33
|
+
import babelConfig from '@repodog/babel-config/rollup';
|
|
34
|
+
import { babel as babelPlugin } from '@rollup/plugin-babel';
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
export default {
|
|
37
37
|
...rollupConfig({ compiler: babelPlugin(babelConfig) }),
|
|
38
38
|
};
|
|
39
39
|
```
|
|
@@ -42,11 +42,11 @@ module.exports = {
|
|
|
42
42
|
|
|
43
43
|
```javascript
|
|
44
44
|
// rollup.config.mjs
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
import rollupConfig from '@repodog/rollup-config';
|
|
46
|
+
import swcConfig from '@repodog/swc-config';
|
|
47
|
+
import swcPlugin from '@rollup/plugin-swc';
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
export default {
|
|
50
50
|
...rollupConfig({ compiler: swcPlugin({ swc: swcConfig.ts }) }),
|
|
51
51
|
// or
|
|
52
52
|
...rollupConfig({ compiler: swcPlugin({ swc: swcConfig.js }) }),
|
|
@@ -63,4 +63,4 @@ Sets `output.format`, directory name within `./dist` output, and the extension o
|
|
|
63
63
|
|
|
64
64
|
When set to `'production'`, terser mangles and compresses, the bundle analyser runs, and source maps are omitted.
|
|
65
65
|
|
|
66
|
-
**You
|
|
66
|
+
**You can also use the environment variables outlined in [`@repodog/babel-config`](../babel-config/README.md#environment-variables) or [`@repodog/swc-config`](../swc-config/README.md#environment-variables) to control what is output.**
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repodog/rollup-config",
|
|
3
3
|
"description": "The Repodog Rollup config module.",
|
|
4
|
-
"version": "4.0.
|
|
5
|
-
"author": "
|
|
4
|
+
"version": "4.0.10",
|
|
5
|
+
"author": "miami-man",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/badbatch/repodog",
|
|
8
8
|
"repository": {
|