Click here to Skip to main content
15,867,750 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Recently, I've been trying to convert all my CommonJS Syntax into ES syntax for my npm package, and in my old code had, I used the require() to combine all the modules in a folder into 1 larger module. ES6 import syntax sadly breaks that code, and I need a new way to do the same thing in ES6 syntax

What I have tried:

I have tried using import-glob but it only works front-end, not back-end
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900