Closed ioquatix closed 1 year 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)
Maybe try using @qiwi/esm instead? It seems to have some updates past the original esm including support for the node: protocol.
@qiwi/esm
esm
node:
@huba I can't get this to work.