Socket
Socket
Sign inDemoInstall

ember-cli-webpack-imports

Package Overview
Dependencies
482
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-cli-webpack-imports

An addon to add Webpack dependencies to your Ember app.


Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Install size
38.2 MB
Created
Weekly downloads
 

Readme

Source

ember-cli-webpack-imports

An addon to add Webpack dependencies to your Ember app.

Installation

ember install ember-cli-webpack-imports

Usage

Add the npm modules you’d like to import to ember-cli-build.js:

let app = new EmberApp(defaults, {
  'ember-cli-webpack-imports': {
    expose: [
      'graphql-tag',
      'apollo-client',
      'apollo-link-http',
      'apollo-cache-inmemory'
    ]
  }
});

After that, you can import these modules like any other:

import gql from 'graphql-tag';
import {ApolloClient} from 'apollo-client';
import {HttpLink} from 'apollo-link-http';
import {InMemoryCache} from 'apollo-cache-inmemory';

Credits

The great majority of this addon is stolen from the ember-apollo-client addon. I simply felt like this code would benefit from being extracted, all props goes to the original authors!

Keywords

FAQs

Last updated on 22 Dec 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc