-
Notifications
You must be signed in to change notification settings - Fork 264
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
undefined when used with webpack #787
Comments
I removed |
I tried use rules: [
// Converts TypeScript code to JavaScript
{
test: /\.tsx?$/,
exclude: /node_modules/,
use: [{
// loader: 'babel-loader',
// }, {
loader: 'ts-loader'
}]
},
{
// I want styled-jsx transform the code with babel's plugin
test: /\.[jt]sx?$/,
enforce: 'post',
exclude: /(node_modules|bower_components)/,
use: 'babel-loader'
},
] What's the problem with my use case? |
Could you provide a reproduction repo? It's hard to tell the actuall root cause based on the code snippets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
A bug.
What is the current behavior?
When I used this lib without next, just together with webpack and babel, my code was transformed into
, and I check the source code and find there is no default exported in this lab.
If the current behavior is a bug, please provide the steps to reproduce and possibly a minimal demo or testcase in the form of a Next.js app, CodeSandbox URL or similar
What is the expected behavior?
Environment (include versions)
Did this work in previous versions?
I tried v4, with no luck.
The text was updated successfully, but these errors were encountered: