Closed The-Code-Monkey closed 2 years ago
I am using type module in my package json for my code which breaks the require function that pulls in the config file
Should pull in .cjs config file
Just needs to be able to support .cjs file import as an option instead of just .js and .ts
System: OS: macOS 12.5 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 164.73 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.14.0 - /usr/local/bin/node Yarn: 1.22.15 - /usr/local/bin/yarn npm: 8.3.1 - /usr/local/bin/npm Browsers: Chrome: 104.0.5112.79 Safari: 15.6
Current Behavior
I am using type module in my package json for my code which breaks the require function that pulls in the config file
Expected behavior
Should pull in .cjs config file
Suggested solution(s)
Just needs to be able to support .cjs file import as an option instead of just .js and .ts
Your environment