From 278a1a971a6ae6d7ceb87c2a9d4795c01783174b Mon Sep 17 00:00:00 2001 From: tarunaersys <129893318+tarunaersys@users.noreply.github.com> Date: Thu, 8 Jun 2023 00:43:27 -0400 Subject: [PATCH] Use namespace import syntax to support newer bundlers The old `import printj from 'printj'` syntax was causing an error in in a personal project where I was using Vite v4.3.9. Making this change to the import syntax and rebuilding this project solved the issue for me. --- src/lib/string.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/string.ts b/src/lib/string.ts index f704dab..c575b90 100644 --- a/src/lib/string.ts +++ b/src/lib/string.ts @@ -1,4 +1,4 @@ -import printj from 'printj' +import * as printj from 'printj' import { Table } from '../Table' import { LuaError } from '../LuaError' import { tostring, posrelat, coerceArgToNumber, coerceArgToString, hasOwnProperty, LuaType } from '../utils'