Skip to content

Commit f3d32b5

Browse files
authored
Export regression fix (#18)
* Fix export regression introduced by removing add-module-exports * Prepare 2.0.1 release
1 parent 05d928a commit f3d32b5

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed

.babelrc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"presets": [
3-
[
4-
"@babel/preset-env",
5-
{
6-
"targets": {
7-
"node": "6"
8-
}
3+
["@babel/preset-env", {
4+
"targets": {
5+
"node": "6"
96
}
10-
]
7+
}]
8+
],
9+
"plugins": [
10+
["add-module-exports", {
11+
"addDefaultProperty": true
12+
}]
1113
]
1214
}

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased][unreleased]
66

7+
## [2.0.1] – 2018-12-09
8+
### Fixed
9+
* Regression that exported the module’s main function only under the `default` key, not also as default export ([#17](https://github.com/jGleitz/markdown-it-prism/issues/17))
10+
711
## [2.0.0] – 2018-12-02
812
### Deprecated
913
* Deprecate Node.JS 4 and require Node.JS >= 6
@@ -31,7 +35,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
3135
## 1.0.0 – 2016-10-16
3236
* Initial release.
3337

34-
[unreleased]: https://github.com/jGleitz/markdown-it-prism/compare/v2.0.0...HEAD
38+
[unreleased]: https://github.com/jGleitz/markdown-it-prism/compare/v2.0.1...HEAD
39+
[2.0.1]: https://github.com/jGleitz/markdown-it-prism/compare/v2.0.0...v2.0.1
3540
[2.0.0]: https://github.com/jGleitz/markdown-it-prism/compare/v1.1.2...v2.0.0
3641
[1.1.2]: https://github.com/jGleitz/markdown-it-prism/compare/v1.1.1...v1.1.2
3742
[1.1.1]: https://github.com/jGleitz/markdown-it-prism/compare/v1.1.0...v1.1.1

package-lock.json

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markdown-it-prism",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Highlights code blocks in markdown-it using Prism.",
55
"keywords": [
66
"markdown-it",
@@ -44,6 +44,7 @@
4444
"@babel/core": "^7.1.6",
4545
"@babel/preset-env": "^7.1.6",
4646
"@babel/register": "^7.0.0",
47+
"babel-plugin-add-module-exports": "^1.0.0",
4748
"chai": "^4.2.0",
4849
"chai-string": "^1.5.0",
4950
"eslint": "^5.9.0",

0 commit comments

Comments
 (0)