@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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +9 -9
  3. package/package.json +2 -2
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 Dylan Aubrey
3
+ Copyright (c) 2018 miami-man
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
- const rollupConfig = require('@repodog/rollup-config');
33
- const babelConfig = require('@repodog/babel-config/rollup');
34
- const { babel: babelPlugin } = require('@rollup/plugin-babel');
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
- module.exports = {
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
- const rollupConfig = require('@repodog/rollup-config');
46
- const swcConfig = require('@repodog/swc-config');
47
- const swcPlugin = require('@rollup/plugin-swc');
45
+ import rollupConfig from '@repodog/rollup-config';
46
+ import swcConfig from '@repodog/swc-config';
47
+ import swcPlugin from '@rollup/plugin-swc';
48
48
 
49
- module.exports = {
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 cam 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.**
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.8",
5
- "author": "Dylan Aubrey",
4
+ "version": "4.0.10",
5
+ "author": "miami-man",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/badbatch/repodog",
8
8
  "repository": {