swc/crates/swc_ecma_preset_env/scripts/transform-data-gen.js

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");