Skip to content

Commit

Permalink
Revert yaml module to v1.8.3
Browse files Browse the repository at this point in the history
CommonJS build of yaml v1.9.0 throws error `Duplicate export 'YAML'`
while building via rollup.

yaml v1.9.0 has supported ES modules through "exports" field.
(eemeli/yaml#145) However, rollup bundler cannot
recognize it in any plugins.
(rollup/plugins#208)
  • Loading branch information
yhatt committed Apr 18, 2020
1 parent e12e279 commit a9e513d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
"typescript": "^3.8.3",
"unified": "^9.0.0",
"unist-util-visit": "^2.0.2",
"yaml": "^1.9.0"
"yaml": "~1.8.3"
},
"dependencies": {
"@marp-team/marp-cli": "^0.17.4",
Expand Down
11 changes: 9 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"

"@babel/runtime@^7.9.0":
"@babel/runtime@^7.8.7", "@babel/runtime@^7.9.0":
version "7.9.2"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.2.tgz#d90df0583a3a252f09aaa619665367bae518db06"
integrity sha512-NE2DtOdufG7R5vnfQUTehdTfNycfUANEtCa9PssN9O/xmTzP4E08UI797ixaei6hBEVL9BI/PsdJS5x7mWoB9Q==
Expand Down Expand Up @@ -6676,13 +6676,20 @@ y18n@^4.0.0:
resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b"
integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==

yaml@^1.7.2, yaml@^1.9.0:
yaml@^1.7.2:
version "1.9.0"
resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.9.0.tgz#dc1ff3e24837b62bc3c8ae02c28e16ee5742b9d6"
integrity sha512-3GLZOj8A9Gsp0Fw3kOyj0zqk4xMq+YvhbHSDYALd2NMOfIpyZeBhz32ZiNU7AtX1MtXX/9JJgxSElGRwvv9enA==
dependencies:
"@babel/runtime" "^7.9.0"

yaml@~1.8.3:
version "1.8.3"
resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.8.3.tgz#2f420fca58b68ce3a332d0ca64be1d191dd3f87a"
integrity sha512-X/v7VDnK+sxbQ2Imq4Jt2PRUsRsP7UcpSl3Llg6+NRRqWLIvxkMFYtH1FmvwNGYRKKPa+EPA4qDBlI9WVG1UKw==
dependencies:
"@babel/runtime" "^7.8.7"

yargs-parser@18.x, yargs-parser@^18.1.1:
version "18.1.3"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0"
Expand Down

0 comments on commit a9e513d

Please sign in to comment.