Skip to content

Refactor to use import attributes #8880

@jeddy3

Description

@jeddy3

Refactor to use import attributes now that we've dropped support for Node.js 18.

Ref: #8850

/** @todo leverage import attributes once support for Node.js v18.19 is dropped */
const require = createRequire(import.meta.url);
const syntaxPatches = require('@csstools/css-syntax-patches-for-csstree/dist/index.json').next;

/** @todo leverage import attributes once support for Node.js v18.19 is dropped */
const require = createRequire(import.meta.url);
const functionsList = require('css-functions-list/index.json');

/** @todo leverage import attributes once support for Node.js v18.19 is dropped */
const require = createRequire(import.meta.url);
const syntaxPatches = require('@csstools/css-syntax-patches-for-csstree/dist/index.json').next;

There may be other instances to refactor in the same PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: wipis being worked on by someone

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions