Skip to content

fix(umd): #340 pass in root instead of deps - #377

Closed
Nate-Wilkins wants to merge 1 commit into
esvit:masterfrom
Nate-Wilkins:patch-1
Closed

fix(umd): #340 pass in root instead of deps#377
Nate-Wilkins wants to merge 1 commit into
esvit:masterfrom
Nate-Wilkins:patch-1

Conversation

@Nate-Wilkins

Copy link
Copy Markdown

Follow outlined UMD (Universal Module Definition)
- https://github.com/umdjs/umd/blob/master/amdWeb.js

Related Issues:
- #340
- #284
- #307
@wonsikin

wonsikin commented Oct 5, 2014

Copy link
Copy Markdown

in your require config ,just export angular like this

shim: {
        'angular':{
            exports: 'angular'
        },
    }

@Nate-Wilkins

Copy link
Copy Markdown
Author

@wonsikin I have no clue how to fix this. My pr doesn't really solve this at all.

I'd personally rather not have ng-table require angular in it's dependencies list. Mostly because I'd like to setup my own paths/shim without requiring angular to be set to the module id angular ex. lib/angular

@e-cloud

e-cloud commented Mar 25, 2015

Copy link
Copy Markdown

@esvit, i think this PR is worth merging.

@mrniko

mrniko commented Sep 16, 2015

Copy link
Copy Markdown

+1

@christianacca

Copy link
Copy Markdown
Collaborator

As of version 2.0.0 angular is now a peer dependency. Also the library is packaged with webpack which means full support for the UMD format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants