diff --git a/build/build.ts b/build/build.ts index 8eab983..8bd5006 100644 --- a/build/build.ts +++ b/build/build.ts @@ -23,6 +23,7 @@ const baseConfig = { declarations: true, compilerOptions: { //@ts-ignore outDir is valid + allowImportingTsExtensions: true, outDir: resolvedDistPath, }, }, @@ -39,10 +40,12 @@ const buildConfigs = [ }, { ...baseConfig, + entryPoints: [resolve(relativeProjectRoot, "src", "base64.default.ts")], outfile: resolve(resolvedDistPath, "base64.umd.js"), platform: "browser", format: "iife", globalName: "base64", + plugins: [] }, { ...baseConfig, diff --git a/deno.json b/deno.json index 02fc4e4..729c4a0 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@hexagon/base64", - "version": "2.0.0", + "version": "2.0.1", "exports": "./src/base64.ts", "lint": { "include": ["src", "test", "build"] diff --git a/src/base64.default.ts b/src/base64.default.ts new file mode 100644 index 0000000..385e9ae --- /dev/null +++ b/src/base64.default.ts @@ -0,0 +1,2 @@ +import { base64 } from "./base64.ts"; +export default base64; \ No newline at end of file diff --git a/src/base64.ts b/src/base64.ts index 237b71f..de6070a 100644 --- a/src/base64.ts +++ b/src/base64.ts @@ -153,5 +153,4 @@ const base64 = { }, }; -export default base64; -export { base64 }; +export { base64 }; \ No newline at end of file