When you have 'type: module' in the package.json file, your source code should use import
syntax. When you do not have, you should use require
syntax.
Adding 'type': 'module'
to the package.json
enables ES 6 modules. For more info, see here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…