Skip to content
Snippets Groups Projects
Select Git revision
  • 54805aa640af410d883e3bc8df0a1283a3ef4fa1
  • annotation-on-video default protected
  • demo_ci
  • 3-upstream-01022023
  • master
  • gh3538-captions
  • 16-adapt-for-images-annot
  • 15-api-for-annotations-on-video
  • 15-annotations-on-videos
  • video_for_annotations
  • wip-1-annotations-on-videos
  • 9-videoviewer-tests
  • 9_wip_videotests
  • 6-fix-tests-and-ci
  • _fix_ci
  • wip-webpack-from-git
16 results

babel.config.js

Blame
  • nwb.config.js 576 B
    const path = require('path');
    
    module.exports = {
      type: 'react-component',
      npm: {
        esModules: true,
        // umd: {
        //   global: 'MiradorAnnotation',
        //   externals: {
        //     react: 'React',
        //   },
        // },
      },
      webpack: {
        aliases: {
          '@material-ui/core': path.resolve('./', 'node_modules', '@material-ui/core'),
          '@material-ui/styles': path.resolve('./', 'node_modules', '@material-ui/styles'),
          react: path.resolve('./', 'node_modules', 'react'),
          'react-dom': path.resolve('./', 'node_modules', 'react-dom'),
        },
      },
    };