@tamagui/vite-plugin-cjs 2.7.6 → 3.0.0-beta.637.1

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/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@tamagui/vite-plugin'
package/index.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./dist/cjs')
1
+ module.exports = require('@tamagui/vite-plugin')
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@tamagui/vite-plugin-cjs",
3
- "version": "2.7.6",
3
+ "version": "3.0.0-beta.637.1",
4
4
  "license": "MIT",
5
+ "files": [
6
+ "index.js",
7
+ "index.d.ts"
8
+ ],
5
9
  "main": "./index.js",
6
- "types": "./types/index.d.ts",
10
+ "types": "./index.d.ts",
7
11
  "publishConfig": {
8
12
  "access": "public"
9
13
  },
10
- "scripts": {
11
- "build": "cp -r ../vite-plugin/dist . || true"
12
- },
13
14
  "dependencies": {
14
- "@tamagui/vite-plugin": "2.7.6"
15
+ "@tamagui/vite-plugin": "3.0.0-beta.637.1"
15
16
  },
16
17
  "repository": {
17
18
  "type": "git",
@@ -1 +0,0 @@
1
- $ cp -r ../vite-plugin/dist . || true
@@ -1,28 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var extensions_exports = {};
24
- __export(extensions_exports, {
25
- extensions: () => extensions
26
- });
27
- module.exports = __toCommonJS(extensions_exports);
28
- const extensions = [".ios.js", ".native.js", ".native.ts", ".native.tsx", ".js", ".jsx", ".json", ".ts", ".tsx", ".mjs"];
@@ -1,32 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var extensions_exports = {};
16
- __export(extensions_exports, {
17
- extensions: () => extensions
18
- });
19
- module.exports = __toCommonJS(extensions_exports);
20
- const extensions = [
21
- ".ios.js",
22
- ".native.js",
23
- ".native.ts",
24
- ".native.tsx",
25
- ".js",
26
- ".jsx",
27
- ".json",
28
- ".ts",
29
- ".tsx",
30
- ".mjs"
31
- ];
32
- //# sourceMappingURL=extensions.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/extensions.ts"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
5
- "names": []
6
- }
@@ -1,20 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: true
17
- }), mod);
18
- var index_exports = {};
19
- module.exports = __toCommonJS(index_exports);
20
- __reExport(index_exports, require("./plugin.cjs"), module.exports);
package/dist/cjs/index.js DELETED
@@ -1,18 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
7
- get: () => from[key],
8
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
- });
10
- return to;
11
- },
12
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
- value: !0
15
- }), mod);
16
- var index_exports = {};
17
- module.exports = __toCommonJS(index_exports);
18
- __reExport(index_exports, require("./plugin.cjs"), module.exports);
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,qBAAd;",
5
- "names": []
6
- }
@@ -1,101 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: true
30
- }) : target, mod));
31
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: true
33
- }), mod);
34
- var loadTamagui_exports = {};
35
- __export(loadTamagui_exports, {
36
- cleanup: () => cleanup,
37
- ensureFullConfigLoaded: () => ensureFullConfigLoaded,
38
- getLoadPromise: () => getLoadPromise,
39
- getTamaguiOptions: () => getTamaguiOptions,
40
- loadTamaguiBuildConfig: () => loadTamaguiBuildConfig
41
- });
42
- module.exports = __toCommonJS(loadTamagui_exports);
43
- var StaticWorker = __toESM(require("@tamagui/static-worker"), 1);
44
- const LOAD_STATE_KEY = "__tamagui_load_state__";
45
- function getLoadState() {
46
- if (!globalThis[LOAD_STATE_KEY]) {
47
- ;
48
- globalThis[LOAD_STATE_KEY] = {
49
- loadPromise: null,
50
- loadedOptions: null,
51
- fullConfigLoaded: false,
52
- fullConfigLoadPromise: null
53
- };
54
- }
55
- return globalThis[LOAD_STATE_KEY];
56
- }
57
- function getTamaguiOptions() {
58
- return getLoadState().loadedOptions;
59
- }
60
- function getLoadPromise() {
61
- return getLoadState().loadPromise;
62
- }
63
- async function loadTamaguiBuildConfig(optionsIn) {
64
- const state = getLoadState();
65
- if (state.loadedOptions) return state.loadedOptions;
66
- if (state.loadPromise) return state.loadPromise;
67
- state.loadPromise = (async () => {
68
- const options = await StaticWorker.loadTamaguiBuildConfig({
69
- ...optionsIn,
70
- platform: "web"
71
- });
72
- state.loadedOptions = options;
73
- return options;
74
- })();
75
- return state.loadPromise;
76
- }
77
- async function ensureFullConfigLoaded() {
78
- const state = getLoadState();
79
- if (state.fullConfigLoaded) return;
80
- if (state.fullConfigLoadPromise) return state.fullConfigLoadPromise;
81
- state.fullConfigLoadPromise = (async () => {
82
- const options = await loadTamaguiBuildConfig();
83
- if (!options.disableWatchTamaguiConfig && !options.disable) {
84
- await StaticWorker.loadTamagui({
85
- components: ["tamagui"],
86
- platform: "web",
87
- ...options
88
- });
89
- }
90
- state.fullConfigLoaded = true;
91
- })();
92
- return state.fullConfigLoadPromise;
93
- }
94
- async function cleanup() {
95
- await StaticWorker.destroyPool();
96
- const state = getLoadState();
97
- state.loadPromise = null;
98
- state.loadedOptions = null;
99
- state.fullConfigLoaded = false;
100
- state.fullConfigLoadPromise = null;
101
- }
@@ -1,75 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
- // If the importer is in node compatibility mode or this is not an ESM
17
- // file that has been converted to a CommonJS file using a Babel-
18
- // compatible transform (i.e. "__esModule" has not been set), then set
19
- // "default" to the CommonJS "module.exports" for node compatibility.
20
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
- mod
22
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
- var loadTamagui_exports = {};
24
- __export(loadTamagui_exports, {
25
- cleanup: () => cleanup,
26
- ensureFullConfigLoaded: () => ensureFullConfigLoaded,
27
- getLoadPromise: () => getLoadPromise,
28
- getTamaguiOptions: () => getTamaguiOptions,
29
- loadTamaguiBuildConfig: () => loadTamaguiBuildConfig
30
- });
31
- module.exports = __toCommonJS(loadTamagui_exports);
32
- var StaticWorker = __toESM(require("@tamagui/static-worker"), 1);
33
- const LOAD_STATE_KEY = "__tamagui_load_state__";
34
- function getLoadState() {
35
- return globalThis[LOAD_STATE_KEY] || (globalThis[LOAD_STATE_KEY] = {
36
- loadPromise: null,
37
- loadedOptions: null,
38
- fullConfigLoaded: !1,
39
- fullConfigLoadPromise: null
40
- }), globalThis[LOAD_STATE_KEY];
41
- }
42
- function getTamaguiOptions() {
43
- return getLoadState().loadedOptions;
44
- }
45
- function getLoadPromise() {
46
- return getLoadState().loadPromise;
47
- }
48
- async function loadTamaguiBuildConfig(optionsIn) {
49
- const state = getLoadState();
50
- return state.loadedOptions ? state.loadedOptions : (state.loadPromise || (state.loadPromise = (async () => {
51
- const options = await StaticWorker.loadTamaguiBuildConfig({
52
- ...optionsIn,
53
- platform: "web"
54
- });
55
- return state.loadedOptions = options, options;
56
- })()), state.loadPromise);
57
- }
58
- async function ensureFullConfigLoaded() {
59
- const state = getLoadState();
60
- if (!state.fullConfigLoaded)
61
- return state.fullConfigLoadPromise || (state.fullConfigLoadPromise = (async () => {
62
- const options = await loadTamaguiBuildConfig();
63
- !options.disableWatchTamaguiConfig && !options.disable && await StaticWorker.loadTamagui({
64
- components: ["tamagui"],
65
- platform: "web",
66
- ...options
67
- }), state.fullConfigLoaded = !0;
68
- })()), state.fullConfigLoadPromise;
69
- }
70
- async function cleanup() {
71
- await StaticWorker.destroyPool();
72
- const state = getLoadState();
73
- state.loadPromise = null, state.loadedOptions = null, state.fullConfigLoaded = !1, state.fullConfigLoadPromise = null;
74
- }
75
- //# sourceMappingURL=loadTamagui.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/loadTamagui.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA8B;AAI9B,MAAM,iBAAiB;AASvB,SAAS,eAA0B;AACjC,SAAM,WAAmB,cAAc,MACnC,WAAmB,cAAc,IAAI;AAAA,IACrC,aAAa;AAAA,IACb,eAAe;AAAA,IACf,kBAAkB;AAAA,IAClB,uBAAuB;AAAA,EACzB,IAEM,WAAmB,cAAc;AAC3C;AAEO,SAAS,oBAA2C;AACzD,SAAO,aAAa,EAAE;AACxB;AAEO,SAAS,iBAAiD;AAC/D,SAAO,aAAa,EAAE;AACxB;AAMA,eAAsB,uBACpB,WACyB;AACzB,QAAM,QAAQ,aAAa;AAC3B,SAAI,MAAM,gBAAsB,MAAM,iBAClC,MAAM,gBAEV,MAAM,eAAe,YAAY;AAC/B,UAAM,UAAU,MAAM,aAAa,uBAAuB;AAAA,MACxD,GAAG;AAAA,MACH,UAAU;AAAA,IACZ,CAAC;AAED,iBAAM,gBAAgB,SACf;AAAA,EACT,GAAG,IAEI,MAAM;AACf;AAMA,eAAsB,yBAAwC;AAC5D,QAAM,QAAQ,aAAa;AAE3B,MAAI,OAAM;AACV,WAAI,MAAM,0BAIV,MAAM,yBAAyB,YAAY;AACzC,YAAM,UAAU,MAAM,uBAAuB;AAG7C,MAAI,CAAC,QAAQ,6BAA6B,CAAC,QAAQ,WACjD,MAAM,aAAa,YAAY;AAAA,QAC7B,YAAY,CAAC,SAAS;AAAA,QACtB,UAAU;AAAA,QACV,GAAG;AAAA,MACL,CAAC,GAEH,MAAM,mBAAmB;AAAA,IAC3B,GAAG,IAEI,MAAM;AACf;AAEA,eAAsB,UAAU;AAC9B,QAAM,aAAa,YAAY;AAC/B,QAAM,QAAQ,aAAa;AAC3B,QAAM,cAAc,MACpB,MAAM,gBAAgB,MACtB,MAAM,mBAAmB,IACzB,MAAM,wBAAwB;AAChC;",
5
- "names": []
6
- }