@fal-works/esbuild-plugin-global-externals
Advanced tools
Comparing version 2.1.1 to 2.1.2
export const normalizeModuleInfo = (value) => { | ||
const { type = "esm", varName, namedExports = null, defaultExport = true } = | ||
typeof value === "string" ? { varName: value } : value; | ||
const { | ||
type = "esm", | ||
varName, | ||
namedExports = null, | ||
defaultExport = true, | ||
} = typeof value === "string" ? { varName: value } : value; | ||
return { type, varName, namedExports, defaultExport }; | ||
}; |
const createCjsContents = (variableName) => `module.exports = ${variableName};`; | ||
const a = 0; | ||
const createEsmContents = (variableName, namedExports, defaultExport) => { | ||
@@ -3,0 +4,0 @@ const codeElements = defaultExport ? [`export default ${variableName};`] : []; |
{ | ||
"name": "@fal-works/esbuild-plugin-global-externals", | ||
"description": "esbuild plugin for replacing imports with global variables.", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"license": "MIT", | ||
@@ -29,14 +29,12 @@ "author": "FAL", | ||
}, | ||
"dependencies": { | ||
"esbuild": "^0.8.40" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "4.14.2", | ||
"@typescript-eslint/parser": "^4.14.2", | ||
"eslint": "7.19.0", | ||
"eslint-config-prettier": "^7.2.0", | ||
"eslint-plugin-total-functions": "^4.7.2", | ||
"prettier": "^2.2.1", | ||
"@typescript-eslint/eslint-plugin": "4.28.3", | ||
"@typescript-eslint/parser": "^4.28.3", | ||
"esbuild": "^0.12.15", | ||
"eslint": "7.31.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-total-functions": "^4.9.0", | ||
"prettier": "^2.3.2", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.1.3" | ||
"typescript": "^4.3.5" | ||
}, | ||
@@ -43,0 +41,0 @@ "scripts": { |
@@ -5,7 +5,7 @@ # esbuild-plugin-global-externals | ||
Developed with: esbuild v0.8.40 | ||
Similar to (but not the same as) `output.globals` option of [Rollup](https://rollupjs.org/). See also: [evanw/esbuild#337](https://github.com/evanw/esbuild/issues/337) | ||
Originally developed with esbuild v0.8.40, and should work with higher versions as well. | ||
## TL;DR | ||
@@ -12,0 +12,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19462
0
346
9
- Removedesbuild@^0.8.40
- Removedesbuild@0.8.57(transitive)