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 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
Change rollup.config.js according to the new rollup version
Forwarded: https://github.com/garycourt/uri-js/pull/57
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -3,9 +3,7 @@
const packageJson = require('./package.json');
export default {
- entry : "dist/esnext/index.js",
- format : "umd",
- moduleName : "URI",
+ input : "dist/esnext/index.js",
plugins: [
resolve({
module: true,
@@ -13,20 +11,13 @@
preferBuiltins: false
}),
- babel({
- "presets": [
- ["latest", {
- "es2015": {
- "modules": false
- }
- }]
- ],
- "plugins": ["external-helpers"],
- "externalHelpers": false
- }
-)
+ babel()
],
- 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 */"
+ output: {
+ format : "umd",
+ name : "URI",
+ file : "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 */"
+ }
}
|