Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(runtime): consolidate all runtime in a single module
- Loading branch information
1 parent
bfc827e
commit 36a8922
Showing
4 changed files
with
46 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
/** | ||
* @copyright 2016-present, Reactdown team | ||
*/ | ||
|
||
// All modules used by compiled markdown files. | ||
// | ||
// When using webpack, you will probably want to import 'reactdown/runtime' in a | ||
// vendor bundle to cut down on per-file weight. | ||
module.exports.components = require('./components'); | ||
module.exports.DocumentContext = require('./DocumentContext').default; | ||
module.exports = require('./lib/runtime'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* @copyright 2016-present, Reactdown team | ||
*/ | ||
|
||
export ref from './ref'; | ||
export meta from './meta'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* Reactdown runtime. | ||
* | ||
* Runtime contains all modules which are by default imported by compiled | ||
* Reactdown documents. This allows easier configuration when you need bundle | ||
* them separately. | ||
* | ||
* @copyright 2016-present, Reactdown team | ||
*/ | ||
|
||
export * as components from './components'; | ||
export * as directives from './directives'; | ||
export DocumentContext from './DocumentContext'; |