From 90dde0cf42c5aa06afa6c2207ae6d2ef3a6fa5e6 Mon Sep 17 00:00:00 2001 From: frankieali Date: Tue, 4 Jul 2023 08:04:14 -0400 Subject: [PATCH] switching to ES imports --- copyAssets.js | 13 ++++++------- vite.config.js | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/copyAssets.js b/copyAssets.js index b6f4953..2b32164 100644 --- a/copyAssets.js +++ b/copyAssets.js @@ -1,12 +1,11 @@ -'use strict' +import copydir from 'copy-dir' +import path from 'path' +import fs from 'fs' +import readline from 'readline' +import { stdin as input, stdout as output } from 'process' -const copydir = require('copy-dir'); -const path = require('path'); -const fs = require('fs'); -const readline = require('readline'); -const { stdin: input, stdout: output } = require('process'); +import { AbortController } from 'node-abort-controller' //polyfill for Node