ioquatix / script-runner

This package will run various script files inside of Atom. It currently supports JavaScript, CoffeeScript, Ruby, and Python. You can add more.
http://atom.io/packages/script-runner
Other
62 stars 23 forks source link

Update dependencies and use ES modules. #116

Closed ioquatix closed 1 year ago

ioquatix commented 2 years ago

@huba I can't get this to work.

Cannot use import statement outside a module

/Users/samuel/.atom/packages/script-runner/index.js:1
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { import './lib/script-runner.mjs'
                                                                                                                                                           ^^^^^^
SyntaxError: Cannot use import statement outside a module
    at new Script (vm.js:84:7)
thatcomputerguy0101 commented 2 years ago

Maybe try using @qiwi/esm instead? It seems to have some updates past the original esm including support for the node: protocol.