Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-webpack-imports

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 22 Dec 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc