From e192d312ccb7507a7565952ecd78749f41a1aea5 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 2 Jun 2021 02:49:56 -0500 Subject: [PATCH] fix: add more module aliases to use esm - externalize highlight.js --- package.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5264a85d6..97b2f47a6 100644 --- a/package.json +++ b/package.json @@ -157,12 +157,21 @@ "react-refresh": false, "mobx-react": false, "@nteract/plotly": false, - "refractor": false + "refractor": false, + "highlight.js": false }, "isLibrary": true } }, "alias": { - "moment": "moment/src/moment.js" + "async": "async/index.js", + "moment": "moment/src/moment.js", + "mobx": "mobx/lib/mobx.module.js", + "immutable": "immutable/dist/immutable.es.js", + "@emotion/stylis": "@emotion/stylis/dist/stylis.esm.js", + "re-resizable": "re-resizable/lib/index.js", + "react-syntax-highlighter": "react-syntax-highlighter/dist/esm/index.js", + "react-syntax-highlighter/dist/cjs/styles/prism/vs": "react-syntax-highlighter/dist/esm/styles/prism/vs.js", + "react-syntax-highlighter/dist/cjs/styles/prism/xonokai": "react-syntax-highlighter/dist/esm/styles/prism/xonokai.js" } }