Skip to content

Commit aedfa47

Browse files
committed
chore: upgrade deps
closes Redocly#1316
1 parent 1976dd4 commit aedfa47

File tree

6 files changed

+8804
-7455
lines changed

6 files changed

+8804
-7455
lines changed

demo/webpack.config.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
import * as CopyWebpackPlugin from 'copy-webpack-plugin';
2-
import * as ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
2+
import ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
33
import * as HtmlWebpackPlugin from 'html-webpack-plugin';
44
import { compact } from 'lodash';
55
import { resolve } from 'path';
66
import * as webpack from 'webpack';
77

88
const VERSION = JSON.stringify(require('../package.json').version);
99
const REVISION = JSON.stringify(
10-
require('child_process')
11-
.execSync('git rev-parse --short HEAD')
12-
.toString()
13-
.trim(),
10+
require('child_process').execSync('git rev-parse --short HEAD').toString().trim(),
1411
);
1512

1613
function root(filename) {
1714
return resolve(__dirname + '/' + filename);
1815
}
1916

20-
const tsLoader = env => ({
17+
const tsLoader = (env) => ({
2118
loader: 'ts-loader',
2219
options: {
2320
compilerOptions: {
@@ -27,7 +24,7 @@ const tsLoader = env => ({
2724
},
2825
});
2926

30-
const babelLoader = mode => ({
27+
const babelLoader = (mode) => ({
3128
loader: 'babel-loader',
3229
options: {
3330
generatorOpts: {
@@ -161,7 +158,9 @@ export default (env: { playground?: boolean; bench?: boolean } = {}, { mode }) =
161158
ignore(/js-yaml\/dumper\.js$/),
162159
ignore(/json-schema-ref-parser\/lib\/dereference\.js/),
163160
ignore(/^\.\/SearchWorker\.worker$/),
164-
new CopyWebpackPlugin(['demo/openapi.yaml']),
161+
new CopyWebpackPlugin({
162+
patterns: ['demo/openapi.yaml'],
163+
}),
165164
],
166165
});
167166

0 commit comments

Comments
 (0)