Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ebbfad

Browse files
committed
adjust export in partial_bundle.mjs
1 parent c2c21d9 commit 1ebbfad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/partial_bundle.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var prependFile = require('prepend-file');
1+
import prependFile from 'prepend-file';
22

33
import constants from './util/constants.js';
44
import common from './util/common.js';
@@ -11,7 +11,7 @@ var mainIndex = constants.mainIndex;
1111
var strictIndex = constants.strictIndex;
1212

1313
// Bundle the plotly.js partial bundles
14-
module.exports = function partialBundle(tasks, opts) {
14+
export default function partialBundle(tasks, opts) {
1515
var name = opts.name;
1616
var index = opts.index;
1717
var deleteIndex = opts.deleteIndex;
@@ -69,4 +69,4 @@ module.exports = function partialBundle(tasks, opts) {
6969
done();
7070
});
7171
});
72-
};
72+
}

0 commit comments

Comments
 (0)