ReadFileSync reading JS file is different. Want To Read Read RAW

I want to read my JS files to manage them and back them up.
I use ReadFile Sync successfully (thanks J.D.) but the file is not the same as the edited version.
What is happening? I want to read them the same as I entered them.
Reading Truy RAW. It still makes sense, but I want the same data.
Is there a directive I can put somewhere or an option?

Source:
import { libtest_js_test } from ‘public/libtest_js.js’ ;
import { rx_js_rx } from ‘public/rx_js.js’ ;
import { stock_js_txstock } from ‘public/stock_js.js’ ;
import { tracking_js_txtracking } from ‘public/tracking_js.js’ ;

Becomes:
“use strict”;

Object.defineProperty(exports, “__esModule”, {
value: true
});
exports.post_dir = post_dir;
exports.post_rx = post_rx;
exports.post_rxordi = post_rxordi;
exports.post_rxordi2 = post_rxordi2;
exports.post_stock = post_stock;
exports.post_test = post_test;
exports.post_txtracking = post_txtracking;
//i
I really need this. It sometimes works but not always.

Lawrence

It seems as if it is reading a compiled version of the JS file.
Do I need to specify any FS options to get the text version.
Why does it sometimes do it? Can I put a directive in the file itself, like “use strict” etc…

(I tried copyFileSync to make another file in the backend or public folder with a not JS extension before doing the file read, but I got EACCESS. not good)

No hacking here, but U want to externally manage the JS files.

Thanks

Lawrence