Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from r-murphy/fix/move-module-transform-out-of…
…-program-enter-visitor Move module transform out of program enter visitor and into program exit
- Loading branch information
Showing
22 changed files
with
663 additions
and
568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# babel-plugin-transform-classes-ui5 | ||
|
||
[Docs](../../README.md) | ||
|
||
There is also a preset which should be used rather than using the plugin directly. | ||
|
||
## Install | ||
|
||
```sh | ||
npm install babel-plugin-transform-classes-ui5 --save-dev | ||
``` | ||
|
||
or | ||
|
||
```sh | ||
yarn add babel-plugin-transform-classes-ui5 --dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "babel-plugin-transform-classes-ui5", | ||
"version": "7.0.0-rc.5", | ||
"description": "An unofficial babel plugin for SAP UI5.", | ||
"main": "src/index.js", | ||
"repository": "https://github.com/r-murphy/babel-plugin-ui5/tree/master/packages/plugin-transform-classes", | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"scripts": {}, | ||
"author": "Ryan Murphy", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/r-murphy/babel-plugin-transform-modules-ui5/issues" | ||
}, | ||
"homepage": "https://github.com/r-murphy/babel-plugin-transform-modules-ui5#readme", | ||
"dependencies": {}, | ||
"devDependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
return { | ||
visitor: {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
packages/plugin/__test__/fixtures/preset-env/preset-env-usage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import SAPClass from "sap/SAPClass"; | ||
|
||
/** | ||
* @name my.MyClass | ||
*/ | ||
export default class AClass extends SAPClass { | ||
delay() { | ||
return new Promise(resolve => { | ||
setTimeout(resolve); | ||
}); | ||
} | ||
includes(str) { | ||
return str.includes("thing"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
packages/plugin/src/helpers/classes.js → ...ges/plugin/src/classes/helpers/classes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.