Skip to content

index.js made Webpack include Angular twice #80

Open
@madflow

Description

@madflow

This is a quick hint for anyone having the same problem and using Webpack. Due to angular-hammer we had Angular duplicated in chunks.

The code in index.js made Webpack include Angular twice.

var angular = require('angular');
Hammer = require('hammerjs');
require('./angular.hammer');

A fix is described here:

webpack/webpack#2134

Or import it differently I guess:

import hammerAngular from 'angular-hammer/angular-hammer';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions