Skip to content

Commit 9e7932e

Browse files
author
Tom
committed
use webpack3 and uglify-es, reduces module size
1 parent ee1b46c commit 9e7932e

11 files changed

+9194
-5295
lines changed

.babelrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"targets": {
5+
"browsers": ["chrome 58", "firefox 53"]
6+
},
7+
"modules": false,
8+
"loose": false
9+
}]
10+
]
11+
}

LSystemWorker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Require instead of importScripts because we use webpack
22
// with worker-loader for compiling source: https://github.com/webpack/worker-loader
3-
let LSystem = require('lindenmayer');
3+
import LSystem from 'lindenmayer';
44
let lsystem = new LSystem({});
55
let timeout = {};
66

0 commit comments

Comments
 (0)