tamagui-loader 1.0.11 → 1.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tamagui-loader",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -18,14 +18,14 @@
18
18
  "clean:build": "tamagui-build clean:build"
19
19
  },
20
20
  "dependencies": {
21
- "@tamagui/cli-color": "^1.0.11",
22
- "@tamagui/static": "^1.0.11",
21
+ "@tamagui/cli-color": "^1.0.12",
22
+ "@tamagui/static": "^1.0.12",
23
23
  "fs-extra": "^10.1.0",
24
24
  "loader-utils": "^3.2.1",
25
25
  "lodash": "^4.17.21"
26
26
  },
27
27
  "devDependencies": {
28
- "@tamagui/build": "^1.0.11",
28
+ "@tamagui/build": "^1.0.12",
29
29
  "webpack": "^5.74.0"
30
30
  },
31
31
  "publishConfig": {
package/dist/jsx/css.js DELETED
@@ -1,29 +0,0 @@
1
- const extractedInfoByFile = /* @__PURE__ */ new Map();
2
- const stylePathToFilePath = /* @__PURE__ */ new Map();
3
- function loader() {
4
- var _a;
5
- this.async();
6
- const options = { ...this.getOptions() };
7
- const sourcePath = `${this.resourcePath}`;
8
- let out = "";
9
- if (options.cssPath) {
10
- const pathKey = (_a = stylePathToFilePath.get(sourcePath)) != null ? _a : sourcePath;
11
- const info = extractedInfoByFile.get(pathKey);
12
- stylePathToFilePath.delete(sourcePath);
13
- extractedInfoByFile.delete(pathKey);
14
- const out2 = info == null ? void 0 : info.styles;
15
- return this.callback(null, out2 || "");
16
- } else if (options.cssData) {
17
- out = Buffer.from(options.cssData, "base64").toString("utf-8");
18
- }
19
- if (out) {
20
- return this.callback(null, out || "");
21
- }
22
- this.callback({ message: `No CSS found`, name: "missing_css" });
23
- }
24
- export {
25
- loader as default,
26
- extractedInfoByFile,
27
- stylePathToFilePath
28
- };
29
- //# sourceMappingURL=css.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/css.ts"],
4
- "sourcesContent": ["import { ExtractedResponse, TamaguiOptions } from '@tamagui/static'\nimport { LoaderContext } from 'webpack'\n\nexport const extractedInfoByFile = new Map<string, ExtractedResponse>()\nexport const stylePathToFilePath = new Map<string, string>()\n\nexport default function loader(this: LoaderContext<any>) {\n this.async()\n const options: TamaguiOptions = { ...this.getOptions() }\n const sourcePath = `${this.resourcePath}`\n let out = ''\n if (options.cssPath) {\n // get in memory info\n const pathKey = stylePathToFilePath.get(sourcePath) ?? sourcePath\n const info = extractedInfoByFile.get(pathKey)\n // clear memory\n stylePathToFilePath.delete(sourcePath)\n extractedInfoByFile.delete(pathKey)\n const out = info?.styles\n return this.callback(null, out || '')\n } else if (options.cssData) {\n // get output CSS\n out = Buffer.from(options.cssData, 'base64').toString('utf-8')\n }\n if (out) {\n // use original JS sourcemap\n return this.callback(null, out || '')\n }\n this.callback({ message: `No CSS found`, name: 'missing_css' })\n}\n"],
5
- "mappings": "AAGO,MAAM,sBAAsB,oBAAI,IAA+B;AAC/D,MAAM,sBAAsB,oBAAI,IAAoB;AAE5C,kBAA0C;AANzD;AAOE,OAAK,MAAM;AACX,QAAM,UAA0B,EAAE,GAAG,KAAK,WAAW,EAAE;AACvD,QAAM,aAAa,GAAG,KAAK;AAC3B,MAAI,MAAM;AACV,MAAI,QAAQ,SAAS;AAEnB,UAAM,UAAU,0BAAoB,IAAI,UAAU,MAAlC,YAAuC;AACvD,UAAM,OAAO,oBAAoB,IAAI,OAAO;AAE5C,wBAAoB,OAAO,UAAU;AACrC,wBAAoB,OAAO,OAAO;AAClC,UAAM,OAAM,6BAAM;AAClB,WAAO,KAAK,SAAS,MAAM,QAAO,EAAE;AAAA,EACtC,WAAW,QAAQ,SAAS;AAE1B,UAAM,OAAO,KAAK,QAAQ,SAAS,QAAQ,EAAE,SAAS,OAAO;AAAA,EAC/D;AACA,MAAI,KAAK;AAEP,WAAO,KAAK,SAAS,MAAM,OAAO,EAAE;AAAA,EACtC;AACA,OAAK,SAAS,EAAE,SAAS,gBAAgB,MAAM,cAAc,CAAC;AAChE;",
6
- "names": []
7
- }
package/dist/jsx/index.js DELETED
@@ -1,15 +0,0 @@
1
- process.env.TAMAGUI_TARGET = process.env.TAMAGUI_TARGET || "web";
2
- process.env.TAMAGUI_COMPILE_PROCESS = "1";
3
- process.env.IS_STATIC = "is_static";
4
- var src_default = require("./loader").loader;
5
- const shouldExclude = (path, projectRoot) => {
6
- if (path.includes("react-native-web") || path.includes("react-native-reanimated") || path.includes("react-native-gesture-handler") || path.includes("@gorhom/portal") || path.includes(projectRoot) || path.includes("/dist/jsx/")) {
7
- return false;
8
- }
9
- return true;
10
- };
11
- export {
12
- src_default as default,
13
- shouldExclude
14
- };
15
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["process.env.TAMAGUI_TARGET = process.env.TAMAGUI_TARGET || 'web'\nprocess.env.TAMAGUI_COMPILE_PROCESS = '1'\nprocess.env.IS_STATIC = 'is_static'\n\nexport default require('./loader').loader\n\n// helper for webpack exclude specific to tamagui\n\nexport const shouldExclude = (path: string, projectRoot: string) => {\n if (\n path.includes('react-native-web') ||\n path.includes('react-native-reanimated') ||\n path.includes('react-native-gesture-handler') ||\n path.includes('@gorhom/portal') ||\n path.includes(projectRoot) ||\n path.includes('/dist/jsx/')\n ) {\n return false\n }\n return true\n}\n"],
5
- "mappings": "AAAA,QAAQ,IAAI,iBAAiB,QAAQ,IAAI,kBAAkB;AAC3D,QAAQ,IAAI,0BAA0B;AACtC,QAAQ,IAAI,YAAY;AAExB,IAAO,cAAQ,QAAQ,UAAU,EAAE;AAI5B,MAAM,gBAAgB,CAAC,MAAc,gBAAwB;AAClE,MACE,KAAK,SAAS,kBAAkB,KAChC,KAAK,SAAS,yBAAyB,KACvC,KAAK,SAAS,8BAA8B,KAC5C,KAAK,SAAS,gBAAgB,KAC9B,KAAK,SAAS,WAAW,KACzB,KAAK,SAAS,YAAY,GAC1B;AACA,WAAO;AAAA,EACT;AACA,SAAO;AACT;",
6
- "names": []
7
- }
@@ -1,68 +0,0 @@
1
- Error.stackTraceLimit = Infinity;
2
- import {
3
- createExtractor,
4
- extractToClassNames,
5
- patchReactNativeWeb
6
- } from "@tamagui/static";
7
- import { extractedInfoByFile, stylePathToFilePath } from "./css";
8
- const CSS_LOADER_PATH = require.resolve("./css");
9
- Error.stackTraceLimit = Infinity;
10
- const extractor = createExtractor();
11
- let index = 0;
12
- let hasPatched = false;
13
- process.env.TAMAGUI_TARGET = "web";
14
- const loader = function loader2(sourceIn) {
15
- this.cacheable(true);
16
- this.async();
17
- const source = sourceIn.toString();
18
- if (!process.env.TAMAGUI_DISABLE_RNW_PATCH && !hasPatched) {
19
- patchReactNativeWeb();
20
- hasPatched = true;
21
- }
22
- try {
23
- const threaded = this.emitFile === void 0;
24
- const options = { ...this.getOptions() };
25
- const sourcePath = `${this.resourcePath}`;
26
- const startsWithComment = source[0] === "/" && source[1] === "/";
27
- let shouldPrintDebug = !!process.env.DEBUG && (process.env.DEBUG_FILE ? sourcePath.includes(process.env.DEBUG_FILE) : true) || startsWithComment && (source.startsWith("// debug") || source.startsWith("//! debug"));
28
- if (shouldPrintDebug && source.startsWith("// debug-verbose")) {
29
- shouldPrintDebug = "verbose";
30
- }
31
- if (startsWithComment && (source.startsWith("// tamagui-ignore") || source.startsWith("//! tamagui-ignore"))) {
32
- return this.callback(null, source);
33
- }
34
- const cssPath = threaded ? `${sourcePath}.module.css` : `${sourcePath}.${index++}.module.css`;
35
- const extracted = extractToClassNames({
36
- extractor,
37
- source,
38
- sourcePath,
39
- options,
40
- shouldPrintDebug
41
- });
42
- if (!extracted) {
43
- return this.callback(null, source);
44
- }
45
- if (extracted.styles) {
46
- const cssQuery = threaded ? `cssData=${Buffer.from(extracted.styles).toString("base64")}` : `cssPath=${cssPath}`;
47
- const remReq = this.remainingRequest;
48
- const importPath = `${cssPath}!=!${CSS_LOADER_PATH}?${cssQuery}!${remReq}`;
49
- extracted.js = `${extracted.js}
50
-
51
- require(${JSON.stringify(importPath)})`;
52
- }
53
- extractedInfoByFile.set(sourcePath, extracted);
54
- if (!threaded) {
55
- if (extracted.stylesPath) {
56
- stylePathToFilePath.set(extracted.stylesPath, sourcePath);
57
- }
58
- }
59
- this.callback(null, extracted.js, extracted.map);
60
- } catch (err) {
61
- console.error("ERROR", err);
62
- return this.callback(null, source);
63
- }
64
- };
65
- export {
66
- loader
67
- };
68
- //# sourceMappingURL=loader.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/loader.ts"],
4
- "sourcesContent": ["Error.stackTraceLimit = Infinity\n\nimport {\n TamaguiOptions,\n createExtractor,\n extractToClassNames,\n patchReactNativeWeb,\n} from '@tamagui/static'\nimport type { RawLoaderDefinitionFunction } from 'webpack'\n\nimport { extractedInfoByFile, stylePathToFilePath } from './css'\n\n// pass loader as path\nconst CSS_LOADER_PATH = require.resolve('./css')\n\nError.stackTraceLimit = Infinity\nconst extractor = createExtractor()\n\nlet index = 0\nlet hasPatched = false\n\nprocess.env.TAMAGUI_TARGET = 'web'\n\nexport const loader: RawLoaderDefinitionFunction<TamaguiOptions> = function loader(this, sourceIn) {\n this.cacheable(true)\n this.async()\n const source = sourceIn.toString()\n\n if (!process.env.TAMAGUI_DISABLE_RNW_PATCH && !hasPatched) {\n patchReactNativeWeb()\n hasPatched = true\n }\n\n try {\n const threaded = this.emitFile === undefined\n const options: TamaguiOptions = { ...this.getOptions() }\n const sourcePath = `${this.resourcePath}`\n const startsWithComment = source[0] === '/' && source[1] === '/'\n\n let shouldPrintDebug: boolean | 'verbose' =\n (!!process.env.DEBUG &&\n (process.env.DEBUG_FILE ? sourcePath.includes(process.env.DEBUG_FILE) : true)) ||\n // supports esbuild style //! comments\n (startsWithComment && (source.startsWith('// debug') || source.startsWith('//! debug')))\n\n if (shouldPrintDebug && source.startsWith('// debug-verbose')) {\n shouldPrintDebug = 'verbose'\n }\n\n // check if should ignore\n if (\n startsWithComment &&\n (source.startsWith('// tamagui-ignore') || source.startsWith('//! tamagui-ignore'))\n ) {\n return this.callback(null, source)\n }\n\n const cssPath = threaded ? `${sourcePath}.module.css` : `${sourcePath}.${index++}.module.css`\n\n const extracted = extractToClassNames({\n extractor,\n source,\n sourcePath,\n options,\n shouldPrintDebug,\n })\n\n if (!extracted) {\n return this.callback(null, source)\n }\n\n // add import to css\n if (extracted.styles) {\n const cssQuery = threaded\n ? `cssData=${Buffer.from(extracted.styles).toString('base64')}`\n : `cssPath=${cssPath}`\n const remReq = this.remainingRequest\n const importPath = `${cssPath}!=!${CSS_LOADER_PATH}?${cssQuery}!${remReq}`\n extracted.js = `${extracted.js}\\n\\nrequire(${JSON.stringify(importPath)})`\n }\n\n extractedInfoByFile.set(sourcePath, extracted)\n\n if (!threaded) {\n if (extracted.stylesPath) {\n stylePathToFilePath.set(extracted.stylesPath, sourcePath)\n }\n }\n\n this.callback(null, extracted.js, extracted.map)\n } catch (err) {\n console.error('ERROR', err)\n return this.callback(null, source)\n }\n}\n"],
5
- "mappings": "AAAA,MAAM,kBAAkB;AAExB;AAAA;AAAA;AAAA;AAAA;AAQA;AAGA,MAAM,kBAAkC;AAExC,MAAM,kBAAkB;AACxB,MAAM,YAAY,gBAAgB;AAElC,IAAI,QAAQ;AACZ,IAAI,aAAa;AAEjB,QAAQ,IAAI,iBAAiB;AAEtB,MAAM,SAAsD,iBAAsB,UAAU;AACjG,OAAK,UAAU,IAAI;AACnB,OAAK,MAAM;AACX,QAAM,SAAS,SAAS,SAAS;AAEjC,MAAI,CAAC,QAAQ,IAAI,6BAA6B,CAAC,YAAY;AACzD,wBAAoB;AACpB,iBAAa;AAAA,EACf;AAEA,MAAI;AACF,UAAM,WAAW,KAAK,aAAa;AACnC,UAAM,UAA0B,E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AA,EACnC;AACF;",
6
- "names": []
7
- }
@@ -1,83 +0,0 @@
1
- class TamaguiPlugin {
2
- constructor(options = {
3
- components: ["@tamagui/core"]
4
- }) {
5
- this.options = options;
6
- this.pluginName = "TamaguiPlugin";
7
- }
8
- apply(compiler) {
9
- var _a, _b, _c;
10
- compiler.hooks.normalModuleFactory.tap(this.pluginName, (nmf) => {
11
- nmf.hooks.createModule.tap(this.pluginName, (createData) => {
12
- var _a2;
13
- if ((_a2 = createData.matchResource) == null ? void 0 : _a2.endsWith(".tamagui.css")) {
14
- createData.settings.sideEffects = true;
15
- }
16
- });
17
- });
18
- compiler.options.resolve.extensions = [
19
- .../* @__PURE__ */ new Set([
20
- ".web.tsx",
21
- ".web.ts",
22
- ".web.js",
23
- ".ts",
24
- ".tsx",
25
- ".js",
26
- ...compiler.options.resolve.extensions || []
27
- ])
28
- ];
29
- const mainFields = compiler.options.resolve.mainFields;
30
- if (mainFields) {
31
- compiler.options.resolve.mainFields = Array.isArray(mainFields) ? mainFields : [mainFields];
32
- mainFields.unshift("module:jsx");
33
- }
34
- if (!compiler.options.module) {
35
- return;
36
- }
37
- const { jsLoader } = this.options;
38
- const existing = compiler.options.module.rules;
39
- const rules = (_b = (_a = existing.find((x) => typeof x === "object" && "oneOf" in x ? x : null)) == null ? void 0 : _a.oneOf) != null ? _b : existing;
40
- const nextJsRules = rules.findIndex((x) => (x == null ? void 0 : x.use) && x.use.loader === "next-swc-loader" && x.issuerLayer !== "api");
41
- const startIndex = nextJsRules ? nextJsRules + 1 : 0;
42
- const existingLoader = nextJsRules ? rules[startIndex] : void 0;
43
- rules.splice(startIndex, 0, {
44
- test: (_c = this.options.test) != null ? _c : /\.(jsx?|tsx?)$/,
45
- exclude: this.options.exclude,
46
- use: [
47
- ...jsLoader ? [jsLoader] : [],
48
- ...existingLoader && nextJsRules ? [].concat(existingLoader.use) : [],
49
- ...!(jsLoader || existingLoader) ? [
50
- {
51
- loader: require.resolve("esbuild-loader"),
52
- options: {
53
- target: "es2021",
54
- keepNames: true,
55
- loader: {
56
- ".tsx": "tsx",
57
- ".png": "copy",
58
- ".jpg": "copy",
59
- ".gif": "copy"
60
- },
61
- tsconfigRaw: {
62
- module: this.options.commonjs ? "commonjs" : "esnext",
63
- isolatedModules: true,
64
- jsx: "preserve",
65
- resolveJsonModule: true
66
- }
67
- }
68
- }
69
- ] : [],
70
- {
71
- loader: require.resolve("tamagui-loader"),
72
- options: {
73
- ...this.options
74
- }
75
- }
76
- ]
77
- });
78
- }
79
- }
80
- export {
81
- TamaguiPlugin
82
- };
83
- //# sourceMappingURL=plugin.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/plugin.ts"],
4
- "sourcesContent": ["import type { TamaguiOptions } from '@tamagui/static'\nimport type { Compiler, RuleSetRule } from 'webpack'\n\ntype PluginOptions = TamaguiOptions & {\n commonjs?: boolean\n exclude?: RuleSetRule['exclude']\n test?: RuleSetRule['test']\n jsLoader?: any\n}\n\nexport class TamaguiPlugin {\n pluginName = 'TamaguiPlugin'\n\n constructor(\n public options: PluginOptions = {\n components: ['@tamagui/core'],\n }\n ) {}\n\n apply(compiler: Compiler) {\n // mark as side effect\n compiler.hooks.normalModuleFactory.tap(this.pluginName, (nmf) => {\n nmf.hooks.createModule.tap(\n this.pluginName,\n // @ts-expect-error CreateData is typed as 'object'...\n (createData: { matchResource?: string; settings: { sideEffects?: boolean } }) => {\n if (createData.matchResource?.endsWith('.tamagui.css')) {\n createData.settings.sideEffects = true\n }\n }\n )\n })\n\n compiler.options.resolve.extensions = [\n ...new Set([\n '.web.tsx',\n '.web.ts',\n '.web.js',\n '.ts',\n '.tsx',\n '.js',\n ...(compiler.options.resolve.extensions || []),\n ]),\n ]\n\n // look for compiled js with jsx intact as specified by module:jsx\n const mainFields = compiler.options.resolve.mainFields\n if (mainFields) {\n compiler.options.resolve.mainFields = Array.isArray(mainFields)\n ? mainFields\n : [mainFields]\n mainFields.unshift('module:jsx')\n }\n\n if (!compiler.options.module) {\n return\n }\n\n const { jsLoader } = this.options\n\n const existing = compiler.options.module.rules as any[]\n\n const rules =\n (existing.find((x) => (typeof x === 'object' && 'oneOf' in x ? x : null))\n ?.oneOf as any[]) ?? existing\n\n const nextJsRules = rules.findIndex(\n (x) => x?.use && x.use.loader === 'next-swc-loader' && x.issuerLayer !== 'api'\n )\n\n const startIndex = nextJsRules ? nextJsRules + 1 : 0\n const existingLoader = nextJsRules ? rules[startIndex] : undefined\n\n rules.splice(startIndex, 0, {\n test: this.options.test ?? /\\.(jsx?|tsx?)$/,\n exclude: this.options.exclude,\n use: [\n ...(jsLoader ? [jsLoader] : []),\n ...(existingLoader && nextJsRules ? [].concat(existingLoader.use) : []),\n ...(!(jsLoader || existingLoader)\n ? [\n {\n loader: require.resolve('esbuild-loader'),\n options: {\n target: 'es2021',\n keepNames: true,\n loader: {\n '.tsx': 'tsx',\n '.png': 'copy',\n '.jpg': 'copy',\n '.gif': 'copy',\n },\n\n tsconfigRaw: {\n module: this.options.commonjs ? 'commonjs' : 'esnext',\n isolatedModules: true,\n jsx: 'preserve',\n resolveJsonModule: true,\n },\n },\n },\n ]\n : []),\n {\n loader: require.resolve('tamagui-loader'),\n options: {\n ...this.options,\n },\n },\n ],\n })\n }\n}\n"],
5
- "mappings": "AAUO,MAAM,cAAc;AAAA,EAGzB,YACS,UAAyB;AAAA,IAC9B,YAAY,CAAC,eAAe;AAAA,EAC9B,GACA;AAHO;AAHT,sBAAa;AAAA,EAMV;AAAA,EAEH,MAAM,UAAoB;AAnB5B;AAqBI,aAAS,MAAM,oBAAoB,IAAI,KAAK,YAAY,CAAC,QAAQ;AAC/D,UAAI,MAAM,aAAa,IACrB,KAAK,YAEL,CAAC,eAAgF;AAzBzF;AA0BU,YAAI,kBAAW,kBAAX,oBAA0B,SAAS,iBAAiB;AACtD,qBAAW,SAAS,cAAc;AAAA,QACpC;AAAA,MACF,CACF;AAAA,IACF,CAAC;AAED,aAAS,QAAQ,QAAQ,aAAa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ACV;AAAA,cAEA,aAAa;AAAA,gBACX,QAAQ,KAAK,QAAQ,WAAW,aAAa;AAAA,gBAC7C,iBAAiB;AAAA,gBACjB,KAAK;AAAA,gBACL,mBAAmB;AAAA,cACrB;AAAA,YACF;AAAA,UACF;AAAA,QACF,IACA,CAAC;AAAA,QACL;AAAA,UACE,QAAwB;AAAA,UACxB,SAAS;AAAA,YACP,GAAG,KAAK;AAAA,UACV;AAAA,QACF;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACF;",
6
- "names": []
7
- }
@@ -1,14 +0,0 @@
1
- import type { TamaguiOptions } from '@tamagui/static';
2
- import type { LoaderContext } from 'webpack';
3
- type Externals = any;
4
- export declare class ChildCompiler {
5
- externals: Externals | undefined;
6
- constructor(externals: Externals);
7
- isChildCompiler(name: string | undefined): boolean;
8
- getCompiledSource(loader: LoaderContext<TamaguiOptions>): Promise<{
9
- source: string;
10
- dependencies: string[];
11
- }>;
12
- }
13
- export {};
14
- //# sourceMappingURL=compiler.d.ts.map