-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
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
Can not load css in antd #36
Comments
Any update? I have the same problem. |
Could you please provide your |
@Brooooooklyn sorry, it was a problem on my side. ts-import-plugin did it's job :) |
Set module in tsconfig.json to
|
I did this. Basically works, BUT I'm getting this one: #58 In your webpack loader config do this
and in tsCustomTransformer.js
|
I have the same problem, any solution? |
@SunShinewyf Hey, could you please provide your And your |
webpack config{
loader: "ts-loader",
options: {
happyPackMode: true,
transpileOnly: true,
getCustomTransformers: () => ({
before: [TsImportPluginFactory({
libraryName: 'antd',
libraryDirectory: 'es',
style: true
})]
}),
compilerOptions: {
module: 'es2015'
}
},
}, tsconfig.json{
"compilerOptions": {
"outDir": "./dist/",
"sourceMap": true,
"noImplicitAny": true,
"module": "ESNext",
"target": "es5",
"jsx": "react",
"allowSyntheticDefaultImports": true,
"lib": ["es2015", "dom"],
"allowJs": false,
"strictNullChecks": true,
"moduleResolution": "node",
"noEmitHelpers": false,
"importHelpers": true,
"noResolve": false,
"noEmit": false,
"inlineSourceMap": false,
"declaration": false,
"resolveJsonModule": true
// "declarationDir": "./lib"
},
"include": [
"./src/**/*",
"desc.d.ts"
]
} |
You should follow this to configure your |
version:
[email protected], [email protected], [email protected], [email protected]
code:
describe:
Babel's import configuration is OK, replaced by TS import configuration will die, the compiler can pass but did not introduce css.
The text was updated successfully, but these errors were encountered: