Skip to content
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

Question #1

Open
SunLxy opened this issue Mar 5, 2022 · 0 comments
Open

Question #1

SunLxy opened this issue Mar 5, 2022 · 0 comments
Labels
good first issue Good for newcomers question Further information is requested

Comments

@SunLxy
Copy link
Owner

SunLxy commented Mar 5, 2022

  1. 扩展 Webpack 编译阶段
  2. webpack 5 <-> html-webpack-plugin 5
  3. Webpack 5 - 子编译器忽略库目标/名称选项
  4. iife: false现在不能与 libraryTarget: "commonjs2" 一起使用,es 支持仍在我们的路线图中,尽量不要现在使用它
  5. Webpack 5 - Uncaught ReferenceError: process is not defined(1)
  6. Webpack 5 - Uncaught ReferenceError: process is not defined(2)
  7. node server webpack 打包使用 css-loader 时需要设置 options.modules.exportOnlyLocals = true
  8. less-loader webpack 加载位置 参照 react-script 中webpack配置的位置不能放在最后或最前面参照less处理
  9. ssr 在router V6 中 element 为 dom 标签时,获取不到预加载数据的 方法 通过加参数的方式传递
const routers =[
   {
      path:"/",
      name: 'page-repos',
      element: <Repos />,
+    load: Repos.getInitialProps
   }
]
  1. server 进行start 时,有可能判断 oldBrower 问题,server端加配置如下
const webpackConfig = {
// ...
  fallback:{
+     "crypto": require.resolve("crypto-js"),
  }
}
  1. 解决 react-native 报错com.facebook.react:react-native-gradle-plugin 'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version.
choco install -y openjdk11
@SunLxy SunLxy added question Further information is requested good first issue Good for newcomers labels Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant