Skip to content

Commit

Permalink
🚨(lti) remove warning during build
Browse files Browse the repository at this point in the history
Some dependencies were not being installed correctly in lib_markdown,
plus these dependencies have some source maps missing that
cause warnings during the build.
This commit fixes the issue by installing the dependencies correctly,
and remove the warnings on missing source maps.
  • Loading branch information
AntoLC committed Dec 21, 2023
1 parent 5dc12c9 commit 93e4f4f
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/frontend/apps/lti_site/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ module.exports = {
'internmap|' +
'delaunator|' +
'robust-predicates|' +
'khroma' +
'khroma|' +
'devlop' +
')/)',
],
};
3 changes: 2 additions & 1 deletion src/frontend/apps/lti_site/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ module.exports = (_, argv) => {
{
enforce: 'pre',
test: /\.js$/,
loader: 'source-map-loader',
use: ['source-map-loader'],
},
],
},
ignoreWarnings: [/Failed to parse source map/],
watchOptions: {
ignored: '**/node_modules',
aggregateTimeout: 1000,
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/packages/lib_markdown/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ module.exports = {
'internmap|' +
'delaunator|' +
'robust-predicates|' +
'khroma' +
'khroma |' +
'devlop' +
')/)',
],
};
7 changes: 5 additions & 2 deletions src/frontend/packages/lib_markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.23.5",
"@babel/preset-typescript": "7.23.3",
"@faker-js/faker": "*",
"@formatjs/cli": "6.2.4",
"@openfun/cunningham-react": "*",
"@tanstack/react-query": "*",
Expand All @@ -64,15 +65,14 @@
"cross-env": "7.0.3",
"eslint": "*",
"eslint-config-marsha": "*",
"@faker-js/faker": "*",
"grommet": "*",
"highlight.js": "11.9.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-matchmedia-mock": "1.1.0",
"jest-styled-components": "7.2.0",
"lodash": "4.17.21",
"lib-tests": "*",
"lodash": "4.17.21",
"luxon": "3.4.4",
"marsha-config": "*",
"prettier": "*",
Expand Down Expand Up @@ -108,9 +108,12 @@
"@mdx-js/mdx2": "npm:@mdx-js/[email protected]",
"codemirror": "6.0.1",
"dompurify": "3.0.6",
"hast-util-from-parse5": "8.0.1",
"lib-common": "*",
"lib-components": "*",
"mdast": "3.0.0",
"mermaid": "9.1.7",
"parse5": "7.1.2",
"rehype-highlight": "6.0.0",
"rehype-katex": "6.0.3",
"rehype-mathjax": "4.0.2",
Expand Down
52 changes: 52 additions & 0 deletions src/frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8042,6 +8042,20 @@ hast-util-from-html@^1.0.0:
vfile "^5.0.0"
vfile-message "^3.0.0"

[email protected]:
version "8.0.1"
resolved "https://registry.yarnpkg.com/hast-util-from-parse5/-/hast-util-from-parse5-8.0.1.tgz#654a5676a41211e14ee80d1b1758c399a0327651"
integrity sha512-Er/Iixbc7IEa7r/XLtuG52zoqn/b3Xng/w6aZQ0xGVxzhw5xUFxcRqdPzP6yFi/4HBYRaifaI5fQ1RH8n0ZeOQ==
dependencies:
"@types/hast" "^3.0.0"
"@types/unist" "^3.0.0"
devlop "^1.0.0"
hastscript "^8.0.0"
property-information "^6.0.0"
vfile "^6.0.0"
vfile-location "^5.0.0"
web-namespaces "^2.0.0"

hast-util-from-parse5@^7.0.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/hast-util-from-parse5/-/hast-util-from-parse5-7.1.0.tgz#c129dd3a24dd8a867ab8a029ca47e27aa54864b7"
Expand Down Expand Up @@ -8071,6 +8085,13 @@ hast-util-parse-selector@^3.0.0:
dependencies:
"@types/hast" "^2.0.0"

hast-util-parse-selector@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz#352879fa86e25616036037dd8931fb5f34cb4a27"
integrity sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==
dependencies:
"@types/hast" "^3.0.0"

hast-util-raw@^7.2.0:
version "7.2.3"
resolved "https://registry.yarnpkg.com/hast-util-raw/-/hast-util-raw-7.2.3.tgz#dcb5b22a22073436dbdc4aa09660a644f4991d99"
Expand Down Expand Up @@ -8169,6 +8190,17 @@ hastscript@^7.0.0:
property-information "^6.0.0"
space-separated-tokens "^2.0.0"

hastscript@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/hastscript/-/hastscript-8.0.0.tgz#4ef795ec8dee867101b9f23cc830d4baf4fd781a"
integrity sha512-dMOtzCEd3ABUeSIISmrETiKuyydk1w0pa+gE/uormcTpSYuaNJPbX1NU3JLyscSLjwAQM8bWMhhIlnCqnRvDTw==
dependencies:
"@types/hast" "^3.0.0"
comma-separated-tokens "^2.0.0"
hast-util-parse-selector "^4.0.0"
property-information "^6.0.0"
space-separated-tokens "^2.0.0"

[email protected]:
version "11.9.0"
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-11.9.0.tgz#04ab9ee43b52a41a047432c8103e2158a1b8b5b0"
Expand Down Expand Up @@ -9903,6 +9935,11 @@ mdast-util-to-string@^4.0.0:
dependencies:
"@types/mdast" "^4.0.0"

[email protected]:
version "3.0.0"
resolved "https://registry.yarnpkg.com/mdast/-/mdast-3.0.0.tgz#626bce9603ed43fb6fb053245a6e4a17f4457aa8"
integrity sha512-xySmf8g4fPKMeC07jXGz971EkLbWAJ83s4US2Tj9lEdnZ142UP5grN73H1Xd3HzrdbU5o9GYYP/y8F9ZSwLE9g==

mdurl@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e"
Expand Down Expand Up @@ -10952,6 +10989,13 @@ [email protected], parse5@^6.0.0:
resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b"
integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==

[email protected]:
version "7.1.2"
resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.1.2.tgz#0736bebbfd77793823240a23b7fc5e010b7f8e32"
integrity sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==
dependencies:
entities "^4.4.0"

parse5@^7.0.0:
version "7.1.1"
resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.1.1.tgz#4649f940ccfb95d8754f37f73078ea20afe0c746"
Expand Down Expand Up @@ -12994,6 +13038,14 @@ vfile-location@^4.0.0:
"@types/unist" "^2.0.0"
vfile "^5.0.0"

vfile-location@^5.0.0:
version "5.0.2"
resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-5.0.2.tgz#220d9ca1ab6f8b2504a4db398f7ebc149f9cb464"
integrity sha512-NXPYyxyBSH7zB5U6+3uDdd6Nybz6o6/od9rk8bp9H8GR3L+cm/fC0uUTbqBmUTnMCUDslAGBOIKNfvvb+gGlDg==
dependencies:
"@types/unist" "^3.0.0"
vfile "^6.0.0"

vfile-message@^3.0.0:
version "3.1.2"
resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-3.1.2.tgz#a2908f64d9e557315ec9d7ea3a910f658ac05f7d"
Expand Down

0 comments on commit 93e4f4f

Please sign in to comment.