andymikulski / nES6

NES emulator written in ES6
Other
4 stars 1 forks source link

Plugins should build to own module #15

Open andymikulski opened 7 years ago

andymikulski commented 7 years ago

With the landing of plugins in PR #13 , we're currently just importing src/plugins/... inside the demo file. Ideally, any plugin inside src/plugins should be compiled down into its own module so it can be imported/required separately later.

Thinking the desired use case would be something like

import nES6 from 'nES6';
import keyBinding from 'nES6/plugins/keyBinding'

...........maybe? This leads into another question - should there be another repo/npm package for plugins?