Skip to content

Commit

Permalink
feat: rm polyfill (#6117)
Browse files Browse the repository at this point in the history
Наш `browserlist` покрывает API, который мы полифилили.
  • Loading branch information
inomdzhon authored Nov 24, 2023
1 parent 6793e79 commit 03b0d8f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 136 deletions.
6 changes: 0 additions & 6 deletions packages/vkui/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@ module.exports = {
],
settings: {
lintAllEsApis: true,
polyfills: [
'Array.includes',
'Array.find',
'String.padStart',
'Intl', // Отсутствует. Не поддерживается в iOS Safari 9, Calendar должен использоваться только на desktop
],
},
extends: ['plugin:compat/recommended'],
rules: {
Expand Down
20 changes: 2 additions & 18 deletions packages/vkui/cssm/cssm.swcrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"exclude": [
"\\.(test|spec|e2e|e2e-playground|stories)\\.[jt]sx?$",
"testing/",
"storybook/",
"lib/polyfills.ts"
],
"exclude": ["\\.(test|spec|e2e|e2e-playground|stories)\\.[jt]sx?$", "testing/", "storybook/"],

"module": {
"type": "es6"
Expand All @@ -22,17 +17,6 @@
"runtime": "classic"
}
},
"target": "esnext",

"experimental": {
"plugins": [
[
"swc-plugin-transform-remove-imports",
{
"test": "^./lib/polyfills$"
}
]
]
}
"target": "esnext"
}
}
3 changes: 0 additions & 3 deletions packages/vkui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@
"!./src/storybook/"
],
"sideEffects": [
"./dist/lib/polyfills.js",
"./dist/index.js",
"./dist/cjs/lib/polyfills.js",
"./dist/cjs/index.js",
"./dist/cssm/lib/polyfills.js",
"./dist/cssm/index.js",
"*.css"
],
Expand Down
2 changes: 0 additions & 2 deletions packages/vkui/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import './lib/polyfills';

import './styles/constants.css';
import './styles/adaptivity.module.css';
import './styles/dynamicTokens.css';
Expand Down
107 changes: 0 additions & 107 deletions packages/vkui/src/lib/polyfills.ts

This file was deleted.

0 comments on commit 03b0d8f

Please sign in to comment.