mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: remove UMD wrapper from cssTokenizer (#16322)
This wrapper conflicts with some bundlers in the wild, and we don't really need it.
This commit is contained in:
parent
1f40e3d22b
commit
706c00d242
@ -19,21 +19,11 @@
|
||||
|
||||
// Changes from https://github.com/tabatkins/parse-css
|
||||
// - Tabs are replaced with two spaces.
|
||||
// - Universal Module Definition wrapper is removed.
|
||||
// - Everything not related to tokenizing - below the first exports block - is removed.
|
||||
|
||||
// @ts-nocheck
|
||||
|
||||
(function (root, factory) {
|
||||
// Universal Module Definition (UMD) to support AMD, CommonJS/Node.js,
|
||||
// Rhino, and plain browser loading.
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(['exports'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports);
|
||||
} else {
|
||||
factory(root);
|
||||
}
|
||||
}(this, function (exports) {
|
||||
|
||||
var between = function (num, first, last) { return num >= first && num <= last; }
|
||||
function digit(code) { return between(code, 0x30,0x39); }
|
||||
@ -947,4 +937,3 @@ exports.EOFToken = EOFToken;
|
||||
exports.CSSParserToken = CSSParserToken;
|
||||
exports.GroupingToken = GroupingToken;
|
||||
|
||||
}));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user