Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@glimmer/babel-preset

Package Overview
Dependencies
Maintainers
12
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glimmer/babel-preset - npm Package Compare versions

Comparing version 2.0.0-beta.14 to 2.0.0-beta.15

35

index.js

@@ -9,10 +9,20 @@ const generateVmPlugins = require('@glimmer/vm-babel-plugins');

let isDebug = defaultTo(options.isDebug, api.environment ? !api.environment('production') : true);
let __loadPlugins = options.__loadPlugins === undefined ? false : options.__loadPlugins;
let __customInlineTemplateModules = defaultTo(options.__customInlineTemplateModules, {});
let precompile, templateCompilerPath;
if (options.precompile) {
precompile = options.precompile;
} else {
templateCompilerPath = options.templateCompilerPath || require.resolve('@glimmer/compiler');
}
return {
plugins: [
...generateVmPlugins({ isDebug }),
...generateVmPlugins({ __loadPlugins, isDebug }),
[
require.resolve('babel-plugin-debug-macros'),
__loadPlugins
? require('babel-plugin-debug-macros')
: require.resolve('babel-plugin-debug-macros'),
{

@@ -31,5 +41,8 @@ debugTools: {

[
require.resolve('babel-plugin-htmlbars-inline-precompile'),
__loadPlugins
? require('babel-plugin-htmlbars-inline-precompile')
: require.resolve('babel-plugin-htmlbars-inline-precompile'),
{
templateCompilerPath: require.resolve('@glimmer/compiler'),
templateCompilerPath,
precompile,
isProduction: !isDebug,

@@ -60,6 +73,14 @@ ensureModuleApiPolyfill: false,

[require.resolve('@babel/plugin-proposal-decorators'), { legacy: true }],
require.resolve('@babel/plugin-proposal-class-properties'),
[
__loadPlugins
? require('@babel/plugin-proposal-decorators')
: require.resolve('@babel/plugin-proposal-decorators'),
{ legacy: true },
],
__loadPlugins
? require('@babel/plugin-proposal-class-properties')
: require.resolve('@babel/plugin-proposal-class-properties'),
],
};
};

6

package.json
{
"name": "@glimmer/babel-preset",
"version": "2.0.0-beta.14",
"version": "2.0.0-beta.15",
"description": "Glimmer.js Babel Preset",

@@ -15,4 +15,4 @@ "repository": "https://github.com/glimmerjs/glimmer.js",

"@babel/plugin-proposal-decorators": "^7.8.3",
"@glimmer/compiler": "0.77.5",
"@glimmer/vm-babel-plugins": "0.77.5",
"@glimmer/compiler": "0.77.6",
"@glimmer/vm-babel-plugins": "0.77.6",
"babel-plugin-debug-macros": "^0.3.4",

@@ -19,0 +19,0 @@ "babel-plugin-htmlbars-inline-precompile": "^5.2.0"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc