@glimmer/babel-preset
Advanced tools
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'), | ||
], | ||
}; | ||
}; |
{ | ||
"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" |
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
9754
204
+ Added@glimmer/compiler@0.77.6(transitive)
+ Added@glimmer/interfaces@0.77.6(transitive)
+ Added@glimmer/syntax@0.77.6(transitive)
+ Added@glimmer/util@0.77.6(transitive)
+ Added@glimmer/vm-babel-plugins@0.77.6(transitive)
+ Added@glimmer/wire-format@0.77.6(transitive)
- Removed@glimmer/compiler@0.77.5(transitive)
- Removed@glimmer/interfaces@0.77.5(transitive)
- Removed@glimmer/syntax@0.77.5(transitive)
- Removed@glimmer/util@0.77.5(transitive)
- Removed@glimmer/vm-babel-plugins@0.77.5(transitive)
- Removed@glimmer/wire-format@0.77.5(transitive)
Updated@glimmer/compiler@0.77.6