fix(): use esm import since upgrade to V3

This commit is contained in:
Florian Michaut 2024-11-21 16:00:52 +01:00
parent 6fe50850fd
commit 30b122f57c
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
module.exports = { export default {
random() { random() {
const segment = () => { const segment = () => {
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);

View File

@ -1,4 +1,4 @@
module.exports = { export default {
getNextHeadingLevel(currentLevel) { getNextHeadingLevel(currentLevel) {
return parseInt(currentLevel, 10) + 1; return parseInt(currentLevel, 10) + 1;
}, },

View File

@ -1,6 +1,6 @@
const tokens = require('./tokens.json'); import tokens from './tokens.json' with { type: "json" };
module.exports = { export default {
colors() { colors() {
let response = []; let response = [];