Suppose I have a class in one big file like this:
export default class { constructor () {} methodA () {} methodB () {} methodC () {} }
You should be able to, as class is supposed to just be syntax sugar for the usual prototype workflow:
class
import methodOne from 'methodOne' import methodTwo from 'methodTwo' class MyClass { constructor() { } } Object.assign(MyClass.prototype, {methodOne, methodTwo}) export default MyClass