mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
13 lines
291 B
JavaScript
13 lines
291 B
JavaScript
|
const fs = require("fs");
|
||
|
const path = require("path");
|
||
|
const data = require("@babel/compat-data/plugins");
|
||
|
|
||
|
const transform_data_json = path.join(
|
||
|
__dirname,
|
||
|
"..",
|
||
|
"src",
|
||
|
"transform_data.json"
|
||
|
);
|
||
|
|
||
|
fs.writeFileSync(transform_data_json, JSON.stringify(data, null, 4) + "\n");
|