Sunday, 3 November 2019

Use both commonJS and ES modules in a node file .

Does anyone know how can I do that ?For example I want node to run the following file :const _ = require("lodash"); import library from "../myLibrary/myLibrary.js";

Submitted November 03, 2019 at 11:22AM by liaguris

No comments:

Post a Comment