How to import block js in another app or module?

example for we have use like this import Block from “/frappe/js/frappe/views/workspace/blocks/block.js”;
but not get and generated error
Uncaught SyntaxError: Cannot use import statement outside a module

so please suggest how to import block (js) in third party app module js
thanks