Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add package_name to ts_library
- Loading branch information
1 parent
16a099e
commit bb9fd46
Showing
16 changed files
with
156 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ ts_library( | |
name = "lib", | ||
srcs = ["a.ts"], | ||
deps = [":index"], | ||
package_name = "lib", | ||
) | ||
|
||
esbuild( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,53 @@ | ||
(() => { | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
var __require = (x) => { | ||
if (typeof require !== "undefined") | ||
return require(x); | ||
throw new Error('Dynamic require of "' + x + '" is not supported'); | ||
}; | ||
var __commonJS = (cb, mod) => function __require2() { | ||
return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; | ||
}; | ||
var __reExport = (target, module, desc) => { | ||
if (module && typeof module === "object" || typeof module === "function") { | ||
for (let key of __getOwnPropNames(module)) | ||
if (!__hasOwnProp.call(target, key) && key !== "default") | ||
__defProp(target, key, { get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable }); | ||
} | ||
return target; | ||
}; | ||
var __toModule = (module) => { | ||
return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? { get: () => module.default, enumerable: true } : { value: module, enumerable: true })), module); | ||
}; | ||
|
||
|
||
var NAME = "bazel"; | ||
var require_lib = __commonJS({ | ||
"node_modules/lib/index.js"(exports, module) { | ||
(function(factory) { | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
var v = factory(__require, exports); | ||
if (v !== void 0) | ||
module.exports = v; | ||
} else if (typeof define === "function" && define.amd) { | ||
define("lib", ["require", "exports"], factory); | ||
} | ||
})(function(require2, exports2) { | ||
"use strict"; | ||
Object.defineProperty(exports2, "__esModule", { value: true }); | ||
exports2.NAME = void 0; | ||
exports2.NAME = "bazel"; | ||
}); | ||
} | ||
}); | ||
|
||
|
||
console.log(`Hello ${NAME}`); | ||
var import_lib = __toModule(require_lib()); | ||
console.log(`Hello ${import_lib.NAME}`); | ||
})(); | ||
//# sourceMappingURL=bundle.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
(()=>{var o="bazel";console.log(`Hello ${o}`);})(); | ||
(()=>{var c=Object.create;var n=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var s=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var a=e=>n(e,"__esModule",{value:!0});var r=e=>{if(typeof require!="undefined")return require(e);throw new Error('Dynamic require of "'+e+'" is not supported')};var j=(e,i)=>()=>(i||e((i={exports:{}}).exports,i),i.exports);var m=(e,i,t)=>{if(i&&typeof i=="object"||typeof i=="function")for(let o of p(i))!M.call(e,o)&&o!=="default"&&n(e,o,{get:()=>i[o],enumerable:!(t=b(i,o))||t.enumerable});return e},q=e=>m(a(n(e!=null?c(s(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var l=j((u,f)=>{(function(e){if(typeof f=="object"&&typeof f.exports=="object"){var i=e(r,u);i!==void 0&&(f.exports=i)}else typeof define=="function"&&define.amd&&define("lib",["require","exports"],e)})(function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.NAME=void 0,i.NAME="bazel"})});var d=q(l());console.log(`Hello ${d.NAME}`);})(); | ||
//# sourceMappingURL=bundle.min.js.map |
Oops, something went wrong.