mirror of https://github.com/alibaba/ice.git
fix: browsers compatibility of dataLoader (#6522)
This commit is contained in:
parent
a04cc00242
commit
cec448c36a
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@ice/app': patch
|
||||
---
|
||||
|
||||
fix: browsers compatibility of dataLoader
|
||||
|
|
@ -38,7 +38,8 @@ type ServerCompilerBuildOptions = Pick<
|
|||
'plugins' |
|
||||
'logLevel' |
|
||||
'sourcemap' |
|
||||
'metafile'
|
||||
'metafile' |
|
||||
'supported'
|
||||
>;
|
||||
|
||||
export type ServerBuildResult =
|
||||
|
|
|
|||
|
|
@ -55,6 +55,10 @@ export default class DataLoaderPlugin {
|
|||
target: 'es6', // should not set to esnext, https://github.com/alibaba/ice/issues/5830
|
||||
format: 'iife',
|
||||
entryPoints: [filePath],
|
||||
supported: {
|
||||
// Do not wrap arrow function when format as IIFE.
|
||||
arrow: false,
|
||||
},
|
||||
write: false,
|
||||
logLevel: 'silent', // The main server compile process will log it.
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue