We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
format
1 parent 0307e4d commit 299d6faCopy full SHA for 299d6fa
1 file changed
lib/internal/modules/cjs/loader.js
@@ -1499,9 +1499,8 @@ function wrapSafe(filename, content, cjsModuleInstance, format) {
1499
* `exports`) to the file. Returns exception, if any.
1500
* @param {string} content The source code of the module
1501
* @param {string} filename The file path of the module
1502
- * @param {
1503
- * 'module'|'commonjs'|'commonjs-typescript'|'module-typescript'
1504
- * } format Intended format of the module.
+ * @param {'module'|'commonjs'|'commonjs-typescript'|'module-typescript'|'typescript'} format
+ * Intended format of the module.
1505
*/
1506
Module.prototype._compile = function(content, filename, format) {
1507
if (format === 'commonjs-typescript' || format === 'module-typescript' || format === 'typescript') {
0 commit comments