rollup.config.js 692 B

123456789101112131415161718192021222324252627282930313233
  1. import resolve from 'rollup-plugin-node-resolve';
  2. import babel from 'rollup-plugin-babel';
  3. const packageJson = require('./package.json');
  4. export default {
  5. entry : "dist/esnext/index.js",
  6. format : "umd",
  7. moduleName : "URI",
  8. plugins: [
  9. resolve({
  10. module: true,
  11. jsnext: true,
  12. preferBuiltins: false
  13. }),
  14. babel({
  15. "presets": [
  16. ["latest", {
  17. "es2015": {
  18. "modules": false
  19. }
  20. }]
  21. ],
  22. "plugins": ["external-helpers"],
  23. "externalHelpers": false
  24. }
  25. )
  26. ],
  27. dest : "dist/es5/uri.all.js",
  28. sourceMap: true,
  29. banner: "/** @license URI.js v" + packageJson.version + " (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */"
  30. }