mirror of
https://github.com/mivodev/mivodev.github.io.git
synced 2026-01-26 21:41:53 +07:00
Fix dependencies: Add flag-icons, tailwind directives, and postcss config
This commit is contained in:
29
node_modules/sucrase/dist/util/elideImportEquals.js
generated
vendored
Normal file
29
node_modules/sucrase/dist/util/elideImportEquals.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _types = require('../parser/tokenizer/types');
|
||||
|
||||
|
||||
function elideImportEquals(tokens) {
|
||||
// import
|
||||
tokens.removeInitialToken();
|
||||
// name
|
||||
tokens.removeToken();
|
||||
// =
|
||||
tokens.removeToken();
|
||||
// name or require
|
||||
tokens.removeToken();
|
||||
// Handle either `import A = require('A')` or `import A = B.C.D`.
|
||||
if (tokens.matches1(_types.TokenType.parenL)) {
|
||||
// (
|
||||
tokens.removeToken();
|
||||
// path string
|
||||
tokens.removeToken();
|
||||
// )
|
||||
tokens.removeToken();
|
||||
} else {
|
||||
while (tokens.matches1(_types.TokenType.dot)) {
|
||||
// .
|
||||
tokens.removeToken();
|
||||
// name
|
||||
tokens.removeToken();
|
||||
}
|
||||
}
|
||||
} exports.default = elideImportEquals;
|
||||
Reference in New Issue
Block a user