@tamagui/next-plugin 1.0.0-alpha.34 → 1.0.0-alpha.38
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/dist/.buildinfo +1 -0
- package/dist/index.cjs +135 -140
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +9 -1
- package/dist/index.js.map +2 -2
- package/dist/withTamagui.js +127 -140
- package/dist/withTamagui.js.map +2 -2
- package/package.json +5 -5
- package/dist/cjs/index.js +0 -21
- package/dist/cjs/index.js.map +0 -7
- package/dist/cjs/withTamagui.js +0 -191
- package/dist/cjs/withTamagui.js.map +0 -7
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +0 -7
- package/dist/esm/withTamagui.js +0 -153
- package/dist/esm/withTamagui.js.map +0 -7
- package/dist/jsx/index.js +0 -1
- package/dist/jsx/withTamagui.js +0 -152
- package/types/index.d.ts.map +0 -1
- package/types/withTamagui.d.ts.map +0 -1
package/dist/.buildinfo
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"at":1636517190314}
|
package/dist/index.cjs
CHANGED
|
@@ -42,156 +42,151 @@ var __toModule = (module2) => {
|
|
|
42
42
|
|
|
43
43
|
// src/index.ts
|
|
44
44
|
__export(exports, {
|
|
45
|
-
withTamagui: () => withTamagui
|
|
45
|
+
withTamagui: () => withTamagui,
|
|
46
|
+
withTranspileTamagui: () => withTranspileTamagui
|
|
46
47
|
});
|
|
48
|
+
var import_next_transpile_modules = __toModule(require("next-transpile-modules"));
|
|
47
49
|
|
|
48
50
|
// src/withTamagui.ts
|
|
51
|
+
var import_fs = __toModule(require("fs"));
|
|
49
52
|
var import_path = __toModule(require("path"));
|
|
50
53
|
var import_css_minimizer_webpack_plugin = __toModule(require("css-minimizer-webpack-plugin"));
|
|
51
|
-
var
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
return `commonjs ${fullPath}`;
|
|
54
|
+
var withTamagui = /* @__PURE__ */ __name((snackOptions) => ({
|
|
55
|
+
webpack: (webpackConfig, options) => {
|
|
56
|
+
var _a;
|
|
57
|
+
ensureReactNativeWebShim();
|
|
58
|
+
const { config, dev, isServer } = options;
|
|
59
|
+
const cssMin = webpackConfig.optimization.minimizer.find((x) => x.toString().includes("css-minimizer-plugin"));
|
|
60
|
+
if (cssMin) {
|
|
61
|
+
webpackConfig.optimization.minimizer = webpackConfig.optimization.minimizer.slice(cssMin.index, 1);
|
|
62
|
+
}
|
|
63
|
+
webpackConfig.optimization.minimizer.push(new import_css_minimizer_webpack_plugin.default());
|
|
64
|
+
webpackConfig.resolve.alias = __spreadProps(__spreadValues({}, webpackConfig.resolve.alias || {}), {
|
|
65
|
+
"react-native$": "react-native-web",
|
|
66
|
+
"react-native-web/src/modules/normalizeColor": require.resolve("react-native-web/dist/cjs/modules/normalizeColor"),
|
|
67
|
+
"react/jsx-runtime": require.resolve("react/jsx-runtime"),
|
|
68
|
+
"react/jsx-dev-runtime": require.resolve("react/jsx-dev-runtime"),
|
|
69
|
+
react: require.resolve("react"),
|
|
70
|
+
"react-dom": require.resolve("react-dom")
|
|
71
|
+
});
|
|
72
|
+
if (!webpackConfig.resolve.extensions.includes(".web.js")) {
|
|
73
|
+
webpackConfig.resolve.extensions = [".web.js", ...webpackConfig.resolve.extensions];
|
|
74
|
+
}
|
|
75
|
+
webpackConfig.resolve.mainFields.unshift("module:jsx");
|
|
76
|
+
const isWebpack5 = !!config.future.webpack5 || typeof config.webpack5 === "undefined";
|
|
77
|
+
const includeModule = /* @__PURE__ */ __name((context, request) => {
|
|
78
|
+
const fullPath = request[0] === "." ? import_path.default.join(context, request) : request;
|
|
79
|
+
if (fullPath.startsWith("next")) {
|
|
80
|
+
return `commonjs ${fullPath}`;
|
|
81
|
+
}
|
|
82
|
+
if (fullPath.startsWith("react-native-web") || fullPath.includes("node_modules/react-native-web")) {
|
|
83
|
+
return `commonjs ${fullPath}`;
|
|
84
|
+
}
|
|
85
|
+
if (/^(react-dom|react)$/.test(fullPath)) {
|
|
86
|
+
return `commonjs ${fullPath}`;
|
|
87
|
+
}
|
|
88
|
+
return true;
|
|
89
|
+
}, "includeModule");
|
|
90
|
+
if (isServer) {
|
|
91
|
+
webpackConfig.externals = [
|
|
92
|
+
...webpackConfig.externals.map((external) => {
|
|
93
|
+
if (typeof external !== "function") {
|
|
94
|
+
return external;
|
|
93
95
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (typeof external !== "function") {
|
|
100
|
-
return external;
|
|
96
|
+
if (isWebpack5) {
|
|
97
|
+
return (ctx, cb) => {
|
|
98
|
+
const res = includeModule(ctx.context, ctx.request);
|
|
99
|
+
if (typeof res === "string") {
|
|
100
|
+
return cb(null, res);
|
|
101
101
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
const res = includeModule(ctx.context, ctx.request);
|
|
105
|
-
if (typeof res === "string") {
|
|
106
|
-
return cb(null, res);
|
|
107
|
-
}
|
|
108
|
-
if (res) {
|
|
109
|
-
return external(ctx, cb);
|
|
110
|
-
}
|
|
111
|
-
return cb();
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
return (ctx, req, cb) => {
|
|
115
|
-
const res = includeModule(ctx, req);
|
|
116
|
-
if (typeof res === "string") {
|
|
117
|
-
return cb(null, res);
|
|
118
|
-
}
|
|
119
|
-
if (res) {
|
|
120
|
-
return external(ctx, cb);
|
|
121
|
-
}
|
|
122
|
-
return cb();
|
|
123
|
-
};
|
|
124
|
-
})
|
|
125
|
-
];
|
|
126
|
-
}
|
|
127
|
-
const oneOfRule = webpackConfig.module.rules.find((x) => !!x.oneOf);
|
|
128
|
-
if (oneOfRule) {
|
|
129
|
-
if (!dev) {
|
|
130
|
-
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
131
|
-
oneOfRule.oneOf = [
|
|
132
|
-
{
|
|
133
|
-
test: /\.css$/i,
|
|
134
|
-
use: [MiniCssExtractPlugin.loader, "css-loader"],
|
|
135
|
-
sideEffects: true
|
|
136
|
-
}
|
|
137
|
-
];
|
|
138
|
-
const idx = webpackConfig.plugins.findIndex((x) => x.constructor.name === "NextMiniCssExtractPlugin");
|
|
139
|
-
webpackConfig.plugins.splice(idx, 1, new MiniCssExtractPlugin({
|
|
140
|
-
filename: "static/css/[name].[contenthash].css",
|
|
141
|
-
ignoreOrder: true
|
|
142
|
-
}));
|
|
143
|
-
} else {
|
|
144
|
-
const {
|
|
145
|
-
getGlobalCssLoader
|
|
146
|
-
} = require("next/dist/build/webpack/config/blocks/css/loaders");
|
|
147
|
-
oneOfRule.oneOf.unshift({
|
|
148
|
-
test: /\.css$/i,
|
|
149
|
-
sideEffects: true,
|
|
150
|
-
use: getGlobalCssLoader({
|
|
151
|
-
assetPrefix: options.config.assetPrefix,
|
|
152
|
-
future: { webpack5: true },
|
|
153
|
-
isClient: !isServer,
|
|
154
|
-
isServer,
|
|
155
|
-
isDevelopment: true
|
|
156
|
-
}, [], [])
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
const shouldExclude = /* @__PURE__ */ __name((x) => {
|
|
161
|
-
if (x.includes(options.dir) || tamaguiOptions.components.some((c) => x.includes(`/node_modules/${c}`) || x.includes(`${c}/_jsx/`))) {
|
|
162
|
-
return false;
|
|
102
|
+
return cb();
|
|
103
|
+
};
|
|
163
104
|
}
|
|
164
|
-
return
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
105
|
+
return (ctx, req, cb) => {
|
|
106
|
+
};
|
|
107
|
+
})
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
const oneOfRule = webpackConfig.module.rules.find((x) => !!x.oneOf);
|
|
111
|
+
if (oneOfRule) {
|
|
112
|
+
if (!dev) {
|
|
113
|
+
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
114
|
+
oneOfRule.oneOf = [
|
|
170
115
|
{
|
|
171
|
-
test: /\.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
loader: "esbuild-loader",
|
|
176
|
-
options: {
|
|
177
|
-
loader: "tsx",
|
|
178
|
-
minify: false
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
loader: "tamagui-loader",
|
|
183
|
-
options: tamaguiOptions
|
|
184
|
-
}
|
|
185
|
-
]
|
|
186
|
-
},
|
|
187
|
-
...rest
|
|
116
|
+
test: /\.css$/i,
|
|
117
|
+
use: [MiniCssExtractPlugin.loader, "css-loader"],
|
|
118
|
+
sideEffects: true
|
|
119
|
+
}
|
|
188
120
|
];
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
121
|
+
const idx = webpackConfig.plugins.findIndex((x) => x.constructor.name === "NextMiniCssExtractPlugin");
|
|
122
|
+
webpackConfig.plugins.splice(idx, 1, new MiniCssExtractPlugin({
|
|
123
|
+
filename: "static/css/[name].[contenthash].css",
|
|
124
|
+
ignoreOrder: true
|
|
125
|
+
}));
|
|
126
|
+
} else {
|
|
127
|
+
const { getGlobalCssLoader } = require("next/dist/build/webpack/config/blocks/css/loaders");
|
|
128
|
+
oneOfRule.oneOf.unshift({
|
|
129
|
+
test: /\.css$/i,
|
|
130
|
+
sideEffects: true,
|
|
131
|
+
use: getGlobalCssLoader({
|
|
132
|
+
assetPrefix: options.config.assetPrefix,
|
|
133
|
+
future: { webpack5: true },
|
|
134
|
+
isClient: !isServer,
|
|
135
|
+
isServer,
|
|
136
|
+
isDevelopment: true
|
|
137
|
+
}, [], [])
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const isNext11 = typeof ((_a = webpackConfig.module.rules[0].resolve) == null ? void 0 : _a.fullySpecified) === "boolean";
|
|
142
|
+
const loader = {
|
|
143
|
+
loader: "tamagui-loader",
|
|
144
|
+
options: snackOptions
|
|
145
|
+
};
|
|
146
|
+
if (isNext11) {
|
|
147
|
+
const [first, second, ...rest] = webpackConfig.module.rules;
|
|
148
|
+
webpackConfig.module.rules = [
|
|
149
|
+
first,
|
|
150
|
+
second,
|
|
151
|
+
{
|
|
152
|
+
test: /\.(tsx|ts|js|mjs|jsx)$/,
|
|
153
|
+
use: loader
|
|
154
|
+
},
|
|
155
|
+
...rest
|
|
156
|
+
];
|
|
157
|
+
} else {
|
|
158
|
+
webpackConfig.module.rules[0].use = [...[].concat(webpackConfig.module.rules[0].use), loader];
|
|
159
|
+
}
|
|
160
|
+
return webpackConfig;
|
|
161
|
+
}
|
|
162
|
+
}), "withTamagui");
|
|
163
|
+
function ensureReactNativeWebShim() {
|
|
164
|
+
const dirs = [
|
|
165
|
+
import_path.default.join(require.resolve("tamagui"), "..", ".."),
|
|
166
|
+
import_path.default.join(require.resolve("@tamagui/core"), "..", "..")
|
|
167
|
+
];
|
|
168
|
+
for (const dir of dirs) {
|
|
169
|
+
const fakeReactNative = import_path.default.join(dir, "node_modules", "react-native.js");
|
|
170
|
+
const parentFakeDir = import_path.default.join(dir, "..", "..", "node_modules");
|
|
171
|
+
const files = new Set([
|
|
172
|
+
fakeReactNative,
|
|
173
|
+
import_fs.default.existsSync(parentFakeDir) ? import_path.default.join(parentFakeDir, "react-native.js") : null
|
|
174
|
+
].filter(isPresent));
|
|
175
|
+
files.forEach((file) => {
|
|
176
|
+
if (!import_fs.default.existsSync(file)) {
|
|
177
|
+
import_fs.default.writeFileSync(fakeReactNative, 'module.exports = require("react-native-web")');
|
|
193
178
|
}
|
|
194
179
|
});
|
|
195
|
-
}
|
|
196
|
-
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
__name(ensureReactNativeWebShim, "ensureReactNativeWebShim");
|
|
183
|
+
function isPresent(input) {
|
|
184
|
+
return input != null;
|
|
185
|
+
}
|
|
186
|
+
__name(isPresent, "isPresent");
|
|
187
|
+
|
|
188
|
+
// src/index.ts
|
|
189
|
+
var withTranspileTamagui = (0, import_next_transpile_modules.default)(["tamagui"], {
|
|
190
|
+
debug: true
|
|
191
|
+
});
|
|
197
192
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts", "../src/withTamagui.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;;;
|
|
4
|
+
"sourcesContent": ["import transpileModule from 'next-transpile-modules'\n\nexport { withTamagui } from './withTamagui'\n\nexport const withTranspileTamagui = transpileModule(['tamagui'], {\n debug: true,\n})\n", "import fs from 'fs'\nimport path from 'path'\n\nimport { TamaguiOptions } from '@tamagui/static'\nimport CssMinimizerPlugin from 'css-minimizer-webpack-plugin'\n\nexport const withTamagui = (snackOptions: TamaguiOptions) => ({\n webpack: (webpackConfig, options) => {\n ensureReactNativeWebShim()\n\n const { config, dev, isServer } = options\n\n const cssMin = webpackConfig.optimization.minimizer.find((x) =>\n x.toString().includes('css-minimizer-plugin')\n )\n if (cssMin) {\n webpackConfig.optimization.minimizer = webpackConfig.optimization.minimizer.slice(\n cssMin.index,\n 1\n )\n }\n webpackConfig.optimization.minimizer.push(new CssMinimizerPlugin())\n\n webpackConfig.resolve.alias = {\n ...(webpackConfig.resolve.alias || {}),\n 'react-native$': 'react-native-web',\n 'react-native-web/src/modules/normalizeColor': require.resolve(\n 'react-native-web/dist/cjs/modules/normalizeColor'\n ),\n 'react/jsx-runtime': require.resolve('react/jsx-runtime'),\n 'react/jsx-dev-runtime': require.resolve('react/jsx-dev-runtime'),\n react: require.resolve('react'),\n 'react-dom': require.resolve('react-dom'),\n }\n\n if (!webpackConfig.resolve.extensions.includes('.web.js')) {\n webpackConfig.resolve.extensions = ['.web.js', ...webpackConfig.resolve.extensions]\n }\n\n // ensure we compile tamagui itself\n webpackConfig.resolve.mainFields.unshift('module:jsx')\n\n // why is it undefined on next11??? but it says using webpack5\n const isWebpack5 = !!config.future.webpack5 || typeof config.webpack5 === 'undefined'\n\n const includeModule = (context: string, request: string) => {\n const fullPath = request[0] === '.' ? path.join(context, request) : request\n if (fullPath.startsWith('next')) {\n return `commonjs ${fullPath}`\n }\n if (\n fullPath.startsWith('react-native-web') ||\n fullPath.includes('node_modules/react-native-web')\n ) {\n return `commonjs ${fullPath}`\n }\n if (/^(react-dom|react)$/.test(fullPath)) {\n return `commonjs ${fullPath}`\n }\n return true\n }\n\n if (isServer) {\n webpackConfig.externals = [\n ...webpackConfig.externals.map((external) => {\n if (typeof external !== 'function') {\n return external\n }\n // only runs on server\n if (isWebpack5) {\n return (ctx, cb) => {\n const res = includeModule(ctx.context, ctx.request)\n // if (res === false) {\n // return external(ctx, cb)\n // }\n if (typeof res === 'string') {\n return cb(null, res)\n }\n return cb()\n }\n }\n return (ctx, req, cb) => {\n // const fullPath = path.join(ctx, req)\n // return includeModule(fullPath) ? cb() : external(ctx, req, cb)\n }\n }),\n ]\n }\n\n const oneOfRule = webpackConfig.module.rules.find((x) => !!x.oneOf)\n\n if (oneOfRule) {\n if (!dev) {\n // replace nextjs picky style rules with simple minicssextract\n const MiniCssExtractPlugin = require('mini-css-extract-plugin')\n oneOfRule.oneOf = [\n {\n test: /\\.css$/i,\n use: [MiniCssExtractPlugin.loader, 'css-loader'],\n sideEffects: true,\n },\n ]\n const idx = webpackConfig.plugins.findIndex(\n (x) => x.constructor.name === 'NextMiniCssExtractPlugin'\n )\n webpackConfig.plugins.splice(\n idx,\n 1,\n new MiniCssExtractPlugin({\n filename: 'static/css/[name].[contenthash].css',\n ignoreOrder: true,\n })\n )\n } else {\n const { getGlobalCssLoader } = require('next/dist/build/webpack/config/blocks/css/loaders')\n oneOfRule.oneOf.unshift({\n test: /\\.css$/i,\n sideEffects: true,\n use: getGlobalCssLoader(\n {\n assetPrefix: options.config.assetPrefix,\n future: { webpack5: true },\n isClient: !isServer,\n isServer,\n isDevelopment: true,\n },\n [],\n []\n ),\n })\n }\n }\n\n // add loader\n const isNext11 = typeof webpackConfig.module.rules[0].resolve?.fullySpecified === 'boolean'\n const loader = {\n loader: 'tamagui-loader',\n options: snackOptions,\n }\n if (isNext11) {\n const [first, second, ...rest] = webpackConfig.module.rules\n webpackConfig.module.rules = [\n first,\n second,\n {\n test: /\\.(tsx|ts|js|mjs|jsx)$/,\n use: loader,\n },\n ...rest,\n ]\n } else {\n webpackConfig.module.rules[0].use = [...[].concat(webpackConfig.module.rules[0].use), loader]\n }\n\n return webpackConfig\n },\n})\n\nfunction ensureReactNativeWebShim() {\n const dirs = [\n path.join(require.resolve('tamagui'), '..', '..'),\n path.join(require.resolve('@tamagui/core'), '..', '..'),\n ]\n for (const dir of dirs) {\n const fakeReactNative = path.join(dir, 'node_modules', 'react-native.js')\n // monorepo dev support.. for now\n const parentFakeDir = path.join(dir, '..', '..', 'node_modules')\n const files = new Set(\n [\n fakeReactNative,\n fs.existsSync(parentFakeDir) ? path.join(parentFakeDir, 'react-native.js') : null,\n ].filter(isPresent)\n )\n\n files.forEach((file) => {\n if (!fs.existsSync(file)) {\n // console.log('inserting react-native-web shim', file)\n fs.writeFileSync(fakeReactNative, 'module.exports = require(\"react-native-web\")')\n }\n })\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;AAAA;AAEX,QAAI,UAAU;AACZ,YAAM,CAAC,OAAO,WAAW,QAAQ,cAAc,OAAO;AACtD,oBAAc,OAAO,QAAQ;AAAA,QAC3B;AAAA,QACA;AAAA,QACA;AAAA,UACE,MAAM;AAAA,UACN,KAAK;AAAA;AAAA,QAEP,GAAG;AAAA;AAAA,WAEA;AACL,oBAAc,OAAO,MAAM,GAAG,MAAM,CAAC,GAAG,GAAG,OAAO,cAAc,OAAO,MAAM,GAAG,MAAM;AAAA;AAGxF,WAAO;AAAA;AAAA,IApJgB;AAwJ3B,oCAAoC;AAClC,QAAM,OAAO;AAAA,IACX,oBAAK,KAAqB,4BAAY,MAAM;AAAA,IAC5C,oBAAK,KAAqB,kCAAkB,MAAM;AAAA;AAEpD,aAAW,OAAO,MAAM;AACtB,UAAM,kBAAkB,oBAAK,KAAK,KAAK,gBAAgB;AAEvD,UAAM,gBAAgB,oBAAK,KAAK,KAAK,MAAM,MAAM;AACjD,UAAM,QAAQ,IAAI,IAChB;AAAA,MACE;AAAA,MACA,kBAAG,WAAW,iBAAiB,oBAAK,KAAK,eAAe,qBAAqB;AAAA,MAC7E,OAAO;AAGX,UAAM,QAAQ,CAAC,SAAS;AACtB,UAAI,CAAC,kBAAG,WAAW,OAAO;AAExB,0BAAG,cAAc,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAnBjC;AAyBT,mBAAqC,OAAgD;AACnF,SAAO,SAAS;AAAA;AADT;;;ADnLF,IAAM,uBAAuB,2CAAgB,CAAC,YAAY;AAAA,EAC/D,OAAO;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import transpileModule from "next-transpile-modules";
|
|
2
|
+
import { withTamagui } from "./withTamagui";
|
|
3
|
+
const withTranspileTamagui = transpileModule(["tamagui"], {
|
|
4
|
+
debug: true
|
|
5
|
+
});
|
|
6
|
+
export {
|
|
7
|
+
withTamagui,
|
|
8
|
+
withTranspileTamagui
|
|
9
|
+
};
|
|
2
10
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "AAAA;",
|
|
4
|
+
"sourcesContent": ["import transpileModule from 'next-transpile-modules'\n\nexport { withTamagui } from './withTamagui'\n\nexport const withTranspileTamagui = transpileModule(['tamagui'], {\n debug: true,\n})\n"],
|
|
5
|
+
"mappings": "AAAA;AAEA;AAEO,MAAM,uBAAuB,gBAAgB,CAAC,YAAY;AAAA,EAC/D,OAAO;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|