Skip to content

Commit 8aba04b

Browse files
committed
refactor: webpack types
Signed-off-by: Adam Setch <[email protected]>
1 parent b9ce1b6 commit 8aba04b

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

webpack.common.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
// @ts-check
2-
31
const path = require('node:path');
42
const webpack = require('webpack');
53

64
/**
7-
* @typedef {import('webpack').Configuration} WebpackConfig
8-
*/
9-
10-
/**
11-
* @type {WebpackConfig}
5+
* @type {webpack.Configuration}
126
*/
137
const config = {
148
mode: 'development',

webpack.prod.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
// @ts-check
2-
31
const { merge } = require('webpack-merge');
42
const common = require('./webpack.common.js');
3+
const webpack = require('webpack');
54

65
/**
7-
* @typedef {import('webpack').Configuration} WebpackConfig
8-
*/
9-
10-
/**
11-
* @type {WebpackConfig}
6+
* @type {webpack.Configuration}
127
*/
138
const config = merge(common, {
149
mode: 'production',

0 commit comments

Comments
 (0)