@babel/plugin-syntax-import-meta
Installation
npm install --save-dev @babel/plugin-syntax-import-meta
Usage
With a configuration file (Recommended)
{
"plugins": ["@babel/plugin-syntax-import-meta"]
}
Via CLI
babel --plugins @babel/plugin-syntax-import-meta script.js
Via Node API
require("@babel/core").transformSync("code", {
plugins: ["@babel/plugin-syntax-import-meta"]
});