Skip to content

Commit

Permalink
Merge pull request #22 from sebastian-software/export-data
Browse files Browse the repository at this point in the history
feat($export): Exported internal module IDs and chunk names for external usage.
  • Loading branch information
faceyspacey authored Aug 14, 2017
2 parents b4d375a + 857ab4d commit abb14e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"react-test-renderer": "^15.6.1",
"rimraf": "^2.5.4",
"semantic-release": "^6.3.6",
"travis-github-status": "^1.4.0"
"travis-github-status": "^1.6.3"
},
"peerDependencies": {
"react": "*"
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import type {

import { DefaultLoading, DefaultError, isServer, createElement } from './utils'

export { CHUNK_NAMES, MODULE_IDS } from './requireUniversalModule'

let hasBabelPlugin = false

// $FlowIgnore
Expand Down
4 changes: 2 additions & 2 deletions src/requireUniversalModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export const isServer = typeof window === 'undefined' || IS_TEST
declare var __webpack_require__: Function
declare var __webpack_modules__: Object

const CHUNK_NAMES = new Set()
const MODULE_IDS = new Set()
export const CHUNK_NAMES = new Set()
export const MODULE_IDS = new Set()

export default function requireUniversalModule<Props: Props>(
universalConfig: Config | ConfigFunc,
Expand Down

0 comments on commit abb14e5

Please sign in to comment.