Issues (62)

rollup.config.js (3 issues)

Severity
1
import uglify from 'rollup-plugin-uglify';
0 ignored issues
show
Definition for rule 'keyword-spacing' was not found
Loading history...
2
3
var input = "./src/backbone.umd.js",
4
  plugins = [],
5
  output = {
6
    file: "dist/backbone.js",
7
    format: "umd",
8
    exports: 'named',
9
    name: 'BackboneES6'
10
  };
11
12
if (process.env.MINIFY) {
0 ignored issues
show
Unexpected use of process.env.
Loading history...
13
  plugins.push(uglify({
14
    mangle: false
15
  }));
16
  output = {
17
    file: "dist/backbone.min.js",
18
    format: "umd",
19
    exports: 'named',
20
    name: 'BackboneES6',
21
    sourcemap: true
22
23
  };
24
} else if (process.env.ES6) {
0 ignored issues
show
Unexpected use of process.env.
Loading history...
25
  input = "./src/backbone_es6.js";
26
  output = {
27
    file: "dist/backbone.es6.js",
28
    format: "es"
29
  };
30
}
31
32
export default {
33
  input: input,
34
  plugins: plugins,
35
  output: output,
36
  extend: true,
37
  external: ['underscore', 'jquery'],
38
  globals: {
39
    jquery: '$',
40
    underscore: '_'
41
  }
42
};
43