feature: client: key: binder: migrate to ESM

This commit is contained in:
coderiaser 2026-01-28 21:03:53 +02:00
parent d250bf0223
commit f8a63b5a13
4 changed files with 4 additions and 11 deletions

View file

@ -1,6 +1,4 @@
'use strict';
module.exports.createBinder = () => {
export const createBinder = () => {
let binded = false;
return {

View file

@ -6,7 +6,7 @@ import * as Buffer from '../dom/buffer.mjs';
import * as KEY from './key.mjs';
import _vim from './vim/index.js';
import setCurrentByChar from './set-current-by-char.js';
import {createBinder} from './binder.js';
import {createBinder} from './binder.mjs';
const Chars = fullstore();

View file

@ -1,12 +1,7 @@
'use strict';
const {join} = require('node:path');
const {test, stub} = require('supertape');
const dir = '../';
const pathVim = join(dir, 'vim');
const {getDOM, getCloudCmd} = require('./globals.fixture');
globalThis.DOM = getDOM();