npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

babel-plugin-transform-modules-sapui5

1.0.8 • Public • Published

babel-plugin-transform-modules-sapui5

This plugin transforms ES2015 modules to sapui5/openui5

NPM version


Install

Using npm:

npm install --save-dev babel-plugin-transform-modules-sapui5

Where to add babel-plugin-import

Example

export { default as Button } from './Button';
 
      ↓ ↓ ↓ ↓ ↓ ↓
      
sap.ui.define(["./Button"], function (_Button) {
  "use strict";
  var _exports = {};
 
  Object.defineProperty(_exports, "__esModule", {
    value: true
  });
  Object.defineProperty(_exports, "Button", {
    enumerable: true,
    get: function get() {
      return _Button["default"];
    }
  });
  _Button = _interopRequireDefault(_Button);
 
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
 
  return _exports;
});
 

install

npm i babel-plugin-transform-modules-sapui5

Downloadsweekly downloads

0

version

1.0.8

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability