It doesn't compile cleanly anymore: - esutils checks for Buffer.isBuffer without ensuring that Buffer exists. - for version, we require a json file, need a rollup extension for that. I no longer hardcode the version number. Note: we need to merge this pull request after we have done the release so that the version number is correct and need to rebuild the minified version in a subsequent commit.
21 lines
500 B
JavaScript
21 lines
500 B
JavaScript
import resolve from 'rollup-plugin-node-resolve';
|
|
import commonjs from 'rollup-plugin-commonjs';
|
|
import builtins from 'rollup-plugin-node-builtins';
|
|
import babili from 'rollup-plugin-real-babili';
|
|
import json from 'rollup-plugin-json';
|
|
|
|
export default {
|
|
entry: 'index.js',
|
|
dest: 'docs/prettier.min.js',
|
|
format: 'iife',
|
|
plugins: [
|
|
json(),
|
|
resolve(),
|
|
commonjs(),
|
|
builtins(),
|
|
babili({comments: false, sourceMap: false}),
|
|
],
|
|
useStrict: false,
|
|
moduleName: 'prettier',
|
|
};
|