diff --git a/packages/48tools/sweet.config.ts b/packages/48tools/sweet.config.ts index 4b0997d9..a410de5d 100644 --- a/packages/48tools/sweet.config.ts +++ b/packages/48tools/sweet.config.ts @@ -81,7 +81,7 @@ const externalsName: Array = nodeModules([ export default function(info: object): Record { const plugins: Array = [ - '@babel/plugin-syntax-import-assertions', + ['@babel/plugin-syntax-import-attributes', { deprecatedAssertSyntax: true }], !isDev && ['transform-react-remove-prop-types', { mode: 'remove', removeImport: true }], ['@48tools/babel-plugin-delay-require', { moduleNames: externalsName, idle: true }] ].filter(Boolean);