Skip to content

Commit

Permalink
Revert "feat: ui.markdown component (#903)"
Browse files Browse the repository at this point in the history
This reverts commit 0d1eea8.
  • Loading branch information
wusteven815 authored Oct 23, 2024
1 parent 0d1eea8 commit c25e722
Show file tree
Hide file tree
Showing 13 changed files with 136 additions and 1,421 deletions.
39 changes: 1 addition & 38 deletions jest.config.base.cjs
Original file line number Diff line number Diff line change
@@ -1,48 +1,11 @@
const path = require('path');

// List of node_modules that need to be transformed from ESM to CJS for jest to work
const nodeModulesToTransform = [
'@deephaven',
'nanoid',
// monaco
'monaco-editor',
// plotly.js dependencies
'd3-interpolate',
'd3-color',
// react-markdown and its dependencies
'react-markdown',
'vfile',
'vfile-message',
'unist-util.*',
'unified',
'bail',
'is-plain-obj',
'trough',
'remark.*',
'mdast-util.*',
'micromark.*',
'decode-named-character-reference',
'trim-lines',
'property-information',
'hast-util.*',
'.*separated-tokens',
'ccount',
'devlop',
'escape-string-regexp',
'markdown-table',
'zwitch',
'longest-streak',
'rehype.*',
'web-namespaces',
'hastscript',
];

module.exports = {
transform: {
'^.+\\.(ts|tsx|js|jsx)$': ['babel-jest', { rootMode: 'upward' }],
},
transformIgnorePatterns: [
`node_modules/(?!(${nodeModulesToTransform.join('|')})/)`,
'/node_modules/(?!(@deephaven|monaco-editor|d3-interpolate|d3-color|nanoid)/)',
],
moduleNameMapper: {
'theme-([^/]+?)\\.css(\\?(?:inline|raw))?$': path.join(
Expand Down
Loading

0 comments on commit c25e722

Please sign in to comment.