From a9e513d1d0a6cb54d8f01ccd3d8d04c36d8022c6 Mon Sep 17 00:00:00 2001 From: Yuki Hattori Date: Sat, 18 Apr 2020 12:53:39 +0900 Subject: [PATCH] Revert yaml module to v1.8.3 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. (https://github.com/eemeli/yaml/pull/145) However, rollup bundler cannot recognize it in any plugins. (https://github.com/rollup/plugins/issues/208) --- package.json | 2 +- yarn.lock | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 11c0e95..48f0cf6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index d650b56..4593960 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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== @@ -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"