fix(): use esm import since upgrade to V3
This commit is contained in:
parent
6fe50850fd
commit
30b122f57c
src/_data
@ -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);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
module.exports = {
|
export default {
|
||||||
getNextHeadingLevel(currentLevel) {
|
getNextHeadingLevel(currentLevel) {
|
||||||
return parseInt(currentLevel, 10) + 1;
|
return parseInt(currentLevel, 10) + 1;
|
||||||
},
|
},
|
||||||
|
@ -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 = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user