| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9f0df5f commit 67a218f
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,6 +37,7 @@ | |||
| 37 | 37 | "babel-core": "^6.4.5", | |
| 38 | 38 | "babel-eslint": "^4.1.6", | |
| 39 | 39 | "babel-loader": "^6.2.1", | |
| 40 | + "babel-plugin-add-module-exports": "^0.1.2", | ||
| 40 | 41 | "babel-preset-es2015": "^6.3.13", | |
| 41 | 42 | "commitizen": "^2.5.0", | |
| 42 | 43 | "conventional-changelog-cli": "^1.1.1", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,8 @@ import { name as viewModelName, ViewModel } from './modules/view-model'; | |||
| 23 | 23 | import { name as reactiveName, Reactive } from './modules/reactive'; | |
| 24 | 24 | import { name as templatesName } from './modules/templates'; | |
| 25 | 25 | ||
| 26 | - export const name = 'angular-meteor'; | ||
| 26 | + const name = 'angular-meteor'; | ||
| 27 | + export default name; | ||
| 27 | 28 | ||
| 28 | 29 | angular.module(name, [ | |
| 29 | 30 | // new | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,8 +11,11 @@ var common = { | |||
| 11 | 11 | }, | |
| 12 | 12 | output: { | |
| 13 | 13 | // point to root directory so we can avoid using ../../ | |
| 14 | - path: path.join(__dirname, '../') | ||
| 14 | + path: path.join(__dirname, '../'), | ||
| 15 | + library: 'angularMeteor', | ||
| 16 | + libraryTarget: 'umd' | ||
| 15 | 17 | }, | |
| 18 | + target: 'web', | ||
| 16 | 19 | // global variables | |
| 17 | 20 | externals: { | |
| 18 | 21 | angular: 'angular', | |
@@ -24,7 +27,8 @@ var common = { | |||
| 24 | 27 | }, | |
| 25 | 28 | // global configuration of babel loader | |
| 26 | 29 | babel: { | |
| 27 | - presets: ['es2015'] | ||
| 30 | + presets: ['es2015'], | ||
| 31 | + plugins: ['add-module-exports'] | ||
| 28 | 32 | }, | |
| 29 | 33 | eslint: { | |
| 30 | 34 | quiet: true, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments