Welcome to mirror list, hosted at ThFree Co, Russian Federation.

rollup.config.js « uri-js « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5bb8b0541b5fc57f83cfd20eba2524ad6fe226c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
const packageJson = require('./package.json');

export default {
	entry : "dist/esnext/index.js",
	format : "umd",
	moduleName : "URI",
	plugins: [
		resolve({
			module: true,
			jsnext: true,
			preferBuiltins: false
		}),

		babel({
		  "presets": [
		    ["latest", {
		      "es2015": {
		        "modules": false
		      }
		    }]
		  ],
		  "plugins": ["external-helpers"],
		  "externalHelpers": false
		}
)
	],
	dest  : "dist/es5/uri.all.js",
	sourceMap: true,
	banner: "/** @license URI.js v" + packageJson.version + " (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */"
}