Skip to content

Commit

Permalink
feat(webpack-loader): export LoaderOptions (#32)
Browse files Browse the repository at this point in the history
* feat(webpack-loader): export LoaderOptions

* Create afraid-countries-walk.md
  • Loading branch information
layershifter authored Jan 9, 2024
1 parent 769653f commit b98eae3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-countries-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wyw-in-js/webpack-loader": patch
---

feat: export LoaderOptions
5 changes: 3 additions & 2 deletions packages/webpack-loader/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ export { WYWinJSDebugPlugin } from './WYWinJSDebugPlugin';

const outputCssLoader = require.resolve('./outputCssLoader');

type Loader = RawLoaderDefinitionFunction<{
export type LoaderOptions = {
cacheProvider?: string | ICache;
extension?: string;
preprocessor?: Preprocessor;
sourceMap?: boolean;
}>;
};
type Loader = RawLoaderDefinitionFunction<LoaderOptions>;

const cache = new TransformCacheCollection();

Expand Down

0 comments on commit b98eae3

Please sign in to comment.