We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ father-build Clean dist directory Build cjs with babel Clean lib directory src\commonFC\FWTable\index.tsx(3,19): error TS2307: Cannot find module './index.less' or its corresponding type declarations. src\Foo\index.tsx(2,19): error TS2307: Cannot find module './index.less' or its corresponding type declarations.
export default { // esm: 'rollup', // cjs: 'rollup', cssModules: true, esm: 'babel', cjs: 'babel', // cssModules: true, // runtimeHelpers: true, lessInBabelMode: true, // extractCSS: true,
extraBabelPlugins: [ [ 'babel-plugin-import', { libraryName: 'antd', libraryDirectory: 'es', style: true, }, ], ], extraPostCSSPlugins: [], };
The text was updated successfully, but these errors were encountered:
参考:umijs/father#227 (comment) ,后续 father-build 相关问题请到 father 仓库提交 issue
Sorry, something went wrong.
No branches or pull requests
Question
$ father-build Clean dist directory Build cjs with babel Clean lib directory src\commonFC\FWTable\index.tsx(3,19): error TS2307: Cannot find module './index.less' or its corresponding type declarations. src\Foo\index.tsx(2,19): error TS2307: Cannot find module './index.less' or its corresponding type declarations.
Sample Code
export default {
// esm: 'rollup',
// cjs: 'rollup',
cssModules: true,
esm: 'babel',
cjs: 'babel',
// cssModules: true,
// runtimeHelpers: true,
lessInBabelMode: true,
// extractCSS: true,
extraBabelPlugins: [
[
'babel-plugin-import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
},
],
],
extraPostCSSPlugins: [],
};
The text was updated successfully, but these errors were encountered: