Skip to content

Commit 420d930

Browse files
committed
Copyedit documentation
1 parent 770419d commit 420d930

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Bardi Harborow
3+
Copyright (c) 2016-2025 Bardi Harborow
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44
![](https://img.shields.io/npm/dw/babel-plugin-transform-es2015-modules-strip)
55
[![This project is licensed under the terms of the MIT license.](https://img.shields.io/npm/l/babel-plugin-transform-es2015-modules-strip)](https://github.com/bardiharborow/babel-plugin-transform-es2015-modules-strip/blob/master/LICENSE)
66

7-
This is a Babel plugin which strips import and export statements from modules.
7+
A Babel plugin that strips `import` and `export` statements from modules.
8+
9+
## Installation
10+
11+
```sh
12+
npm install --save-dev babel-plugin-transform-es2015-modules-strip
13+
```
814

915
## Example
1016

11-
**In**
17+
The plugin takes this code:
1218

1319
```javascript
1420
import path from 'path';
@@ -18,21 +24,15 @@ console.log(path.sep);
1824
export default 42;
1925
```
2026

21-
**Out**
27+
And returns this code:
2228

2329
```javascript
2430
console.log(path.sep);
2531
```
2632

27-
## Installation
28-
29-
```sh
30-
npm install --save-dev babel-plugin-transform-es2015-modules-strip
31-
```
32-
3333
## Usage
3434

35-
### With a configuration file (Recommended)
35+
### In the `babel.config.json` configuration file
3636

3737
```json
3838
{
@@ -45,7 +45,7 @@ npm install --save-dev babel-plugin-transform-es2015-modules-strip
4545
}
4646
```
4747

48-
### Via Node API
48+
### With the Node API
4949

5050
```javascript
5151
require("@babel/core").transformSync("code", {
@@ -58,6 +58,12 @@ require("@babel/core").transformSync("code", {
5858
});
5959
```
6060

61+
## History
62+
63+
This plugin was used by [Bootstrap](https://github.com/twbs/bootstrap) between
64+
v4.0.0-beta ([twbs/bootstrap#22045](https://github.com/twbs/bootstrap/pull/22045))
65+
and v4.1.2 ([twbs/bootstrap#26767](https://github.com/twbs/bootstrap/pull/26767)).
66+
6167
## License
6268

6369
This project is licensed under the terms of [the MIT license](LICENSE).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "babel-plugin-transform-es2015-modules-strip",
33
"version": "0.1.2",
4-
"description": "A Babel plugin which strips import and export statements from modules.",
4+
"description": "A Babel plugin that strips import and export statements from modules.",
55
"keywords": [
66
"babel-plugin"
77
],

0 commit comments

Comments
 (0)