babel-plugin-meteoralias

1.0.9 • Public • Published

babel-plugin-meteoralias

A Babel 7 plugin to transform aliases which works with Meteor.

Installation

npm i --D babel-plugin-meteoralias

Usage

{
  "plugins": [
    ["babel-plugin-meteoralias", {
        "aliases": [
            {
                "from": "react",
                "to": "preact-compat"
            },
            {
                "from": "react-dom",
                "to": "preact-compat"
            }
        ]
    }]
  ]
}
 

This will transform all import statements that import alias to path.

Example

import React from 'react';
import { render } from 'react-dom';

This will transform into

import React from 'preact-compat';
import { render } from 'preact-compat';

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.90latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50

Package Sidebar

Install

npm i babel-plugin-meteoralias

Weekly Downloads

0

Version

1.0.9

License

ISC

Unpacked Size

33.9 kB

Total Files

15

Last publish

Collaborators

  • dhamaniasad