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
};
Clone this wiki locally