Feature: provide Options Type as export to webpack plugin #28
Labels
bundler: webpack 📦
Issue is related to webpack bundler
enhancement: proposal 💬
Improvement of current behaviour that needs to be discussed
feature: proposal 💬
New feature proposal that needs to be discussed
Describe the enhancement
Easy way to know and use the type of the webpack plugin.
Motivation
used to be able to do
import { PluginOptions } from '@wyw-in-js/babel-preset';
to get the webpack options, but now that's not even possible.mini-css-extract-plugin does the following
import { PluginOptions } from 'mini-css-extract-plugin';
sass-loader does
import type { Options } from 'sass-loader';
I use these to construct options for my webpack config that pre-includes the best plugins in the ecosystem (including linaria/www-in-js) (see https://github.com/ntucker/anansi/blob/master/packages/webpack-config-anansi/index.d.ts)
Possible implementations
import { PluginOptions } from '@wyw-in-js/webpack';
The text was updated successfully, but these errors were encountered: