Skip to content

Commit

Permalink
feat: Upgrade to c12@2 so config is loaded as ESM (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 authored Nov 16, 2024
1 parent 74bdc1a commit cbbd70e
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/wxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@webext-core/isolated-element": "^1.1.2",
"@webext-core/match-patterns": "^1.0.3",
"async-mutex": "^0.5.0",
"c12": "^1.11.2",
"c12": "^2.0.1",
"cac": "^6.7.14",
"chokidar": "^3.6.0",
"ci-info": "^4.0.0",
Expand Down
3 changes: 0 additions & 3 deletions packages/wxt/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import cli from './commands';
import { version } from '../version';
import { isAliasedCommand } from './cli-utils';

// TODO: Remove. See https://github.com/wxt-dev/wxt/issues/277
process.env.VITE_CJS_IGNORE_WARNING = 'true';

// Grab the command that we're trying to run
cli.parse(process.argv, { run: false });

Expand Down
3 changes: 0 additions & 3 deletions packages/wxt/src/core/resolve-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ export async function resolveConfig(
name: 'wxt',
cwd: inlineConfig.root ?? process.cwd(),
rcFile: false,
jitiOptions: {
esmResolve: true,
},
});
userConfig = loadedConfig ?? {};
userConfigMetadata = metadata;
Expand Down
35 changes: 33 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cbbd70e

Please sign in to comment.