#Issues trying to build ES modules instead of CommonJS modules

1 messages · Page 1 of 1 (latest)

odd vine
#

I am using the following compiler options:```json
{
"compilerOptions": {
/* Language and Environment */
"target": "ESNext",
"lib": ["ESNext", "DOM"],

    /* Modules */
    "module": "commonjs",
    "moduleResolution": "node",

    /* Emit */
    "outDir": "./dist",

    /* Interop Constraints */
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,

    /* Type Checking */
    "strict": true,

    /* Completeness */
    "skipLibCheck": true
}

}

#

I have also set "type": "module", inside of my package.json

pseudo rover
#

Electron do not support es modules