feat(build): use __DEV__ to control development mode (#789)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* feat(build): use __DEV__ to control development mode * fix workflow * missing env in systemjs build
authored by Daishi Kato · committed by GitHub · parent e90e8bc · Browse files · 8 files·+241 added−33 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
8 files+241 added−33 removed
- tests:+50 added−5 removed
- other:+191 added−28 removed
Provenance
- Commit
5b938fb- Tree
ad4a1c8- Author
Daishi Kato <dai-shi@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
e90e8bc
8 files changed+241 added−33 removed
added:.github/workflows/test-multiple-builds.yml+57 added
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657name: Test Multiple Builds
on: push: branches: [main] pull_request: types: [opened, synchronize]
jobs: test_matrix: runs-on: ubuntu-latest strategy: fail-fast: false matrix: build: [cjs, umd] # [cjs, esm, umd, system] env: [development, production] steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: '12' cache: yarn - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - run: yarn install --frozen-lockfile --check-files - run: yarn build - name: Patch for DEV-ONLY if: ${{ matrix.env == 'development' }} run: | sed -i~ "s/it[a-zA-Z]*('\[PRD-ONLY\]/it.skip('/" tests/*.tsx - name: Patch for PRD-ONLY if: ${{ matrix.env == 'production' }} run: | sed -i~ "s/it[a-zA-Z]*('\[DEV-ONLY\]/it.skip('/" tests/*.tsx - name: Patch for CJS if: ${{ matrix.build == 'cjs' }} run: | sed -i~ "s/<rootDir>\/src\(.*\)\.ts/<rootDir>\/dist\1.js/" package.json - name: Patch for ESM if: ${{ matrix.build == 'esm' }} run: | sed -i~ "s/<rootDir>\/src\(.*\)\.ts/<rootDir>\/dist\/esm\1.js" package.json sed -i~ "1s/^/import.meta.env=import.meta.env||{};import.meta.env.MODE='${NODE_ENV}';/" tests/*.tsx env: NODE_ENV: ${{ matrix.env }} - name: Patch for UMD/SystemJS if: ${{ matrix.build == 'umd' || matrix.build == 'system' }} run: | sed -i~ "s/<rootDir>\/src\(.*\)\.ts/<rootDir>\/dist\/${BUILD}\1.${NODE_ENV}.js/" package.json env: BUILD: ${{ matrix.build }} NODE_ENV: ${{ matrix.env }} - name: Test ${{ matrix.build }} ${{ matrix.env }} run: | cat package.json yarn test:ci env: NODE_ENV: ${{ matrix.env }}modified:src/middleware/devtools.ts+1 added-4 removed
174 unmodified lines175 // ignored176 }177 178 if (!extensionConnector) {179- if (180- process.env.NODE_ENV === 'development' &&181- typeof window !== 'undefined'182- ) {179+ if (__DEV__ && typeof window !== 'undefined') {180 console.warn(181 '[zustand devtools middleware] Please install/enable Redux devtools extension'182 )183 }182 unmodified linesadded:src/types.d.ts+2 added
12// eslint-disable-next-line no-vardeclare var __DEV__: booleanmodified:tests/devtools.test.tsx+8 added-5 removed
33 unmodified lines34 expect(extension.init).toHaveBeenLastCalledWith(initialState)35 })36 37 describe('If there is no extension installed...', () => {38+ let savedDEV: boolean39 beforeAll(() => {40+ savedDEV = __DEV__41 ;(window as any).__REDUX_DEVTOOLS_EXTENSION__ = undefined42 })43 afterAll(() => {44+ __DEV__ = savedDEV45 ;(window as any).__REDUX_DEVTOOLS_EXTENSION__ = extensionConnector46 })47 48 it('does not throw', () => {49+ __DEV__ = false50 expect(() => {51 create(devtools(() => ({ count: 0 })))52 }).not.toThrow()53 })54 51- it('warns in dev env', () => {52- const originalNodeEnv = process.env.NODE_ENV53- process.env.NODE_ENV = 'development'55+ it('[DEV-ONLY] warns in dev env', () => {56+ __DEV__ = true57 const originalConsoleWarn = console.warn58 console.warn = jest.fn()59 60 create(devtools(() => ({ count: 0 })))61 expect(console.warn).toHaveBeenLastCalledWith(62 '[zustand devtools middleware] Please install/enable Redux devtools extension'63 )64 62- process.env.NODE_ENV = originalNodeEnv65 console.warn = originalConsoleWarn66 })67 66- it('does not warn if not in dev env', () => {68+ it('[PRD-ONLY] does not warn if not in dev env', () => {69+ __DEV__ = false70 const consoleWarn = jest.spyOn(console, 'warn')71 72 create(devtools(() => ({ count: 0 })))73 expect(consoleWarn).not.toBeCalled()440 unmodified linesmodified:tests/middlewareTypes.test.tsx+42 added
69 unmodified lines70 })71 })72 73 describe('counter state spec (single middleware)', () => {74+ let savedDEV: boolean75+ beforeEach(() => {76+ savedDEV = __DEV__77+ })78+ afterEach(() => {79+ __DEV__ = savedDEV80+ })81+82 it('immer', () => {83 const useStore = create<CounterState>(84 immer((set, get) => ({85 count: 0,39 unmodified lines125 TestComponent126 })127 128 it('devtools', () => {129+ __DEV__ = false130 const useStore = create<131 CounterState,132 SetState<CounterState>,133 GetState<CounterState>,117 unmodified lines251 })252 })253 254 describe('counter state spec (double middleware)', () => {255+ let savedDEV: boolean256+ beforeEach(() => {257+ savedDEV = __DEV__258+ })259+ afterEach(() => {260+ __DEV__ = savedDEV261+ })262+263 it('devtools & immer', () => {264+ __DEV__ = false265 const useStore = create<266 CounterState,267 SetState<CounterState>,268 GetState<CounterState>,23 unmodified lines292 TestComponent293 })294 295 it('devtools & redux', () => {296+ __DEV__ = false297 const useStore = create(298 devtools(299 redux<{ count: number }, { type: 'INC' }>(300 (state, action) => {20 unmodified lines321 TestComponent322 })323 324 it('devtools & combine', () => {325+ __DEV__ = false326 const useStore = create(327 devtools(328 combine({ count: 1 }, (set, get) => ({329 inc: () => set({ count: get().count + 1 }, false, 'inc'),38 unmodified lines368 TestComponent369 })370 371 it('devtools & subscribeWithSelector', () => {372+ __DEV__ = false373 const useStore = create<374 CounterState,375 SetState<CounterState>,376 GetState<CounterState>,25 unmodified lines402 TestComponent403 })404 405 it('devtools & persist', () => {406+ __DEV__ = false407 const useStore = create<408 CounterState,409 SetState<CounterState>,410 GetState<CounterState>,25 unmodified lines436 })437 })438 439 describe('counter state spec (triple middleware)', () => {440+ let savedDEV: boolean441+ beforeEach(() => {442+ savedDEV = __DEV__443+ })444+ afterEach(() => {445+ __DEV__ = savedDEV446+ })447+448 it('devtools & persist & immer', () => {449+ __DEV__ = false450 const useStore = create<451 CounterState,452 SetState<CounterState>,453 GetState<CounterState>,27 unmodified lines481 TestComponent482 })483 484 it('devtools & subscribeWithSelector & combine', () => {485+ __DEV__ = false486 const useStore = create(487 devtools(488 subscribeWithSelector(489 combine({ count: 1 }, (set, get) => ({20 unmodified lines510 TestComponent511 })512 513 it('devtools & subscribeWithSelector & persist', () => {514+ __DEV__ = false515 const useStore = create<516 CounterState,517 SetState<CounterState>,518 GetState<CounterState>,33 unmodified lines552 })553 })554 555 describe('counter state spec (quadruple middleware)', () => {556+ let savedDEV: boolean557+ beforeEach(() => {558+ savedDEV = __DEV__559+ })560+ afterEach(() => {561+ __DEV__ = savedDEV562+ })563+564 it('devtools & subscribeWithSelector & persist & immer (#616)', () => {565+ __DEV__ = false566 const useStore = create<567 CounterState,568 SetState<CounterState>,569 GetState<CounterState>,140 unmodified linesmodified:package.json+6 added-1 removed
42 unmodified lines43 },44 "sideEffects": false,45 "scripts": {46 "prebuild": "shx rm -rf dist",47- "build": "concurrently 'yarn:build:*'",47+ "build": "concurrently -m 8 'yarn:build:*'",48 "build:base": "rollup -c",49 "build:vanilla": "rollup -c --config-vanilla",50 "build:middleware": "rollup -c --config-middleware",51 "build:shallow": "rollup -c --config-shallow",53 unmodified lines105 "^.+\\.(t|j)sx?$": [106 "@swc/jest"107 ]108 },109+ "globals": {110+ "__DEV__": true111+ },112 "moduleNameMapper": {113 "^zustand$": "<rootDir>/src/index.ts",114 "^zustand/(.*)$": "<rootDir>/src/$1.ts"115 },22 unmodified lines138 "@babel/plugin-transform-typescript": "^7.16.1",139 "@babel/preset-env": "^7.16.5",140 "@rollup/plugin-babel": "^5.3.0",141 "@rollup/plugin-node-resolve": "^13.1.1",142+ "@rollup/plugin-replace": "^3.0.1",143 "@rollup/plugin-typescript": "^8.3.0",144 "@swc/core": "^1.2.122",145 "@swc/jest": "^0.2.15",146 "@testing-library/react": "^12.1.2",21 unmodified lines168 "react": "^17.0.2",169 "react-dom": "^17.0.2",170 "rollup": "^2.62.0",171 "rollup-plugin-esbuild": "^4.7.2",172+ "rollup-plugin-terser": "^7.0.2",173 "shx": "^0.3.3",174 "typescript": "^4.5.4"175 },176 "peerDependencies": {8 unmodified linesmodified:rollup.config.js+51 added-21 removed
123456789101110 unmodified lines2223242524262726282930313222 unmodified lines5556575857596061626364656667686970717264737475767778798081828384857386878889907791929380949596979899100101102103104105106107108109110111112113114901151161171189411912012112212399124125126127128129130131132133134135136137138107108109110111112139140141142115116117118119143144145146147148149150151import path from 'path'import babelPlugin from '@rollup/plugin-babel'import resolve from '@rollup/plugin-node-resolve'import replace from '@rollup/plugin-replace'import typescript from '@rollup/plugin-typescript'import esbuild from 'rollup-plugin-esbuild'import { terser } from 'rollup-plugin-terser'const createBabelConfig = require('./babel.config')
const extensions = ['.js', '.ts', '.tsx']const { root } = path.parse(process.cwd())10 unmodified lines babelHelpers: 'bundled', }}
function getEsbuild(target) {function getEsbuild(target, env = 'development') { return esbuild({ minify: false, minify: env === 'production', target, tsconfig: path.resolve('./tsconfig.json'), })}22 unmodified lines { file: `${output}.js`, format: 'esm' }, { file: `${output}.mjs`, format: 'esm' }, ], external, plugins: [resolve({ extensions }), getEsbuild('node12')], plugins: [ resolve({ extensions }), replace({ __DEV__: '(import.meta.env&&import.meta.env.MODE)!=="production"', preventAssignment: true, }), getEsbuild('node12'), ], }}
function createCommonJSConfig(input, output) { return { input, output: { file: output, format: 'cjs', exports: 'named' }, output: { file: `${output}.js`, format: 'cjs', exports: 'named' }, external, plugins: [ resolve({ extensions }), replace({ __DEV__: 'process.env.NODE_ENV!=="production"', preventAssignment: true, }), babelPlugin(getBabelOptions({ ie: 11 })), ], }}
function createUMDConfig(input, output) {function createUMDConfig(input, output, env) { const c = output.split('/').pop() return { input, output: { file: output, file: `${output}.${env}.js`, format: 'umd', exports: 'named', name: 'zustand', name: c === 'index' ? 'zustand' : `zustand${c.slice(0, 1).toUpperCase()}${c.slice(1)}`, globals: { react: 'React', }, }, external, plugins: [ resolve({ extensions }), replace({ __DEV__: env !== 'production' ? 'true' : 'false', preventAssignment: true, }), babelPlugin(getBabelOptions({ ie: 11 })), ...(env === 'production' ? [terser()] : []), ], }}
function createSystemConfig(input, output) {function createSystemConfig(input, output, env) { return { input, output: { file: output, file: `${output}.${env}.js`, format: 'system', exports: 'named', }, external, plugins: [resolve({ extensions }), getEsbuild('node12')], plugins: [ resolve({ extensions }), replace({ __DEV__: env !== 'production' ? 'true' : 'false', preventAssignment: true, }), getEsbuild('node12', env), ], }}
export default function (args) { let c = Object.keys(args).find((key) => key.startsWith('config-')) if (c) { c = c.slice('config-'.length).replace(/_/g, '/') return [ createCommonJSConfig(`src/${c}.ts`, `dist/${c}.js`), createESMConfig(`src/${c}.ts`, `dist/esm/${c}`), createUMDConfig(`src/${c}.ts`, `dist/umd/${c}.js`), createSystemConfig(`src/${c}.ts`, `dist/system/${c}.js`), ] } else { c = 'index' } return [ createDeclarationConfig('src/index.ts', 'dist'), createCommonJSConfig('src/index.ts', 'dist/index.js'), createESMConfig('src/index.ts', 'dist/esm/index'), createUMDConfig('src/index.ts', 'dist/umd/index.js'), createSystemConfig('src/index.ts', 'dist/system/index.js'), ...(c === 'index' ? [createDeclarationConfig(`src/${c}.ts`, 'dist')] : []), createCommonJSConfig(`src/${c}.ts`, `dist/${c}`), createESMConfig(`src/${c}.ts`, `dist/esm/${c}`), createUMDConfig(`src/${c}.ts`, `dist/umd/${c}`, 'development'), createUMDConfig(`src/${c}.ts`, `dist/umd/${c}`, 'production'), createSystemConfig(`src/${c}.ts`, `dist/system/${c}`, 'development'), createSystemConfig(`src/${c}.ts`, `dist/system/${c}`, 'production'), ]}modified:yarn.lock+74 added-2 removed
1231 unmodified lines1232 deepmerge "^4.2.2"1233 is-module "^1.0.0"1234 resolve "^1.19.0"1235 1236+"@rollup/plugin-replace@^3.0.1":1237+ version "3.0.1"1238+ resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-3.0.1.tgz#f774550f482091719e52e9f14f67ffc0046a883d"1239+ integrity sha512-989J5oRzf3mm0pO/0djTijdfEh9U3n63BIXN5X7T4U9BP+fN4oxQ6DvDuBvFaHA6scaHQRclqmKQEkBhB7k7Hg==1240+ dependencies:1241+ "@rollup/pluginutils" "^3.1.0"1242+ magic-string "^0.25.7"1243+1244 "@rollup/plugin-typescript@^8.3.0":1245 version "8.3.0"1246 resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-8.3.0.tgz#bc1077fa5897b980fc27e376c4e377882c63e68b"1247 integrity sha512-I5FpSvLbtAdwJ+naznv+B4sjXZUcIvLLceYpITAn7wAP8W0wqc5noLdGIp9HGVntNhRWXctwPYrSSFQxtl0FPA==823 unmodified lines2071 integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==2072 dependencies:2073 delayed-stream "~1.0.0"2074 2075+commander@^2.20.0:2076+ version "2.20.3"2077+ resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"2078+ integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==2079+2080 commander@^8.3.0:2081 version "8.3.0"2082 resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66"2083 integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==1565 unmodified lines3649 chalk "^4.0.0"3650 jest-util "^27.4.2"3651 string-length "^4.0.1"3652 3653+jest-worker@^26.2.1:3654+ version "26.6.2"3655+ resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed"3656+ integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==3657+ dependencies:3658+ "@types/node" "*"3659+ merge-stream "^2.0.0"3660+ supports-color "^7.0.0"3661+3662 jest-worker@^27.4.5:3663 version "27.4.5"3664 resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.4.5.tgz#d696e3e46ae0f24cff3fa7195ffba22889262242"3665 integrity sha512-f2s8kEdy15cv9r7q4KkzGXvlY0JTcmCbMHZBfSQDwW77REr45IDWwd0lksDFeVHH2jJ5pqb90T77XscrjeGzzg==243 unmodified lines3909 version "1.4.4"3910 resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.4.4.tgz#c0d8eaf36059f705796e1e344811cf4c498d3a26"3911 integrity sha1-wNjq82BZ9wV5bh40SBHPTEmNOiY=3912 3913+magic-string@^0.25.7:3914+ version "0.25.7"3915+ resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051"3916+ integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==3917+ dependencies:3918+ sourcemap-codec "^1.4.4"3919+3920 make-dir@^3.0.0:3921 version "3.1.0"3922 resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f"3923 integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==383 unmodified lines4307 version "1.2.3"4308 resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"4309 integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==4310 4311+randombytes@^2.1.0:4312+ version "2.1.0"4313+ resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a"4314+ integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==4315+ dependencies:4316+ safe-buffer "^5.1.0"4317+4318 react-dom@^17.0.2:4319 version "17.0.2"4320 resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23"4321 integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==164 unmodified lines4486 "@rollup/pluginutils" "^4.1.1"4487 joycon "^3.0.1"4488 jsonc-parser "^3.0.0"4489 4490+rollup-plugin-terser@^7.0.2:4491+ version "7.0.2"4492+ resolved "https://registry.yarnpkg.com/rollup-plugin-terser/-/rollup-plugin-terser-7.0.2.tgz#e8fbba4869981b2dc35ae7e8a502d5c6c04d324d"4493+ integrity sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==4494+ dependencies:4495+ "@babel/code-frame" "^7.10.4"4496+ jest-worker "^26.2.1"4497+ serialize-javascript "^4.0.0"4498+ terser "^5.0.0"4499+4500 rollup@^2.62.0:4501 version "2.62.0"4502 resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.62.0.tgz#9e640b419fc5b9e0241844f6d55258bd79986ecc"4503 integrity sha512-cJEQq2gwB0GWMD3rYImefQTSjrPYaC6s4J9pYqnstVLJ1CHa/aZNVkD4Epuvg4iLeMA4KRiq7UM7awKK6j7jcw==20 unmodified lines4524 integrity sha512-7SQDi7xeTMCJpqViXh8gL/lebcwlp3d831F05+9B44A4B0WfsEwUQHR64gsH1kvJ+Ep/J9K2+n1hVl1CsGN23w==4525 dependencies:4526 tslib "~2.1.0"4527 4528+safe-buffer@^5.1.0:4529+ version "5.2.1"4530+ resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"4531+ integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==4532+4533 safe-buffer@~5.1.1:4534 version "5.1.2"4535 resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"4536 integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==34 unmodified lines4571 integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==4572 dependencies:4573 lru-cache "^6.0.0"4574 4575+serialize-javascript@^4.0.0:4576+ version "4.0.0"4577+ resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-4.0.0.tgz#b525e1238489a5ecfc42afacc3fe99e666f4b1aa"4578+ integrity sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==4579+ dependencies:4580+ randombytes "^2.1.0"4581+4582 shebang-command@^2.0.0:4583 version "2.0.0"4584 resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"4585 integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==71 unmodified lines4657 dependencies:4658 ansi-styles "^6.0.0"4659 is-fullwidth-code-point "^4.0.0"4660 4603-source-map-support@^0.5.6:4661+source-map-support@^0.5.6, source-map-support@~0.5.20:4662 version "0.5.21"4663 resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f"4664 integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==4665 dependencies:9 unmodified lines4675 version "0.6.1"4676 resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"4677 integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==4678 4621-source-map@^0.7.3:4679+source-map@^0.7.3, source-map@~0.7.2:4680 version "0.7.3"4681 resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383"4682 integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==4683 4684+sourcemap-codec@^1.4.4:4685+ version "1.4.8"4686+ resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4"4687+ integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==4688+4689 spawn-command@^0.0.2-1:4690 version "0.0.2-1"4691 resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0"4692 integrity sha1-YvXpRmmBwbeW3Fkpk34RycaSG9A=151 unmodified lines4844 dependencies:4845 ansi-escapes "^4.2.1"4846 supports-hyperlinks "^2.0.0"4847 4848+terser@^5.0.0:4849+ version "5.10.0"4850+ resolved "https://registry.yarnpkg.com/terser/-/terser-5.10.0.tgz#b86390809c0389105eb0a0b62397563096ddafcc"4851+ integrity sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==4852+ dependencies:4853+ commander "^2.20.0"4854+ source-map "~0.7.2"4855+ source-map-support "~0.5.20"4856+4857 test-exclude@^6.0.0:4858 version "6.0.0"4859 resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e"4860 integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==340 unmodified lines