@glimmer/vm-babel-plugins
Advanced tools
Comparing version 0.85.13 to 0.86.0
@@ -7,4 +7,5 @@ import { createRequire } from 'node:module'; | ||
} | ||
function generateVmPlugins() { | ||
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
function generateVmPlugins(options = {} | ||
// eslint-disable-next-line @typescript-eslint/consistent-type-imports | ||
) { | ||
let isDebug = defaultTo(options.isDebug, true); | ||
@@ -11,0 +12,0 @@ let __loadPlugins = defaultTo(options.__loadPlugins, false); |
@@ -1,2 +0,2 @@ | ||
import{createRequire as e}from"node:module";const l=e(import.meta.url);function o(e,l){return void 0===e?l:e}function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o(e.isDebug,!0);return[[o(e.__loadPlugins,!1)?l("babel-plugin-debug-macros"):l.resolve("babel-plugin-debug-macros"),{debugTools:{source:"@glimmer/global-context",isDebug:r},externalizeHelpers:{module:!0},flags:[{source:"@glimmer/env",flags:{DEBUG:r}}]},"glimmer-vm-debug-macros"]]}export{r as default}; | ||
import{createRequire as e}from"node:module";const l=e(import.meta.url);function o(e,l){return void 0===e?l:e}function r(e={}){let r=o(e.isDebug,!0);return[[o(e.__loadPlugins,!1)?l("babel-plugin-debug-macros"):l.resolve("babel-plugin-debug-macros"),{debugTools:{source:"@glimmer/global-context",isDebug:r},externalizeHelpers:{module:!0},flags:[{source:"@glimmer/env",flags:{DEBUG:r}}]},"glimmer-vm-debug-macros"]]}export{r as default}; | ||
//# sourceMappingURL=index.js.map |
@@ -24,4 +24,3 @@ import { createRequire } from 'node:module'; | ||
__loadPlugins | ||
? | ||
require('babel-plugin-debug-macros') | ||
? require('babel-plugin-debug-macros') | ||
: require.resolve('babel-plugin-debug-macros'), | ||
@@ -28,0 +27,0 @@ { |
{ | ||
"name": "@glimmer/vm-babel-plugins", | ||
"type": "module", | ||
"version": "0.85.13", | ||
"version": "0.86.0", | ||
"license": "MIT", | ||
"description": "Compiles out VM assertion and deprecation utilities and debug tooling based on environment", | ||
"repository": "https://github.com/glimmerjs/glimmer.js", | ||
"author": "Tom Dale <tom@tomdale.net>", | ||
"license": "MIT", | ||
"type": "module", | ||
"private": false, | ||
"engines": { | ||
"node": ">=16" | ||
"main": null, | ||
"types": "index.ts", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
@@ -21,20 +23,18 @@ "files": [ | ||
"babel-plugin-tester": "^11.0.4", | ||
"eslint": "^8.52.0", | ||
"eslint": "^8.54.0", | ||
"mocha": "^10.2.0", | ||
"publint": "^0.2.5", | ||
"rollup": "^3.21.6", | ||
"rollup": "^4.5.1", | ||
"typescript": "*", | ||
"@glimmer-workspace/build-support": "^1.0.0" | ||
}, | ||
"main": null, | ||
"types": "index.ts", | ||
"publishConfig": { | ||
"access": "public" | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c rollup.config.mjs", | ||
"test": "mocha", | ||
"test:lint": "eslint .", | ||
"test:types": "tsc --noEmit -p ../tsconfig.json", | ||
"build": "rollup -c rollup.config.mjs", | ||
"test:publint": "publint" | ||
"test:publint": "publint", | ||
"test:types": "tsc --noEmit -p ../tsconfig.json" | ||
}, | ||
@@ -41,0 +41,0 @@ "exports": { |
@@ -11,5 +11,3 @@ # @glimmer/vm-babel-plugins | ||
module.exports = { | ||
plugins: [ | ||
...vmBabelPlugins({ isDebug: true }), | ||
], | ||
plugins: [...vmBabelPlugins({ isDebug: true })], | ||
}; | ||
@@ -16,0 +14,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
108
9979
17