Skip to content

Commit 82c7531

Browse files
committed
#171 modernize codebase
1 parent d8507d0 commit 82c7531

8 files changed

Lines changed: 156 additions & 96 deletions

File tree

babel.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
22
presets: [
3+
'@babel/preset-typescript',
34
[
45
'@babel/preset-env',
56
{

declarations.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '*.css';

package-lock.json

Lines changed: 49 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"devDependencies": {
5858
"@babel/eslint-parser": "^7.28.6",
5959
"@babel/preset-env": "^7.28.6",
60+
"@babel/preset-typescript": "^7.29.7",
6061
"@testing-library/dom": "^10.4.1",
6162
"babel-loader": "^10.0.0",
6263
"babel-plugin-inline-import": "^3.0.0",

src/debug.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* eslint-disable no-console */
2+
3+
export function log (...args: any[]) {
4+
console.log(...args)
5+
}
6+
7+
export function warn (...args: any[]) {
8+
console.warn(...args)
9+
}
10+
11+
export function error (...args: any[]) {
12+
console.error(...args)
13+
}
14+
15+
export function trace (...args: any[]) {
16+
console.trace(...args)
17+
}

0 commit comments

Comments
 (0)