Skip to content

Commit 3c5f946

Browse files
Bump @trigen/scripts from 2.7.0 to 6.0.0 (#157)
* Bump @trigen/scripts from 2.7.0 to 6.0.0 Bumps [@trigen/scripts](https://github.com/TrigenSoftware/scripts) from 2.7.0 to 6.0.0. - [Release notes](https://github.com/TrigenSoftware/scripts/releases) - [Changelog](https://github.com/TrigenSoftware/scripts/blob/master/CHANGELOG.md) - [Commits](TrigenSoftware/scripts@v2.7.0...v6.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * upgrade Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: dangreen <danon0404@gmail.com>
1 parent d6d0c16 commit 3c5f946

File tree

6 files changed

+3926
-3624
lines changed

6 files changed

+3926
-3624
lines changed

.babelrc

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
{
22
"exclude": "node_modules/**",
33
"presets": [
4-
"babel-preset-trigen"
4+
["babel-preset-trigen", {
5+
"env": "lib"
6+
}]
57
],
68
"env": {
79
"test": {
810
"presets": [
9-
[
10-
"babel-preset-trigen",
11-
{
12-
"targets": {
13-
"node": "current"
14-
},
15-
"commonjs": true
16-
}
17-
]
11+
["babel-preset-trigen", {
12+
"env": "jest"
13+
}]
1814
]
1915
}
2016
}

.size-limit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"path": "lib/index.js",
4-
"limit": "9 KB",
4+
"limit": "9.1 KB",
55
"webpack": false
66
}
77
]

package.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"main": "lib/index.js",
1515
"engines": {
16-
"node": ">=8.0.0"
16+
"node": ">=10.0.0"
1717
},
1818
"scripts": {
1919
"lint": "trigen-scripts lint",
@@ -37,25 +37,24 @@
3737
"webpack": "^4.0.0"
3838
},
3939
"dependencies": {
40-
"@babel/runtime": "^7.5.5",
41-
"@flexis/srcset": "^1.4.2",
42-
"core-js": "3",
40+
"@babel/runtime-corejs3": "^7.9.6",
41+
"@flexis/srcset": "^2.0.0",
4342
"loader-utils": "^1.2.3",
4443
"vinyl": "^2.2.0"
4544
},
4645
"devDependencies": {
47-
"@size-limit/preset-small-lib": "^2.1.1",
48-
"@trigen/scripts": "2.7.0",
49-
"@trigen/scripts-plugin-babel": "2.7.0",
50-
"@trigen/scripts-plugin-eslint": "2.7.0",
51-
"@trigen/scripts-plugin-jest": "2.7.0",
52-
"@trigen/scripts-plugin-rollup": "2.7.0",
46+
"@size-limit/preset-small-lib": "^4.5.0",
47+
"@trigen/scripts": "6.0.0",
48+
"@trigen/scripts-plugin-babel": "6.1.1",
49+
"@trigen/scripts-plugin-eslint": "6.0.0",
50+
"@trigen/scripts-plugin-jest": "6.1.1",
51+
"@trigen/scripts-plugin-rollup": "6.0.0",
5352
"@trigen/scripts-plugin-size-limit": "6.0.0",
54-
"@trigen/scripts-preset-lib": "2.7.2",
53+
"@trigen/scripts-preset-lib": "6.0.0",
5554
"css-loader": "^3.2.0",
56-
"eslint-plugin-jest": "^22.15.2",
55+
"eslint-plugin-jest": "^23.13.1",
5756
"memory-fs": "^0.4.1",
58-
"rollup-plugin-eslint": "^6.0.0",
57+
"rollup-plugin-eslint": "^7.0.0",
5958
"style-loader": "^1.0.0",
6059
"webpack": "^4.39.2"
6160
},

rollup.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {
22
external
33
} from '@trigen/scripts-plugin-rollup/helpers';
44
import { eslint } from 'rollup-plugin-eslint';
5-
import commonjs from 'rollup-plugin-commonjs';
6-
import babel from 'rollup-plugin-babel';
5+
import commonjs from '@rollup/plugin-commonjs';
6+
import babel from '@rollup/plugin-babel';
77
import pkg from './package.json';
88

99
const plugins = [
@@ -13,7 +13,8 @@ const plugins = [
1313
}),
1414
commonjs(),
1515
babel({
16-
runtimeHelpers: true
16+
babelHelpers: 'runtime',
17+
skipPreflightCheck: true
1718
})
1819
];
1920

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default async function loader(imageBuffer) {
4747

4848
await attachMetadata(imageSource);
4949

50-
const exports = {
50+
const moduleExports = {
5151
format: imageSource.extname.replace('.', ''),
5252
width: imageSource.metadata.width,
5353
default: false,
@@ -95,9 +95,9 @@ export default async function loader(imageBuffer) {
9595
);
9696

9797
callback(null, createModuleString(
98-
exports.format,
99-
exports.width,
100-
exports.default,
98+
moduleExports.format,
99+
moduleExports.width,
100+
moduleExports.default,
101101
srcset
102102
));
103103
return;

0 commit comments

Comments
 (0)