mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +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");
|