Détail du package

babel-plugin-transform-import-meta-x

justin-schroeder1.7kBSD0.0.3

Transforms import.meta[x] subproperties

babel-plugin, import-meta

readme

babel-plugin-transform-import-meta-x

This is a Babel plugin that transforms import.meta subproperty access to any other literal value.

This module is derived from the babel-plugin-transform-import-meta project.

Usage:

{
  "plugins": [
    "babel-plugin-transform-import-meta-x",
    { replacements: { foobar: '{}' } }
  ]
}

Run on the following code it will produce the following output:

// src.js
console.log(import.meta.foobar);
// output:
console.log({});

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.0.3 (2024-05-06)

Features

  • add support for Nuxt 3 import.meta properties (351c816)

0.0.2 (2024-03-29)