Skip to content

Commit

Permalink
Add dummy generic type so optimizer works with parcel v2.8.0+
Browse files Browse the repository at this point in the history
Parcel v2.8.0 adds a BundleConfigType generic type to Optimizer
(parcel-bundler/parcel#8370) as part of
their `loadBundleConfig` method. We use a dummy type because we
don't need this functionality currently.
  • Loading branch information
dddlr committed Feb 7, 2023
1 parent f3fc440 commit 67a4166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/parcel-optimizer/src/index.ts
Expand Up @@ -16,7 +16,7 @@ const configFiles = [
'compiledcss.config.js',
];

export default new Optimizer<ParcelOptimizerOpts>({
export default new Optimizer<ParcelOptimizerOpts, unknown>({
async loadConfig({ config, options }) {
const conf = await config.getConfigFrom(join(options.projectRoot, 'index'), configFiles, {
packageKey: '@compiled/parcel-optimizer',
Expand Down

0 comments on commit 67a4166

Please sign in to comment.