Unexpected token (Note that you need plugins to import files that are not JavaScript)
file: /Users//Desktop/work/project/monitor/infusion_monitor/node_modules/.pnpm/@alifd+validate@1.2.3/node_modules/@alifd/validate/lib/main.scss?commonjs-proxy:2:15
1: import * as main from "/Users//Desktop/work/project/monitor/infusion_monitor/node_modules/.pnpm/@alifd+validate@1.2.3/node_modules/@alifd/validate/lib/main.scss"; import {getAugmentedNamespace} from "commonjsHelpers.js"; export default /*@__PURE__*/getAugmentedNamespace(main);
What is the current behavior? 发生了什么?
What is the expected behavior? 期望的结果是什么?
正常打包
Any additional comments? 相关环境信息?
module.exports = { vite: { }, hash: true, publicPath: './', postcssOptions: { plugins: { 'postcss-nested': {}, 'postcss-px2vw': { viewportWidth: 1080, viewportHeight: 1920, mediaQuery: true, }, }, }, mock: {}, plugins: [ ['build-plugin-moment-locales', { locales: ['zh-cn', 'en-au'] }], // ['build-plugin-ignore-style', { libraryName: '@alifd/theme-mxs-dark' }], ['build-plugin-keep-alive'], [ 'build-plugin-ice-i18n', { locales: ['zh-CN', 'en-US'], defaultLocale: 'en-US', // 关闭国际化路由 i18nRouting: false, // autoRedirect: true, }, ], [ 'build-plugin-fusion', { themePackage: '@alifd/theme-mxs-dark', }, ], ], };