ember-cli-es6-transform | Import ES6 modules from npm , bower | Script Programming library
kandi X-RAY | ember-cli-es6-transform Summary
kandi X-RAY | ember-cli-es6-transform Summary
Import ES6 modules from npm, bower or anywhere else in your app.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get the module id for a moduleName
ember-cli-es6-transform Key Features
ember-cli-es6-transform Examples and Code Snippets
Community Discussions
Trending Discussions on ember-cli-es6-transform
QUESTION
I have this new Ember project and I installed the google node sdk via npm install googleapis --save-dev
. I then installed ember-cli-es6-transform
in hopes of importing the es6 modules from the google api node client.
However I noticed in ./node_modules/googleapis
there is a build/src
folder instead of a src
folder. In the Github repo, it's just a src
folder. Why is this? This is causing my imports to be wonky while using ember-cli-es6-transform
.
This is all that is in my devDependencies:
...ANSWER
Answered 2019-Jul-10 at 14:19npm does not require that a repository place its main file in any particular place or name it index.js. It is recommended that you look at a repo's package.json and use the path and file listed under the "main" key.
You can see it at https://github.com/googleapis/google-api-nodejs-client/blob/cb9326b902d6c203c498a2e269f256bcc3b23c2d/package.json#L42
googleapis chooses to build its source prior to putting it on npm to make it easier for us to use, hence the build/src directory.
For more information regarding the "main" key in package.json, see https://docs.npmjs.com/files/package.json#main
Note that ember-cli-es6-transform allows you to specify any path, so just put the correct path in as an argument.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ember-cli-es6-transform
cd ember-cli-es6-transform
yarn install
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page