Skip to content

Commit 0dbe27e

Browse files
committed
make default export work
1 parent 7451989 commit 0dbe27e

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.babelrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"presets": ["es2015"],
3-
"plugins": ["babel-plugin-add-module-exports"]
2+
"presets": ["es2015"]
43
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
node_modules
33
*.log
4+
maps

dist/jump.min.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.babel.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ const attribution = [
3636
const browserifyArgs = {
3737
debug: true,
3838
entries: 'src/jump.js',
39-
standalone: 'Jump',
40-
transform: [
41-
['babelify', { presets: ["es2015"] } ]
42-
]
39+
standalone: 'Jump'
4340
}
4441

4542
const watchifyArgs = assign(watchify.args, browserifyArgs)
@@ -50,6 +47,10 @@ const build = () => {
5047
console.time('Bundling finished')
5148

5249
return bundler
50+
.transform(babelify.configure({
51+
presets: ['es2015'],
52+
plugins: ['add-module-exports']
53+
}))
5354
.bundle()
5455
.on('error', onError)
5556
.on('end', () => console.timeEnd('Bundling finished'))

0 commit comments

Comments
 (0)