Skip to content

Use Modern ECMAScript Module Syntax

John Sterling edited this page Apr 9, 2025 · 3 revisions

Instead of using CommonJS (module.exports), use modern ECMAScript module syntax in your configuration file. Here's how to update your configuration:

❌ Don't use CommonJS syntax:

module.exports = {
  defaultBrowser: "Firefox",
  // ... configuration
};

✅ Do use ECMAScript module syntax:

export default {
  defaultBrowser: "Firefox",
  // ... configuration
};

Finicky v4 supports this syntax for the time being to make upgrading simpler, but support for this configuration will be removed in a future version.

Clone this wiki locally