Closed 1v4nx closed 7 years ago
How is an import
statement supposed to work in the first place? Browserify isn't going to handle import
keywords either so I don't see how this is specific to this plugin. Those statements need to be transpiled to require
to actually work.
Closing b/c none of this seems proxyquireify related. That error you shared is from babel.
Currently, the transformation only works with
require('proxyquire')
statements, not withimport proxyquire from 'proxyquire'
ones.Also, mixing both
require
andimport
statements on a single file seems to break withSyntaxError: 'import' and 'export' may appear only with 'sourceType: module'
error. Though, that seems to be an issue with proxyquireify's browserify plugin.