Skip to content

Commit

Permalink
refactor: webpack types
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Sep 28, 2024
1 parent b9ce1b6 commit 8aba04b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
8 changes: 1 addition & 7 deletions webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
// @ts-check

const path = require('node:path');
const webpack = require('webpack');

/**
* @typedef {import('webpack').Configuration} WebpackConfig
*/

/**
* @type {WebpackConfig}
* @type {webpack.Configuration}
*/
const config = {
mode: 'development',
Expand Down
9 changes: 2 additions & 7 deletions webpack.prod.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
// @ts-check

const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const webpack = require('webpack');

/**
* @typedef {import('webpack').Configuration} WebpackConfig
*/

/**
* @type {WebpackConfig}
* @type {webpack.Configuration}
*/
const config = merge(common, {
mode: 'production',
Expand Down

0 comments on commit 8aba04b

Please sign in to comment.