Skip to content
Snippets Groups Projects
Select Git revision
  • 2da3df6e4d2271ddaef3fa71474ebdbe18168904
  • master default protected
  • rednatco-v2
  • rednatco
  • test
  • ntc-tube-uniform-color
  • ntc-tube-missing-atoms
  • restore-vertex-array-per-program
  • watlas2
  • dnatco_new
  • cleanup-old-nodejs
  • webmmb
  • fix_auth_seq_id
  • update_deps
  • ext_dev
  • ntc_balls
  • nci-2
  • plugin
  • bugfix-0.4.5
  • nci
  • servers
  • v0.5.0-dev.1
  • v0.4.5
  • v0.4.4
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.4.0
  • v0.3.12
  • v0.3.11
  • v0.3.10
  • v0.3.9
  • v0.3.8
  • v0.3.7
  • v0.3.6
  • v0.3.5
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.1
  • v0.3.0
41 results

plugin.tsx

Blame
  • rollup.config.js 879 B
    // import buble from 'rollup-plugin-buble';
    import json from 'rollup-plugin-json';
    import resolve from 'rollup-plugin-node-resolve';
    import commonjs from 'rollup-plugin-commonjs';
    
    var path = require('path');
    var pkg = require('./package.json');
    var external = Object.keys(pkg.dependencies);
    
    export default {
      input: 'build/js/src/index.js',
      plugins: [
        resolve({
          jsnext: true,
          main: true
        }),
        commonjs(),
        json(),
        // buble()
      ],
      output: [
        {
          file: "build/js/molio.dev.js",
          format: 'umd',
          name: 'MOLIO',
          sourcemap: false
        },
        // {
        //   file: "build/js/molio.esm.js",
        //   format: 'es',
        //   sourcemap: false
        // }
      ],
      external: external,
      sourcemap: false,
      onwarn(warning, warn) {
        if (warning.code === 'THIS_IS_UNDEFINED') return;
        warn(warning); // this requires Rollup 0.46
      }
    };