{"id":13807031,"url":"https://github.com/sandydoo/ember-cli-es6-transform","last_synced_at":"2025-05-14T00:30:43.014Z","repository":{"id":57223238,"uuid":"115240634","full_name":"sandydoo/ember-cli-es6-transform","owner":"sandydoo","description":"Import ES6 modules from npm, bower or anywhere else in your app.","archived":true,"fork":false,"pushed_at":"2022-04-10T08:26:45.000Z","size":165,"stargazers_count":14,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T08:44:19.853Z","etag":null,"topics":["ember-addon","ember-cli","es6-modules","import","node-module","npm","transform"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sandydoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-24T04:49:21.000Z","updated_at":"2024-04-02T11:35:56.000Z","dependencies_parsed_at":"2022-08-24T16:20:54.694Z","dependency_job_id":null,"html_url":"https://github.com/sandydoo/ember-cli-es6-transform","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandydoo%2Fember-cli-es6-transform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandydoo%2Fember-cli-es6-transform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandydoo%2Fember-cli-es6-transform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandydoo%2Fember-cli-es6-transform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandydoo","download_url":"https://codeload.github.com/sandydoo/ember-cli-es6-transform/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254046198,"owners_count":22005551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ember-addon","ember-cli","es6-modules","import","node-module","npm","transform"],"created_at":"2024-08-04T01:01:19.752Z","updated_at":"2025-05-14T00:30:42.622Z","avatar_url":"https://github.com/sandydoo.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":["Include external JS code"],"readme":"# Try using [ember-auto-import](https://github.com/ef4/ember-auto-import) before this addon.\n\n# ⚙️ ember-cli-es6-transform\n\n[![Build Status](https://travis-ci.org/sandydoo/ember-cli-es6-transform.svg?branch=master)](https://travis-ci.org/sandydoo/ember-cli-es6-transform)\n\n\u003e Import ES6 modules from npm, bower or anywhere else in your Ember app.\n\n##### Table of contents\n\n[Requirements](#requirements)  \n[Why](#why)  \n[Installation](#installation)  \n[Usage](#usage)  \n\n## Requirements\n\n`ember-cli@3.6` and greater.\n\nFor older versions of `ember-cli`, use the `0.0.*` versions of this addon.\n\n## Why\n\nEmber currently lacks official support for importing and transpiling external ES6 modules.\n\n`ember-cli@2.15` introduced the ability to import files from `node_modules`. `ember-cli@2.16` then gave us the ability to register and apply custom `importTransforms` to our imports. Currently, anything imported using `app.import` bypasses the Babel pipeline and is inserted into the final `vendor.js` verbatim. If your desired dependency is a ✨shiny new ES6 module, the import will break your app. This addon leverages both concepts to pass your dependency through `ember-cli-babel`.\n\n## Installation\n\n`ember install ember-cli-es6-transform`\n\n## Usage\n\n#### Importing a single (file) dependency\n\nDefine the transformation when importing the ES6 module in your `ember-cli-build.js`. The syntax is the same as the built-in `amd` transform.\nRemember that `app.import` only works one file at a time!\n\nOptions:\n\n* `as` – (**required**) specify the module name.\n\n```js\n// Importing spin.js as spin.js\n\napp.import('node_modules/spin.js/spin.js', {\n  using: [\n    { transformation: 'es6', as: 'spin.js' }\n  ]\n});\n```\n\nIn your app, you can then import the module using the name you specified in `as`.\n\n```js\nimport { Spinner } from 'spin.js';\n```\n\n## Contributing\n\n### Installation\n\n* `git clone \u003crepository-url\u003e` this repository\n* `cd ember-cli-es6-transform`\n* `yarn install`\n\n### Running Tests\n\n* `yarn test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandydoo%2Fember-cli-es6-transform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandydoo%2Fember-cli-es6-transform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandydoo%2Fember-cli-es6-transform/lists"}