]>
git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/blob - rollup.config.js
1 var rollupBabel
= require('rollup-plugin-babel');
8 ["@babel/preset-env", { modules
: false }]
17 // Compatible with most environements and tools (AMD, CJS, ESM...),
18 // > Generated with Webpack. See the "javascript:foundation" gulp task.
19 // > TODO: factorize the assets generation.
22 // For older bundlers like Browserify or Webpack 1.
23 Object
.assign({}, baseConfig
, {
24 input
: './js/foundation.js',
28 file
: './dist/js/foundation.cjs.js',
34 // For modern bundlers like Webpack 2+ or Rollup that will use ES Modules
35 // via static analysis to make some tree shaking.
36 Object
.assign({}, baseConfig
, {
37 input
: './js/foundation.js',
41 file
: './dist/js/foundation.esm.js',
47 // Non-transpiled ES modules for those who want to transpile their code with
48 // their own configuration (e.g. for custom targets).
49 Object
.assign({}, baseConfig
, {
50 input
: './js/foundation.js',
51 plugins
: [], // No babel transpilation
55 file
: './dist/js/foundation.es6.js',