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

plugin-legacy doesn't work #7940

Closed
7 tasks done
guguji5 opened this issue Apr 28, 2022 · 4 comments
Closed
7 tasks done

plugin-legacy doesn't work #7940

guguji5 opened this issue Apr 28, 2022 · 4 comments
Labels
invalid This doesn't seem right

Comments

@guguji5
Copy link

guguji5 commented Apr 28, 2022

Describe the bug

I set build: {polyfillModulePreload: true,target: 'chrome58'} in vite.config.ts, but TypeError: a.replaceAll is not a function throw at chrome84.
image

Reproduction

https://github.com/n9e/fe-v5

System Info

System:
    OS: macOS 12.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 111.06 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.14.0 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.3.1 - /usr/local/bin/npm
  Browsers:
    Safari: 15.2
  npmPackages:
    @vitejs/plugin-react-refresh: ^1.3.1 => 1.3.3 
    vite: ^2.9.0 => 2.9.6

Used Package Manager

npm

Logs

> [email protected] build
> tsc && vite build --debug

  vite:config bundled config file loaded in 102.17ms +0ms
  vite:config using resolved config: {
  vite:config   plugins: [
  vite:config     'vite:build-metadata',
  vite:config     'alias',
  vite:config     'react-refresh',
  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',
  vite:config     'vite:worker',
  vite:config     'vite:asset',
  vite:config     'react-markdown',
  vite:config     'react-svg',
  vite:config     'vite:define',
  vite:config     'vite:css-post',
  vite:config     'vite:build-html',
  vite:config     'vite:worker-import-meta-url',
  vite:config     'vite:watch-package-data',
  vite:config     'commonjs',
  vite:config     'vite:data-uri',
  vite:config     'rollup-plugin-dynamic-import-variables',
  vite:config     'vite:asset-import-meta-url',
  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   define: {},
  vite:config   resolve: { dedupe: undefined, alias: [ [Object], [Object], [Object] ] },
  vite:config   server: {
  vite:config     preTransformRequests: true,
  vite:config     proxy: { '/api/n9e': [Object], '/api/v1/': [Object] },
  vite:config     fs: { strict: true, allow: [Array], deny: [Array] }
  vite:config   },
  vite:config   build: {
  vite:config     target: 'chrome58',
  vite:config     polyfillModulePreload: true,
  vite:config     outDir: 'pub',
  vite:config     assetsDir: 'assets',
  vite:config     assetsInlineLimit: 4096,
  vite:config     cssCodeSplit: true,
  vite:config     cssTarget: 'chrome58',
  vite:config     sourcemap: false,
  vite:config     rollupOptions: { output: [Object] },
  vite:config     minify: 'esbuild',
  vite:config     terserOptions: {},
  vite:config     write: true,
  vite:config     emptyOutDir: null,
  vite:config     manifest: false,
  vite:config     lib: false,
  vite:config     ssr: false,
  vite:config     ssrManifest: false,
  vite:config     reportCompressedSize: true,
  vite:config     chunkSizeWarningLimit: 650,
  vite:config     watch: null,
  vite:config     commonjsOptions: { include: [Array], extensions: [Array] },
  vite:config     dynamicImportVarsOptions: { warnOnError: true, exclude: [Array] }
  vite:config   },
  vite:config   css: { preprocessorOptions: { less: [Object] } },
  vite:config   configFile: '/Users/flashcat/JavaScript/fe-v5/vite.config.ts',
  vite:config   configFileDependencies: [
  vite:config     '/Users/flashcat/JavaScript/fe-v5/plugins/md.ts',
  vite:config     '/Users/flashcat/JavaScript/fe-v5/vite.config.ts'
  vite:config   ],
  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     build: {}
  vite:config   },
  vite:config   root: '/Users/flashcat/JavaScript/fe-v5',
  vite:config   base: '/',
  vite:config   publicDir: '/Users/flashcat/JavaScript/fe-v5/public',
  vite:config   cacheDir: '/Users/flashcat/JavaScript/fe-v5/node_modules/.vite',
  vite:config   command: 'build',
  vite:config   mode: 'production',
  vite:config   isWorker: false,
  vite:config   isProduction: true,
  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: { '/api/n9e': [Object], '/api/v1/': [Object] },
  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   optimizeDeps: {
  vite:config     esbuildOptions: { keepNames: undefined, preserveSymlinks: undefined }
  vite:config   },
  vite:config   worker: {
  vite:config     format: 'iife',
  vite:config     plugins: [
  vite:config       [Object], [Object], [Object],
  vite:config       [Object], [Object], [Object],
  vite:config       [Object], [Object], [Object],
  vite:config       [Object], [Object], [Object],
  vite:config       [Object], [Object], [Object],
  vite:config       [Object], [Object], [Object],
  vite:config       [Object], [Object], [Object],
  vite:config       [Object], [Object], [Object],
  vite:config       [Object]
  vite:config     ],
  vite:config     rollupOptions: {}
  vite:config   }
  vite:config } +12ms
vite v2.9.6 building for production...
transforming (100) node_modules/antd/es/pagination/index.js  vite:resolve 0.17ms /src/global.variable.less -> /Users/flashcat/JavaScript/fe-v5/src/global.variable.less +0ms
transforming (112) node_modules/antd/es/select/index.js  vite:resolve 0.16ms ../lib/style/default.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/default.less +43ms
  vite:resolve 0.23ms ../lib/style/components.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/components.less +0ms
  vite:resolve 3.96ms ./index -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/index.less +6ms
  vite:resolve 3.22ms ../affix/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/affix/style/index-pure.less +0ms
  vite:resolve 3.23ms ../alert/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/alert/style/index-pure.less +0ms
  vite:resolve 3.19ms ../anchor/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/anchor/style/index-pure.less +0ms
  vite:resolve 3.25ms ../auto-complete/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/auto-complete/style/index-pure.less +0ms
  vite:resolve 3.27ms ../avatar/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/avatar/style/index-pure.less +0ms
  vite:resolve 3.22ms ../back-top/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/back-top/style/index-pure.less +0ms
  vite:resolve 3.23ms ../badge/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/badge/style/index-pure.less +0ms
  vite:resolve 3.16ms ../breadcrumb/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/breadcrumb/style/index-pure.less +0ms
  vite:resolve 3.09ms ../button/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/button/style/index-pure.less +0ms
  vite:resolve 3.10ms ../calendar/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/calendar/style/index-pure.less +0ms
  vite:resolve 3.16ms ../card/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/card/style/index-pure.less +0ms
  vite:resolve 3.18ms ../carousel/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/carousel/style/index-pure.less +0ms
  vite:resolve 3.19ms ../cascader/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/cascader/style/index-pure.less +0ms
  vite:resolve 3.20ms ../checkbox/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/checkbox/style/index-pure.less +0ms
  vite:resolve 3.21ms ../collapse/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/collapse/style/index-pure.less +0ms
  vite:resolve 3.22ms ../comment/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/comment/style/index-pure.less +0ms
  vite:resolve 3.23ms ../config-provider/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/config-provider/style/index-pure.less +0ms
  vite:resolve 3.25ms ../date-picker/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/date-picker/style/index-pure.less +0ms
  vite:resolve 3.25ms ../descriptions/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/descriptions/style/index-pure.less +0ms
  vite:resolve 3.26ms ../divider/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/divider/style/index-pure.less +0ms
  vite:resolve 3.27ms ../drawer/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/drawer/style/index-pure.less +0ms
  vite:resolve 3.28ms ../dropdown/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/dropdown/style/index-pure.less +0ms
  vite:resolve 3.29ms ../empty/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/empty/style/index-pure.less +0ms
  vite:resolve 3.30ms ../form/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/form/style/index-pure.less +0ms
  vite:resolve 3.31ms ../grid/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/grid/style/index-pure.less +0ms
  vite:resolve 3.32ms ../icon/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/icon/style/index-pure.less +0ms
  vite:resolve 3.33ms ../image/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/image/style/index-pure.less +0ms
  vite:resolve 3.34ms ../input/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/input/style/index-pure.less +0ms
  vite:resolve 3.34ms ../input-number/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/input-number/style/index-pure.less +0ms
  vite:resolve 3.35ms ../layout/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/layout/style/index-pure.less +0ms
  vite:resolve 3.36ms ../list/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/list/style/index-pure.less +0ms
  vite:resolve 3.35ms ../locale-provider/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/locale-provider/style/index-pure.less +0ms
  vite:resolve 3.36ms ../mentions/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/mentions/style/index-pure.less +0ms
  vite:resolve 3.37ms ../menu/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/menu/style/index-pure.less +0ms
  vite:resolve 3.38ms ../message/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/message/style/index-pure.less +0ms
  vite:resolve 3.39ms ../modal/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/modal/style/index-pure.less +0ms
  vite:resolve 3.40ms ../notification/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/notification/style/index-pure.less +1ms
  vite:resolve 3.41ms ../page-header/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/page-header/style/index-pure.less +0ms
  vite:resolve 3.42ms ../pagination/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/pagination/style/index-pure.less +0ms
  vite:resolve 3.61ms ../popconfirm/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/popconfirm/style/index-pure.less +0ms
  vite:resolve 3.62ms ../popover/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/popover/style/index-pure.less +0ms
  vite:resolve 3.63ms ../progress/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/progress/style/index-pure.less +0ms
  vite:resolve 3.64ms ../radio/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/radio/style/index-pure.less +0ms
  vite:resolve 3.58ms ../rate/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/rate/style/index-pure.less +0ms
  vite:resolve 3.59ms ../result/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/result/style/index-pure.less +0ms
  vite:resolve 3.59ms ../select/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/select/style/index-pure.less +0ms
  vite:resolve 3.60ms ../skeleton/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/skeleton/style/index-pure.less +0ms
  vite:resolve 3.61ms ../slider/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/slider/style/index-pure.less +0ms
  vite:resolve 3.62ms ../space/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/space/style/index-pure.less +0ms
  vite:resolve 3.63ms ../spin/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/spin/style/index-pure.less +0ms
  vite:resolve 3.64ms ../statistic/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/statistic/style/index-pure.less +0ms
  vite:resolve 3.64ms ../steps/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/steps/style/index-pure.less +0ms
  vite:resolve 3.65ms ../switch/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/switch/style/index-pure.less +0ms
  vite:resolve 3.66ms ../table/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/table/style/index-pure.less +0ms
  vite:resolve 3.67ms ../tabs/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tabs/style/index-pure.less +0ms
  vite:resolve 3.68ms ../tag/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tag/style/index-pure.less +0ms
  vite:resolve 3.69ms ../time-picker/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/time-picker/style/index-pure.less +0ms
  vite:resolve 3.70ms ../timeline/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/timeline/style/index-pure.less +0ms
  vite:resolve 3.70ms ../tooltip/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tooltip/style/index-pure.less +0ms
  vite:resolve 3.71ms ../transfer/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/transfer/style/index-pure.less +0ms
  vite:resolve 3.72ms ../tree/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tree/style/index-pure.less +0ms
  vite:resolve 3.73ms ../tree-select/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tree-select/style/index-pure.less +0ms
  vite:resolve 3.74ms ../typography/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/typography/style/index-pure.less +0ms
  vite:resolve 3.76ms ../upload/style/index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/upload/style/index-pure.less +0ms
  vite:resolve 47.56ms ./index-pure.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/index-pure.less +61ms
  vite:resolve 47.50ms ../../style/themes/index -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/themes/index.less +0ms
  vite:resolve 46.80ms ../../style/mixins/index -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/index.less +0ms
  vite:resolve 46.74ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/alert/style/rtl.less +0ms
  vite:resolve 46.44ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/anchor/style/rtl.less +0ms
  vite:resolve 46.35ms ../../input/style/mixin -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/input/style/mixin.less +0ms
  vite:resolve 45.64ms ./group -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/avatar/style/group.less +0ms
  vite:resolve 45.65ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/avatar/style/rtl.less +0ms
  vite:resolve 45.42ms ./responsive -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/back-top/style/responsive.less +0ms
  vite:resolve 43.41ms ./ribbon -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/badge/style/ribbon.less +0ms
  vite:resolve 43.39ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/badge/style/rtl.less +0ms
  vite:resolve 43.06ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/breadcrumb/style/rtl.less +0ms
  vite:resolve 42.22ms ./mixin -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/button/style/mixin.less +0ms
  vite:resolve 42.11ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/button/style/rtl.less +0ms
  vite:resolve 41.30ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/calendar/style/rtl.less +0ms
  vite:resolve 38.16ms ./size -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/card/style/size.less +0ms
  vite:resolve 37.31ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/carousel/style/rtl.less +0ms
  vite:resolve 37.03ms ../../checkbox/style/mixin -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/checkbox/style/mixin.less +0ms
  vite:resolve 36.84ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/cascader/style/rtl.less +0ms
  vite:resolve 36.81ms ./mixin -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/checkbox/style/mixin.less +0ms
  vite:resolve 36.81ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/checkbox/style/rtl.less +0ms
  vite:resolve 35.85ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/collapse/style/rtl.less +0ms
  vite:resolve 35.51ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/comment/style/rtl.less +0ms
  vite:resolve 34.36ms ./panel -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/date-picker/style/panel.less +1ms
  vite:resolve 34.36ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/date-picker/style/rtl.less +0ms
  vite:resolve 33.95ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/descriptions/style/rtl.less +0ms
  vite:resolve 33.69ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/divider/style/rtl.less +0ms
  vite:resolve 33.65ms ./drawer -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/drawer/style/drawer.less +0ms
  vite:resolve 33.65ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/drawer/style/rtl.less +0ms
  vite:resolve 32.59ms ./status -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/dropdown/style/status.less +0ms
  vite:resolve 32.48ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/dropdown/style/rtl.less +0ms
  vite:resolve 25.06ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/empty/style/rtl.less +34ms
  vite:resolve 25.10ms ../../button/style/mixin -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/button/style/mixin.less +0ms
  vite:resolve 25.11ms ../../grid/style/mixin -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/grid/style/mixin.less +0ms
  vite:resolve 25.12ms ./components -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/form/style/components.less +0ms
  vite:resolve 25.12ms ./inline -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/form/style/inline.less +0ms
  vite:resolve 25.13ms ./horizontal -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/form/style/horizontal.less +0ms
  vite:resolve 25.13ms ./vertical -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/form/style/vertical.less +0ms
  vite:resolve 25.46ms ./status -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/form/style/status.less +0ms
  vite:resolve 25.47ms ./mixin -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/form/style/mixin.less +0ms
  vite:resolve 25.37ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/form/style/rtl.less +0ms
  vite:resolve 25.37ms ./mixin -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/grid/style/mixin.less +0ms
  vite:resolve 25.34ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/grid/style/rtl.less +0ms
  vite:resolve 25.29ms ./mixin -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/input/style/mixin.less +0ms
  vite:resolve 25.30ms ./affix -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/input/style/affix.less +0ms
  vite:resolve 25.30ms ./allow-clear -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/input/style/allow-clear.less +0ms
  vite:resolve 25.29ms ./search-input -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/input/style/search-input.less +0ms
  vite:resolve 25.30ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/input/style/rtl.less +0ms
  vite:resolve 25.30ms ./IE11 -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/input/style/IE11.less +0ms
  vite:resolve 25.30ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/input-number/style/rtl.less +0ms
  vite:resolve 25.30ms ./light -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/layout/style/light.less +0ms
  vite:resolve 25.30ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/layout/style/rtl.less +0ms
  vite:resolve 25.31ms ./customize.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/list/style/customize.less +0ms
  vite:resolve 25.25ms ./bordered -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/list/style/bordered.less +0ms
  vite:resolve 25.26ms ./responsive -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/list/style/responsive.less +1ms
  vite:resolve 25.26ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/list/style/rtl.less +0ms
  vite:resolve 25.23ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/mentions/style/rtl.less +0ms
  vite:resolve 25.23ms ./status -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/menu/style/status.less +0ms
  vite:resolve 24.74ms ./light -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/menu/style/light.less +0ms
  vite:resolve 24.75ms ./dark -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/menu/style/dark.less +0ms
  vite:resolve 24.75ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/menu/style/rtl.less +0ms
  vite:resolve 24.74ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/message/style/rtl.less +0ms
  vite:resolve 24.74ms ./modal -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/modal/style/modal.less +0ms
  vite:resolve 24.74ms ./confirm -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/modal/style/confirm.less +0ms
  vite:resolve 24.75ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/modal/style/rtl.less +0ms
  vite:resolve 24.70ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/notification/style/rtl.less +0ms
  vite:resolve 24.67ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/page-header/style/rtl.less +0ms
  vite:resolve 24.52ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/pagination/style/rtl.less +0ms
  vite:resolve 24.43ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/popover/style/rtl.less +0ms
  vite:resolve 24.37ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/progress/style/rtl.less +0ms
  vite:resolve 24.29ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/radio/style/rtl.less +0ms
  vite:resolve 24.26ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/rate/style/rtl.less +0ms
  vite:resolve 24.24ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/result/style/rtl.less +0ms
  vite:resolve 24.24ms ./single -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/select/style/single.less +0ms
  vite:resolve 24.25ms ./multiple -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/select/style/multiple.less +0ms
  vite:resolve 24.18ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/select/style/rtl.less +0ms
  vite:resolve 24.10ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/skeleton/style/rtl.less +0ms
  vite:resolve 24.05ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/slider/style/rtl.less +0ms
  vite:resolve 24.04ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/space/style/rtl.less +0ms
  vite:resolve 24.04ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/spin/style/rtl.less +0ms
  vite:resolve 24.04ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/statistic/style/rtl.less +0ms
  vite:resolve 23.97ms ./custom-icon -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/steps/style/custom-icon.less +0ms
  vite:resolve 23.97ms ./small -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/steps/style/small.less +0ms
  vite:resolve 23.98ms ./vertical -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/steps/style/vertical.less +0ms
  vite:resolve 24.02ms ./label-placement -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/steps/style/label-placement.less +0ms
  vite:resolve 24.05ms ./progress-dot -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/steps/style/progress-dot.less +0ms
  vite:resolve 24.06ms ./nav -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/steps/style/nav.less +0ms
  vite:resolve 24.06ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/steps/style/rtl.less +0ms
  vite:resolve 24.07ms ./progress.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/steps/style/progress.less +0ms
  vite:resolve 24.03ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/switch/style/rtl.less +0ms
  vite:resolve 24.03ms ./size -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/table/style/size.less +0ms
  vite:resolve 24.04ms ./bordered -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/table/style/bordered.less +0ms
  vite:resolve 23.82ms ./radius -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/table/style/radius.less +0ms
  vite:resolve 23.82ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/table/style/rtl.less +0ms
  vite:resolve 23.82ms ./size -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tabs/style/size.less +0ms
  vite:resolve 23.83ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tabs/style/rtl.less +0ms
  vite:resolve 23.83ms ./position -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tabs/style/position.less +0ms
  vite:resolve 23.84ms ./dropdown -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tabs/style/dropdown.less +0ms
  vite:resolve 23.85ms ./card -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tabs/style/card.less +0ms
  vite:resolve 23.74ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tag/style/rtl.less +0ms
  vite:resolve 23.71ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/timeline/style/rtl.less +0ms
  vite:resolve 23.65ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tooltip/style/rtl.less +0ms
  vite:resolve 23.72ms ./customize -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/transfer/style/customize.less +0ms
  vite:resolve 23.68ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/transfer/style/rtl.less +0ms
  vite:resolve 23.69ms ./mixin -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tree/style/mixin.less +0ms
  vite:resolve 23.69ms ./directory -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tree/style/directory.less +0ms
  vite:resolve 23.69ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tree/style/rtl.less +0ms
  vite:resolve 23.69ms ../../tree/style/mixin -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/tree/style/mixin.less +0ms
  vite:resolve 23.60ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/typography/style/rtl.less +1ms
  vite:resolve 23.42ms ./rtl -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/upload/style/rtl.less +0ms
  vite:resolve 23.38ms ./themes/index -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/themes/index.less +0ms
  vite:resolve 23.39ms ./core/index -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/core/index.less +0ms
  vite:resolve 23.30ms size -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/size.less +0ms
  vite:resolve 23.30ms compatibility -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/compatibility.less +0ms
  vite:resolve 23.30ms clearfix -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/clearfix.less +0ms
  vite:resolve 23.31ms iconfont -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/iconfont.less +0ms
  vite:resolve 23.31ms typography -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/typography.less +0ms
  vite:resolve 23.32ms customize -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/customize.less +0ms
  vite:resolve 23.32ms box -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/box.less +0ms
  vite:resolve 23.33ms modal-mask -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/modal-mask.less +0ms
  vite:resolve 23.34ms motion -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/motion.less +0ms
  vite:resolve 23.36ms reset -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/reset.less +0ms
  vite:resolve 23.38ms operation-unit -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/operation-unit.less +0ms
  vite:resolve 5.45ms ../mixins/index -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/index.less +43ms
  vite:resolve 5.50ms base -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/core/base.less +1ms
  vite:resolve 5.51ms global -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/core/global.less +0ms
  vite:resolve 5.51ms iconfont -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/core/iconfont.less +0ms
  vite:resolve 5.52ms motion -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/core/motion.less +0ms
  vite:resolve 0.45ms ../themes/index -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/themes/index.less +7ms
  vite:resolve 0.48ms ../mixins/iconfont -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/mixins/iconfont.less +0ms
  vite:resolve 0.43ms motion/fade -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/core/motion/fade.less +0ms
  vite:resolve 0.44ms motion/move -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/core/motion/move.less +0ms
  vite:resolve 0.44ms motion/other -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/core/motion/other.less +0ms
  vite:resolve 0.45ms motion/slide -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/core/motion/slide.less +0ms
  vite:resolve 0.46ms motion/zoom -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/core/motion/zoom.less +0ms
  vite:resolve 0.11ms ./default.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/themes/default.less +5ms
  vite:resolve 0.22ms ../color/colors -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/color/colors.less +8ms
  vite:resolve 0.11ms colorPalette -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/color/colorPalette.less +3ms
  vite:resolve 0.18ms bezierEasing -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/color/bezierEasing.less +0ms
  vite:resolve 0.19ms tinyColor -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/lib/style/color/tinyColor.less +0ms
transforming (167) node_modules/html-parse-stringify/dist/html-parse-stringify.module.jsBrowserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
transforming (437) src/pages/demo/index.tsx  vite:resolve 0.27ms @/global.variable.less -> /Users/flashcat/JavaScript/fe-v5/src/global.variable.less +2s
transforming (2034) node_modules/@ant-design/icons-svg/es/asn/CloseSquareFilled.js  vite:resolve 2.15ms ../../style/index.less -> /Users/flashcat/JavaScript/fe-v5/src/components/Dantd/components/style/index.less +2s
  vite:resolve 2.19ms antd/es/style/themes/default.less -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/es/style/themes/default.less +0ms
  vite:resolve 2.20ms ../../query-form/style/index.less -> /Users/flashcat/JavaScript/fe-v5/src/components/Dantd/components/query-form/style/index.less +0ms
  vite:resolve 4.68ms ./mixins.less -> /Users/flashcat/JavaScript/fe-v5/src/components/Dantd/components/style/mixins.less +6ms
  vite:resolve 4.71ms ./antd-extension.less -> /Users/flashcat/JavaScript/fe-v5/src/components/Dantd/components/style/antd-extension.less +0ms
  vite:resolve 4.73ms ./variable.less -> /Users/flashcat/JavaScript/fe-v5/src/components/Dantd/components/style/variable.less +0ms
  vite:resolve 1.07ms ../color/colors -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/es/style/color/colors.less +0ms
  vite:resolve 0.11ms colorPalette -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/es/style/color/colorPalette.less +2ms
  vite:resolve 0.13ms bezierEasing -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/es/style/color/bezierEasing.less +1ms
  vite:resolve 0.15ms tinyColor -> /Users/flashcat/JavaScript/fe-v5/node_modules/antd/es/style/color/tinyColor.less +0ms
✓ 2 modules transformed.
✓ 5762 modules transformed.
pub/assets/favicon.1b0d60b0.ico       8.63 KiB
pub/assets/system-info.5969ff2c.svg   1.86 KiB
pub/assets/worker.43826c6b.js         2.26 KiB
pub/index.html                        1.37 KiB
pub/assets/index.1db26d65.css         567.97 KiB / gzip: 73.57 KiB
pub/assets/vendor2.b6cc70c4.js        407.38 KiB / gzip: 114.54 KiB
pub/assets/vendor1.f3fe1b11.js        400.42 KiB / gzip: 130.21 KiB
pub/assets/antdChunk.b7b47b50.js      705.28 KiB / gzip: 220.54 KiB
pub/assets/vendor.bc04c831.js         823.63 KiB / gzip: 265.32 KiB
pub/assets/index.18451065.js          1947.94 KiB / gzip: 554.09 KiB

(!) Some chunks are larger than 650 KiB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.

Validations

@sapphi-red
Copy link
Member

polyfillModulePreload is a polyfill for modulepreload. https://vitejs.dev/config/#build-polyfillmodulepreload
String::replaceAll is not supported at Chrome 84.
Vite does not include polyfills automatically.
If you want to include polyfill, use plugin-legacy or include it manually.

@sapphi-red sapphi-red added invalid This doesn't seem right and removed pending triage labels Apr 28, 2022
@guguji5
Copy link
Author

guguji5 commented Apr 29, 2022

@sapphi-red I config the plugin-legacy as below, but it still doesn't work, I just want to add the replaceAll polyfill

export default defineConfig({
  plugins: [
    legacy({ targets: ['Chrome 63'], modernPolyfills: true, polyfills: ['es.string.replace', 'esnext.string.replace-all'] }),
  ],
  build: {
    target: 'chrome63',
  }
}

@guguji5 guguji5 changed the title polyfillModulePreload doesn't work plugin-legacy doesn't work Apr 29, 2022
@sapphi-red
Copy link
Member

@guguji5 You need to change modernPolyfills.

export default defineConfig({
  plugins: [
    legacy({ targets: ['Chrome 63'], modernPolyfills: ['es.string.replace', 'esnext.string.replace-all'], polyfills: ['es.string.replace', 'esnext.string.replace-all'] }),
  ],
  build: {
    target: 'chrome63',
  }
}

@guguji5
Copy link
Author

guguji5 commented May 1, 2022

@sapphi-red it works as expect, thank you

@github-actions github-actions bot locked and limited conversation to collaborators May 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants