Module -module
Sets the module system for the program. See the Modules reference page for more information. You very likely want "CommonJS"
for node projects.
Changing module
affects moduleResolution
which also has a reference page.
Here’s some example output for this file:
这里是Ts版本的示例
// @filename: index.ts
import { valueOfPi } from "./constants";
export const twoPi = valueOfPi * 2;
这里是commonjs的示例 CommonJS
"use strict";
Object.defineProperty(exports, "__esModul