@repodog/rollup-config 4.0.17 → 4.0.18

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 (2) hide show
  1. package/index.mjs +3 -5
  2. package/package.json +2 -2
package/index.mjs CHANGED
@@ -13,7 +13,7 @@ import macros from 'unplugin-macros/rollup';
13
13
  const { MODULE_SYSTEM = 'esm', NODE_ENV } = process.env;
14
14
  const isProdEnv = NODE_ENV === 'production';
15
15
  const packageDir = process.cwd();
16
- const external = id => !id.startsWith('.') && !id.startsWith('#') && !isAbsolute(id);
16
+ const isExternal = id => !id.startsWith('.') && !id.startsWith('#') && !isAbsolute(id);
17
17
  const outputExtension = MODULE_SYSTEM === 'esm' ? 'mjs' : 'cjs';
18
18
 
19
19
  const config = (options = {}) => {
@@ -53,14 +53,12 @@ const config = (options = {}) => {
53
53
  },
54
54
  }),
55
55
  );
56
- }
57
-
58
- if (!isProdEnv) {
56
+ } else {
59
57
  plugins.push(sourcemaps());
60
58
  }
61
59
 
62
60
  return {
63
- external,
61
+ external: isExternal,
64
62
  input: resolve(packageDir, 'src', 'index'),
65
63
  onwarn: ({ code, message }) => {
66
64
  if (code !== 'THIS_IS_UNDEFINED') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@repodog/rollup-config",
3
3
  "description": "The Repodog Rollup config module.",
4
- "version": "4.0.17",
4
+ "version": "4.0.18",
5
5
  "author": "miami-man",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/badbatch/repodog",
@@ -31,6 +31,6 @@
31
31
  "rollup": "<5"
32
32
  },
33
33
  "devDependencies": {
34
- "rollup": "^4.62.2"
34
+ "rollup": "^4.62.3"
35
35
  }
36
36
  }