Skip to content

Commit

Permalink
use webpack instead of jspm
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Mar 24, 2019
1 parent 03f8c0a commit a718288
Show file tree
Hide file tree
Showing 9 changed files with 7,073 additions and 869 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

jspm_packages

node_modules

example/test.html

lib
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

node_modules

example
18 changes: 0 additions & 18 deletions example/index.html

This file was deleted.

7 changes: 3 additions & 4 deletions example/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { transfer } from '/src/index.js';
import Worker from 'worker/WorkerShim';
import workerSrc from './worker.js!worker';
import { transfer } from 'src/index.js';
import CanvasWorker from './worker.js';

const worker = new Worker(workerSrc);
const worker = new CanvasWorker();

worker.addEventListener('message', ({ data }) => {
const canvas = transfer.decode(data);
Expand Down
2 changes: 1 addition & 1 deletion example/worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Canvas, Image, transfer } from '/src/index.js';
import { Canvas, Image, transfer } from 'src/index.js';

const canvas = new Canvas(300, 300);
const context = canvas.getContext('2d');
Expand Down
Loading

0 comments on commit a718288

Please sign in to comment.