Skip to content

Commit cbbd70e

Browse files
authored
feat: Upgrade to c12@2 so config is loaded as ESM (#1182)
1 parent 74bdc1a commit cbbd70e

File tree

4 files changed

+34
-9
lines changed

4 files changed

+34
-9
lines changed

packages/wxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"@webext-core/isolated-element": "^1.1.2",
8484
"@webext-core/match-patterns": "^1.0.3",
8585
"async-mutex": "^0.5.0",
86-
"c12": "^1.11.2",
86+
"c12": "^2.0.1",
8787
"cac": "^6.7.14",
8888
"chokidar": "^3.6.0",
8989
"ci-info": "^4.0.0",

packages/wxt/src/cli/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import cli from './commands';
22
import { version } from '../version';
33
import { isAliasedCommand } from './cli-utils';
44

5-
// TODO: Remove. See https://github.com/wxt-dev/wxt/issues/277
6-
process.env.VITE_CJS_IGNORE_WARNING = 'true';
7-
85
// Grab the command that we're trying to run
96
cli.parse(process.argv, { run: false });
107

packages/wxt/src/core/resolve-config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ export async function resolveConfig(
4949
name: 'wxt',
5050
cwd: inlineConfig.root ?? process.cwd(),
5151
rcFile: false,
52-
jitiOptions: {
53-
esmResolve: true,
54-
},
5552
});
5653
userConfig = loadedConfig ?? {};
5754
userConfigMetadata = metadata;

pnpm-lock.yaml

Lines changed: 33 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)