Skip to content

Commit

Permalink
remove unused config, disable .map for mega global
Browse files Browse the repository at this point in the history
  • Loading branch information
justjake committed Dec 27, 2023
1 parent 16bd660 commit b8c49c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ module.exports = {
"import/order": "error",
"import/no-duplicates": "error",
"import/no-cycle": "error",
"@typescript-eslint/no-unused-vars": ["error", {
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
}]
},
settings: {
// 'import/resolver': {
Expand Down
8 changes: 3 additions & 5 deletions packages/quickjs-emscripten/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ const configs = [
globalName: "QJS",
target: [...browsers],
tsconfig: "./tsconfig.iife.json",
esbuildOptions(options, context) {
sourcemap: false,
dts: false,
esbuildOptions(options, _context) {
options.conditions ??= []
options.conditions.push("iife")
options.alias ??= {}
// options.alias["./src/variants.ts"] = "./src/variants.iife.ts"
options.alias["quickjs-emscripten/variants"] = "./src/variants.iife.ts"
console.log(context, options.conditions)
},
}),
]
Expand Down

0 comments on commit b8c49c2

Please sign in to comment.