Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion site/source/docs/tools_reference/settings_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,9 @@ EXPORT_ES6
==========

Export using an ES6 Module export rather than a UMD export. MODULARIZE must
be enabled for ES6 exports.
be enabled for ES6 exports and is implicitly enabled if not already set.

This is implicitly enabled if the output suffix is set to 'mjs'.

.. _use_es6_import_meta:

Expand Down
5 changes: 4 additions & 1 deletion src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,10 @@ var DETERMINISTIC = false;
var MODULARIZE = false;

// Export using an ES6 Module export rather than a UMD export. MODULARIZE must
// be enabled for ES6 exports.
// be enabled for ES6 exports and is implicitly enabled if not already set.
//
// This is implicitly enabled if the output suffix is set to 'mjs'.
//
// [link]
var EXPORT_ES6 = false;

Expand Down