Closed guowenfh closed 4 days ago
amd
is required in rspack 1.1.1. Reference https://github.com/web-infra-dev/rspack/pull/8369
You can add amd
to fix it and ensure the UMD output is correct:
export default defineConfig({
output: {
externals: {
"@formily/react-schema-renderer": {
root: ["Formily", "ReactSchemaRenderer"],
commonjs: ["Formily", "ReactSchemaRenderer"],
commonjs2: ["Formily", "ReactSchemaRenderer"],
+ amd: ["Formily", "ReactSchemaRenderer"],
},
},
},
});
Version
Details
rs-build 1.1.0 not working.
but rs-build 1.0.17 is working.
Reproduce link
https://codesandbox.io/p/devbox/dx7k6v
Reproduce Steps
1.run 'pnpm i &pnpm dev 2.check the error logs