Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 202755e

Browse filesBrowse files
Update rollup config.
1 parent 2fb311d commit 202755e
Copy full SHA for 202755e

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎rollup.config.dist.js

Copy file name to clipboardExpand all lines: rollup.config.dist.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import fs from 'fs';
22
import path from 'path';
3-
import mkdirp from 'mkdirp';
43
import { minify } from 'uglify-js';
54
import buble from 'rollup-plugin-buble';
65
import commonjs from 'rollup-plugin-commonjs';
@@ -14,6 +13,7 @@ const DIST_DIR = path.resolve('dist');
1413

1514
export default {
1615
format: 'umd',
16+
exports: 'named',
1717
sourceMap: false,
1818
banner: copyright,
1919
moduleName: 'Immutable',
@@ -33,7 +33,9 @@ export default {
3333
compress: { comparisons: true, pure_getters: true, unsafe: true }
3434
});
3535

36-
mkdirp.sync(DIST_DIR);
36+
if (!fs.existsSync(DIST_DIR)) {
37+
fs.mkdirSync(DIST_DIR);
38+
}
3739

3840
fs.writeFileSync(
3941
path.join(DIST_DIR, 'immutable.min.js'),

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.