GitXplorerGitXplorer
b

babel-plugin-transform-es2015-modules-strip

public
3 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
b90960fb8320eadeff035f81291568314461118e

Release v0.1.2.

bbardiharborow committed 4 years ago
Unverified
0de58bd99e9edbd4c5069f80de251baeabe42219

Update copyright year.

bbardiharborow committed 4 years ago
Unverified
2f75f0fb859703dbba16c2dc17cd94701153a589

Cleanup documentation and add funding.

bbardiharborow committed 4 years ago
Unverified
9d8dff709528fe45efe092ada206dc594fde3240

Install ESLint and cleanup tests.

bbardiharborow committed 4 years ago
Unverified
dd22d16530b82fa76f6536b9058fc90aa2d5d583

Upgrade development dependencies.

bbardiharborow committed 4 years ago
Verified
031a2399e1c4899f851f93c13dfeb82a557119bd

Run package tests with GitHub Actions.

bbardiharborow committed 4 years ago

README

The README file for this repository.

babel-plugin-transform-es2015-modules-strip

This project has a package hosted on the NPM repository. This project is licensed under the terms of the MIT license.

This is a Babel plugin which strips import and export statements from modules.

Example

In

import path from 'path';

console.log(path.sep);

export default 42;

Out

console.log(path.sep);

Installation

npm install --save-dev babel-plugin-transform-es2015-modules-strip

Usage

With a configuration file (Recommended)

{
  "presets": [
    ["@babel/env", {
      "modules": false
    }]
  ],
  "plugins": ["transform-es2015-modules-strip"]
}

Via Node API

require("@babel/core").transformSync("code", {
  presets: [
    ["@babel/env", {
      "modules": false
    }]
  ],
  plugins: ["transform-es2015-modules-strip"]
});

License

This project is licensed under the terms of the MIT license.