@momo-webplatform/mobase 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -36,7 +36,7 @@ import { mobaseTW } from "@momo-webplatform/mobase";
36
36
  const config = {
37
37
  content: [
38
38
  // ...
39
- "node_modules/@momo-webplatform/mobase/publish/esm/**/*.js",
39
+ "node_modules/@momo-webplatform/mobase/dist/esm/**/*.js",
40
40
  ],
41
41
  darkMode: ["class"],
42
42
  plugins: [mobaseTW()],
@@ -53,6 +53,16 @@ Add Tailwind CSS to a CSS file:
53
53
  @tailwind utilities;
54
54
  ```
55
55
 
56
+ Automatically transpile and bundle dependencies, update your `next.config.js` file to add the necessary configuration for Mobase:
57
+
58
+ ```js filename="next.config.js"
59
+ /** @type {import('next').NextConfig} */
60
+ const nextConfig = {
61
+ transpilePackages: ["@momo-webplatform/mobase"],
62
+ ...
63
+ }
64
+ export default nextConfig;
65
+ ```
56
66
  ### Install Mobase React
57
67
 
58
68
  1. Run the following command to install `@momo-webplatform/mobase`: