Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex for injecting UMD helpers makes vite build terribly slow #10900

Closed
7 tasks done
Flynamic opened this issue Nov 12, 2022 · 0 comments · Fixed by #10905
Closed
7 tasks done

Regex for injecting UMD helpers makes vite build terribly slow #10900

Flynamic opened this issue Nov 12, 2022 · 0 comments · Fixed by #10905

Comments

@Flynamic
Copy link

Flynamic commented Nov 12, 2022

Describe the bug

I am currently transforming a Webpack+Vue2 project to Vite (3.2.3) and noticed that running vite build takes very long, around 12 minutes in my case. It hangs at the UMD transpilation step. We have dependencies like ant-design-vue and mathjs, so the output files are quite large. Nonetheless, the build process should scale linearly, but it doesn't seem to.

Profiling the situation gave me this statistic:

img.png

This is the INJECT_HELPERS_UMD_RE regex used in vite:esbuild-transpile, defined here:

const INJECT_HELPERS_UMD_RE =
  /^(.*)(\(function\([^)]*?\){.+amd.+function\([^)]*?\){"use strict";)/s

Most of the processing time is consumed by running that regex. So it is probably still the same problem as #8738 and #8099.

Copying the output that is to be replaced and the regex to regex101.com indeed results in a "catastrophic backtracking" error. #8110 may have reduced it, but not enough it seems.

We would like to switch to Vite for performance reasons, so this is something of a deal breaker currently.

Thanks in advance!

Reproduction

https://github.com/Flynamic/vite-reproduce-slow-regex

Steps to reproduce

Set up a Vue+Vite project with lots of heavy dependencies and build it as a umd library.

  1. git clone https://github.com/Flynamic/vite-reproduce-slow-regex && cd vite-reproduce-slow-regex
  2. npm install
  3. vite build

You should see something like the following output after a very reasonable time:

vite v3.2.3 building for production...
transforming (1512) node_modules/lodash/_arraySome.js'isMoment' is not exported by 'node_modules/moment/dist/moment.js'
Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
✓ 1568 modules transformed.
dist/reproduce-slow-regex.mjs       0.08 KiB / gzip: 0.09 KiB
dist/purify.es.ffc53232.mjs         26.43 KiB / gzip: 8.96 KiB
dist/html2canvas.esm.7d71270f.mjs   243.24 KiB / gzip: 50.66 KiB
dist/index.es.480cf1ea.mjs          198.11 KiB / gzip: 55.36 KiB
dist/style.css                      452.48 KiB / gzip: 55.55 KiB
dist/main.960a87ea.mjs              8801.67 KiB / gzip: 1915.97 KiB

and after a very unreasonable time...

dist/reproduce-slow-regex.umd.cjs   7558.89 KiB / gzip: 1890.25 KiB

System Info

System:
    OS: macOS 12.6
    CPU: (10) arm64 Apple M1 Max
    Memory: 103.55 MB / 64.00 GB
    Shell: 5.8.1 - /bin/zsh
Binaries:
    Node: 18.9.0 - /opt/homebrew/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 8.19.1 - /opt/homebrew/bin/npm
Browsers:
    Brave Browser: 107.1.45.118
    Chrome: 107.0.5304.110
    Firefox: 106.0.5
    Safari: 16.0
npmPackages:
    @vitejs/plugin-vue2: ^2.0.0 => 2.0.1
    vite: ^3.2.0 => 3.2.3

Used Package Manager

npm

Logs

Click to expand!
vite:config bundled config file loaded in 69.81ms +0ms
  vite:esbuild init tsconfck (root: /Users/keanu/Dev/kibro/vite-reproduce-slow-regex) +0ms
  vite:esbuild init tsconfck (root: /Users/keanu/Dev/kibro/vite-reproduce-slow-regex) +1ms
  vite:esbuild init tsconfck (root: /Users/keanu/Dev/kibro/vite-reproduce-slow-regex) +0ms
  vite:esbuild init tsconfck (root: /Users/keanu/Dev/kibro/vite-reproduce-slow-regex) +0ms
  vite:esbuild init tsconfck end +1ms
  vite:esbuild init tsconfck end +0ms
  vite:esbuild init tsconfck end +0ms
  vite:esbuild init tsconfck end +0ms
  vite:config using resolved config: {
  vite:config   plugins: [
  vite:config     'vite:build-metadata',
  vite:config     'vite:pre-alias',
  vite:config     'alias',
  vite:config     'vite:modulepreload-polyfill',
  vite:config     'vite:resolve',
  vite:config     'vite:html-inline-proxy',
  vite:config     'vite:css',
  vite:config     'vite:esbuild',
  vite:config     'vite:json',
  vite:config     'vite:wasm-helper',
  vite:config     'vite:worker',
  vite:config     'vite:asset',
  vite:config     'vite:vue2',
  vite:config     'vite-plugin-antdv1-momentjs-resolver',
  vite:config     'vite:wasm-fallback',
  vite:config     'vite:define',
  vite:config     'vite:css-post',
  vite:config     'vite:build-html',
  vite:config     'vite:worker-import-meta-url',
  vite:config     'vite:asset-import-meta-url',
  vite:config     'vite:force-systemjs-wrap-complete',
  vite:config     'vite:watch-package-data',
  vite:config     'commonjs',
  vite:config     'vite:data-uri',
  vite:config     'node-polyfills',
  vite:config     'vite:dynamic-import-vars',
  vite:config     'vite:import-glob',
  vite:config     'vite:build-import-analysis',
  vite:config     'vite:esbuild-transpile',
  vite:config     'vite:terser',
  vite:config     'vite:reporter',
  vite:config     'vite:load-fallback',
  vite:config     'replace'
  vite:config   ],
  vite:config   build: {
  vite:config     target: [ 'es2020', 'edge88', 'firefox78', 'chrome87', 'safari13' ],
  vite:config     cssTarget: [ 'es2020', 'edge88', 'firefox78', 'chrome87', 'safari13' ],
  vite:config     outDir: 'dist',
  vite:config     assetsDir: 'assets',
  vite:config     assetsInlineLimit: 4096,
  vite:config     cssCodeSplit: false,
  vite:config     sourcemap: false,
  vite:config     rollupOptions: { external: [Array], output: [Object], plugins: [Array] },
  vite:config     minify: 'esbuild',
  vite:config     terserOptions: {},
  vite:config     write: true,
  vite:config     emptyOutDir: null,
  vite:config     copyPublicDir: true,
  vite:config     manifest: false,
  vite:config     lib: {
  vite:config       entry: '/Users/keanu/Dev/kibro/vite-reproduce-slow-regex/lib/main.js',
  vite:config       name: 'ViteReproduceSlowRegex',
  vite:config       fileName: 'reproduce-slow-regex'
  vite:config     },
  vite:config     ssr: false,
  vite:config     ssrManifest: false,
  vite:config     reportCompressedSize: true,
  vite:config     chunkSizeWarningLimit: 500,
  vite:config     watch: null,
  vite:config     commonjsOptions: { include: [Array], extensions: [Array] },
  vite:config     dynamicImportVarsOptions: { warnOnError: true, exclude: [Array] },
  vite:config     modulePreload: { polyfill: true }
  vite:config   },
  vite:config   define: { 'process.env': {} },
  vite:config   resolve: {
  vite:config     mainFields: [ 'module', 'jsnext:main', 'jsnext' ],
  vite:config     browserField: true,
  vite:config     conditions: [],
  vite:config     extensions: [
  vite:config       '.mjs',  '.js',
  vite:config       '.mts',  '.ts',
  vite:config       '.jsx',  '.tsx',
  vite:config       '.json'
  vite:config     ],
  vite:config     dedupe: [],
  vite:config     preserveSymlinks: false,
  vite:config     alias: [
  vite:config       [Object], [Object],
  vite:config       [Object], [Object],
  vite:config       [Object], [Object],
  vite:config       [Object], [Object],
  vite:config       [Object], [Object],
  vite:config       [Object], [Object],
  vite:config       [Object], [Object]
  vite:config     ]
  vite:config   },
  vite:config   css: { preprocessorOptions: { less: [Object] } },
  vite:config   optimizeDeps: {
  vite:config     disabled: 'build',
  vite:config     force: undefined,
  vite:config     esbuildOptions: { preserveSymlinks: false, plugins: [Array] }
  vite:config   },
  vite:config   configFile: '/Users/keanu/Dev/kibro/vite-reproduce-slow-regex/vite.config.js',
  vite:config   configFileDependencies: [ '/Users/keanu/Dev/kibro/vite-reproduce-slow-regex/vite.config.js' ],
  vite:config   inlineConfig: {
  vite:config     root: undefined,
  vite:config     base: undefined,
  vite:config     mode: undefined,
  vite:config     configFile: undefined,
  vite:config     logLevel: undefined,
  vite:config     clearScreen: undefined,
  vite:config     optimizeDeps: { force: undefined },
  vite:config     build: {}
  vite:config   },
  vite:config   root: '/Users/keanu/Dev/kibro/vite-reproduce-slow-regex',
  vite:config   base: '/',
  vite:config   publicDir: '/Users/keanu/Dev/kibro/vite-reproduce-slow-regex/public',
  vite:config   cacheDir: '/Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/.vite',
  vite:config   command: 'build',
  vite:config   mode: 'production',
  vite:config   ssr: {
  vite:config     format: 'esm',
  vite:config     target: 'node',
  vite:config     optimizeDeps: { disabled: true, esbuildOptions: [Object] }
  vite:config   },
  vite:config   isWorker: false,
  vite:config   mainConfig: null,
  vite:config   isProduction: true,
  vite:config   server: {
  vite:config     preTransformRequests: true,
  vite:config     middlewareMode: false,
  vite:config     fs: { strict: true, allow: [Array], deny: [Array] }
  vite:config   },
  vite:config   preview: {
  vite:config     port: undefined,
  vite:config     strictPort: undefined,
  vite:config     host: undefined,
  vite:config     https: undefined,
  vite:config     open: undefined,
  vite:config     proxy: undefined,
  vite:config     cors: undefined,
  vite:config     headers: undefined
  vite:config   },
  vite:config   env: { BASE_URL: '/', MODE: 'production', DEV: false, PROD: true },
  vite:config   assetsInclude: [Function: assetsInclude],
  vite:config   logger: {
  vite:config     hasWarned: false,
  vite:config     info: [Function: info],
  vite:config     warn: [Function: warn],
  vite:config     warnOnce: [Function: warnOnce],
  vite:config     error: [Function: error],
  vite:config     clearScreen: [Function: clearScreen],
  vite:config     hasErrorLogged: [Function: hasErrorLogged]
  vite:config   },
  vite:config   packageCache: Map(0) { set: [Function (anonymous)] },
  vite:config   createResolver: [Function: createResolver],
  vite:config   worker: {
  vite:config     format: 'iife',
  vite:config     plugins: [
  vite:config       'vite:build-metadata',
  vite:config       'vite:pre-alias',
  vite:config       'alias',
  vite:config       'vite:modulepreload-polyfill',
  vite:config       'vite:resolve',
  vite:config       'vite:html-inline-proxy',
  vite:config       'vite:css',
  vite:config       'vite:esbuild',
  vite:config       'vite:json',
  vite:config       'vite:wasm-helper',
  vite:config       'vite:worker',
  vite:config       'vite:asset',
  vite:config       'vite:wasm-fallback',
  vite:config       'vite:define',
  vite:config       'vite:css-post',
  vite:config       'vite:build-html',
  vite:config       'vite:worker-import-meta-url',
  vite:config       'vite:asset-import-meta-url',
  vite:config       'vite:force-systemjs-wrap-complete',
  vite:config       'vite:watch-package-data',
  vite:config       'commonjs',
  vite:config       'vite:data-uri',
  vite:config       'node-polyfills',
  vite:config       'vite:dynamic-import-vars',
  vite:config       'vite:import-glob',
  vite:config       'vite:build-import-analysis',
  vite:config       'vite:esbuild-transpile',
  vite:config       'vite:terser',
  vite:config       'vite:reporter',
  vite:config       'vite:load-fallback'
  vite:config     ],
  vite:config     rollupOptions: {},
  vite:config     getSortedPlugins: [Function: getSortedPlugins],
  vite:config     getSortedPluginHooks: [Function: getSortedPluginHooks]
  vite:config   },
  vite:config   appType: 'spa',
  vite:config   experimental: { importGlobRestoreExtension: false, hmrPartialAccept: false },
  vite:config   getSortedPlugins: [Function: getSortedPlugins],
  vite:config   getSortedPluginHooks: [Function: getSortedPluginHooks]
  vite:config } +6ms
vite v3.2.3 building for production...
transforming (201) node_modules/ant-design-vue/es/tabs/tabs.js  vite:resolve 1.50ms ant-design-vue/dist/antd.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/dist/antd.less +0ms
  vite:resolve 1.74ms ~ant-design-vue/dist/antd.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/dist/antd.less +0ms
  vite:resolve 0.88ms ../lib/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/index.less +3ms
  vite:resolve 0.87ms ../lib/style/components.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/components.less +0ms
  vite:resolve 9.01ms ./themes/index -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/themes/index.less +10ms
  vite:resolve 9.04ms ./core/index -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/core/index.less +0ms
  vite:resolve 7.85ms ../affix/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/affix/style/index.less +0ms
  vite:resolve 7.85ms ../alert/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/alert/style/index.less +0ms
  vite:resolve 7.79ms ../anchor/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/anchor/style/index.less +0ms
  vite:resolve 7.77ms ../auto-complete/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/auto-complete/style/index.less +0ms
  vite:resolve 7.77ms ../avatar/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/avatar/style/index.less +0ms
  vite:resolve 7.69ms ../back-top/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/back-top/style/index.less +0ms
  vite:resolve 7.69ms ../badge/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/badge/style/index.less +0ms
  vite:resolve 8.05ms ../breadcrumb/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/breadcrumb/style/index.less +0ms
  vite:resolve 8.02ms ../button/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/button/style/index.less +0ms
  vite:resolve 7.94ms ../calendar/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/calendar/style/index.less +0ms
  vite:resolve 8.06ms ../card/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/card/style/index.less +0ms
  vite:resolve 8.09ms ../carousel/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/carousel/style/index.less +0ms
  vite:resolve 8.13ms ../cascader/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/cascader/style/index.less +1ms
  vite:resolve 8.15ms ../checkbox/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/checkbox/style/index.less +0ms
  vite:resolve 8.16ms ../collapse/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/collapse/style/index.less +0ms
  vite:resolve 8.17ms ../comment/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/comment/style/index.less +0ms
  vite:resolve 8.18ms ../config-provider/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/config-provider/style/index.less +0ms
  vite:resolve 8.52ms ../date-picker/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/date-picker/style/index.less +0ms
  vite:resolve 8.54ms ../descriptions/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/descriptions/style/index.less +0ms
  vite:resolve 8.55ms ../divider/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/divider/style/index.less +0ms
  vite:resolve 8.56ms ../drawer/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/drawer/style/index.less +0ms
  vite:resolve 8.84ms ../dropdown/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/dropdown/style/index.less +0ms
  vite:resolve 8.85ms ../empty/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/empty/style/index.less +0ms
  vite:resolve 8.80ms ../form/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/form/style/index.less +0ms
  vite:resolve 8.81ms ../form-model/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/form-model/style/index.less +0ms
  vite:resolve 8.81ms ../grid/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/grid/style/index.less +0ms
  vite:resolve 9.04ms ../icon/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/icon/style/index.less +1ms
  vite:resolve 9.05ms ../input/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/input/style/index.less +0ms
  vite:resolve 9.06ms ../input-number/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/input-number/style/index.less +0ms
  vite:resolve 9.06ms ../layout/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/layout/style/index.less +0ms
  vite:resolve 9.07ms ../list/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/list/style/index.less +0ms
  vite:resolve 9.35ms ../locale-provider/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/locale-provider/style/index.less +0ms
  vite:resolve 9.36ms ../mentions/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/mentions/style/index.less +0ms
  vite:resolve 9.37ms ../menu/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/menu/style/index.less +0ms
  vite:resolve 9.37ms ../message/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/message/style/index.less +0ms
  vite:resolve 9.38ms ../modal/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/modal/style/index.less +0ms
  vite:resolve 9.67ms ../notification/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/notification/style/index.less +0ms
  vite:resolve 9.62ms ../page-header/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/page-header/style/index.less +0ms
  vite:resolve 9.63ms ../pagination/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/pagination/style/index.less +0ms
  vite:resolve 9.64ms ../popover/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/popover/style/index.less +0ms
  vite:resolve 9.96ms ../progress/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/progress/style/index.less +1ms
  vite:resolve 9.97ms ../radio/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/radio/style/index.less +0ms
  vite:resolve 9.97ms ../rate/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/rate/style/index.less +0ms
  vite:resolve 9.98ms ../result/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/result/style/index.less +0ms
  vite:resolve 9.99ms ../select/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/select/style/index.less +0ms
  vite:resolve 10.25ms ../skeleton/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/skeleton/style/index.less +0ms
  vite:resolve 10.26ms ../slider/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/slider/style/index.less +0ms
  vite:resolve 10.27ms ../space/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/space/style/index.less +0ms
  vite:resolve 10.28ms ../spin/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/spin/style/index.less +0ms
  vite:resolve 10.29ms ../statistic/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/statistic/style/index.less +0ms
  vite:resolve 10.52ms ../steps/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/steps/style/index.less +0ms
  vite:resolve 10.53ms ../switch/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/switch/style/index.less +0ms
  vite:resolve 10.54ms ../table/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/table/style/index.less +0ms
  vite:resolve 10.57ms ../tabs/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/tabs/style/index.less +0ms
  vite:resolve 10.59ms ../tag/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/tag/style/index.less +0ms
  vite:resolve 11.01ms ../time-picker/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/time-picker/style/index.less +1ms
  vite:resolve 11.03ms ../timeline/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/timeline/style/index.less +0ms
  vite:resolve 11.06ms ../tooltip/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/tooltip/style/index.less +0ms
  vite:resolve 11.08ms ../transfer/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/transfer/style/index.less +0ms
  vite:resolve 11.10ms ../tree/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/tree/style/index.less +0ms
  vite:resolve 11.43ms ../tree-select/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/tree-select/style/index.less +0ms
  vite:resolve 11.45ms ../upload/style/index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/upload/style/index.less +0ms
  vite:resolve 58.79ms ./default.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/themes/default.less +69ms
  vite:resolve 58.74ms ../mixins/index -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/index.less +0ms
  vite:resolve 58.75ms base -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/core/base.less +0ms
  vite:resolve 58.75ms iconfont -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/core/iconfont.less +0ms
  vite:resolve 58.77ms motion -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/core/motion.less +0ms
  vite:resolve 57.81ms ../../style/themes/index -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/themes/index.less +0ms
  vite:resolve 55.70ms ../../style/mixins/index -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/index.less +0ms
  vite:resolve 54.30ms ../../input/style/mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/input/style/mixin.less +0ms
  vite:resolve 85.87ms ./responsive -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/back-top/style/responsive.less +86ms
  vite:resolve 85.67ms ./mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/button/style/mixin.less +0ms
  vite:resolve 85.27ms ./size -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/card/style/size.less +0ms
  vite:resolve 84.94ms ./mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/checkbox/style/mixin.less +0ms
  vite:resolve 84.83ms ../../button/style/mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/button/style/mixin.less +0ms
  vite:resolve 84.84ms Picker -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/date-picker/style/Picker.less +0ms
  vite:resolve 84.84ms Calendar -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/date-picker/style/Calendar.less +0ms
  vite:resolve 84.85ms RangePicker -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/date-picker/style/RangePicker.less +0ms
  vite:resolve 84.87ms TimePicker -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/date-picker/style/TimePicker.less +0ms
  vite:resolve 84.88ms MonthPanel -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/date-picker/style/MonthPanel.less +0ms
  vite:resolve 84.89ms YearPanel -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/date-picker/style/YearPanel.less +0ms
  vite:resolve 84.90ms DecadePanel -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/date-picker/style/DecadePanel.less +0ms
  vite:resolve 85.25ms MonthPicker -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/date-picker/style/MonthPicker.less +1ms
  vite:resolve 85.29ms WeekPicker -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/date-picker/style/WeekPicker.less +0ms
  vite:resolve 85.30ms ../../style/themes/default -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/themes/default.less +0ms
  vite:resolve 85.17ms ./drawer -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/drawer/style/drawer.less +0ms
  vite:resolve 84.99ms ../../grid/style/mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/grid/style/mixin.less +0ms
  vite:resolve 85.11ms ./mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/form/style/mixin.less +0ms
  vite:resolve 84.60ms ./mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/form-model/style/mixin.less +0ms
  vite:resolve 84.06ms ./mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/grid/style/mixin.less +0ms
  vite:resolve 84.07ms ./mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/input/style/mixin.less +0ms
  vite:resolve 84.06ms ./search-input -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/input/style/search-input.less +0ms
  vite:resolve 83.93ms ./light -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/layout/style/light.less +0ms
  vite:resolve 83.94ms ./bordered -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/list/style/bordered.less +0ms
  vite:resolve 83.95ms ./responsive -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/list/style/responsive.less +0ms
  vite:resolve 83.77ms ./dark -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/menu/style/dark.less +0ms
  vite:resolve 83.75ms ./modal -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/modal/style/modal.less +1ms
  vite:resolve 83.76ms ./confirm -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/modal/style/confirm.less +0ms
  vite:resolve 83.07ms custom-icon -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/steps/style/custom-icon.less +0ms
  vite:resolve 83.08ms small -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/steps/style/small.less +0ms
  vite:resolve 83.08ms vertical -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/steps/style/vertical.less +0ms
  vite:resolve 83.09ms label-placement -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/steps/style/label-placement.less +0ms
  vite:resolve 83.10ms progress-dot -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/steps/style/progress-dot.less +0ms
  vite:resolve 83.14ms nav -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/steps/style/nav.less +0ms
  vite:resolve 83.15ms compatibility -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/steps/style/compatibility.less +0ms
  vite:resolve 82.78ms ./size -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/table/style/size.less +0ms
  vite:resolve 82.78ms ./card-style -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/tabs/style/card-style.less +0ms
  vite:resolve 82.38ms ../../checkbox/style/mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/checkbox/style/mixin.less +0ms
  vite:resolve 82.55ms ./customize.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/transfer/style/customize.less +1ms
  vite:resolve 82.50ms ./mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/tree/style/mixin.less +0ms
  vite:resolve 82.51ms ./directory -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/tree/style/directory.less +0ms
  vite:resolve 82.39ms ../../tree/style/mixin -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/tree/style/mixin.less +0ms
  vite:resolve 16.92ms ../color/colors -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/color/colors.less +23ms
  vite:resolve 16.85ms size -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/size.less +0ms
  vite:resolve 16.86ms compatibility -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/compatibility.less +0ms
  vite:resolve 16.87ms clearfix -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/clearfix.less +0ms
  vite:resolve 16.87ms iconfont -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/iconfont.less +0ms
  vite:resolve 16.88ms motion -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/motion.less +0ms
  vite:resolve 16.89ms reset -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/reset.less +0ms
  vite:resolve 16.89ms operation-unit -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/operation-unit.less +0ms
  vite:resolve 16.89ms typography -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/typography.less +0ms
  vite:resolve 16.47ms ../themes/index -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/themes/index.less +0ms
  vite:resolve 16.47ms ../mixins/iconfont -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/iconfont.less +0ms
  vite:resolve 16.41ms ../mixins/motion -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/mixins/motion.less +0ms
  vite:resolve 16.42ms motion/fade -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/core/motion/fade.less +0ms
  vite:resolve 16.42ms motion/move -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/core/motion/move.less +0ms
  vite:resolve 16.73ms motion/other -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/core/motion/other.less +1ms
  vite:resolve 16.74ms motion/slide -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/core/motion/slide.less +0ms
  vite:resolve 16.75ms motion/swing -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/core/motion/swing.less +0ms
  vite:resolve 16.75ms motion/zoom -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/core/motion/zoom.less +0ms
  vite:resolve 4.59ms ./index.less -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/transfer/style/index.less +23ms
  vite:resolve 7.74ms colorPalette -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/color/colorPalette.less +8ms
  vite:resolve 0.38ms bezierEasing -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/color/bezierEasing.less +2ms
  vite:resolve 0.40ms tinyColor -> /Users/keanu/Dev/kibro/vite-reproduce-slow-regex/node_modules/ant-design-vue/lib/style/color/tinyColor.less +0ms
transforming (1557) node_modules/lodash/_createBaseEach.js'isMoment' is not exported by 'node_modules/moment/dist/moment.js'
Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
✓ 1568 modules transformed.
dist/reproduce-slow-regex.mjs       0.08 KiB / gzip: 0.09 KiB
dist/purify.es.ffc53232.mjs         26.43 KiB / gzip: 8.96 KiB
dist/html2canvas.esm.7d71270f.mjs   243.24 KiB / gzip: 50.66 KiB
dist/index.es.480cf1ea.mjs          198.11 KiB / gzip: 55.36 KiB
dist/style.css                      452.48 KiB / gzip: 55.55 KiB
dist/main.960a87ea.mjs              8801.67 KiB / gzip: 1915.97 KiB
dist/reproduce-slow-regex.umd.cjs   7558.89 KiB / gzip: 1890.25 KiB

Validations

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant