Comparing version 1.0.4 to 1.1.0
18
index.js
const extensions = { | ||
'.babel.js': [ | ||
{ | ||
module: '@babel/register', | ||
register: function (module) { | ||
module({ | ||
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353 | ||
// which only captures the final extension (.babel.js -> .js) | ||
extensions: '.js' | ||
}); | ||
} | ||
}, | ||
{ | ||
module: 'babel-register', | ||
@@ -46,2 +56,10 @@ register: function (module) { | ||
{ | ||
module: '@babel/register', | ||
register: function (module) { | ||
module({ | ||
extensions: '.jsx' | ||
}); | ||
} | ||
}, | ||
{ | ||
module: 'babel-register', | ||
@@ -48,0 +66,0 @@ register: function (module) { |
{ | ||
"name": "interpret", | ||
"description": "A dictionary of file extensions and associated module loaders.", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/tkellen/node-interpret", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -18,2 +18,12 @@ # interpret | ||
{ | ||
module: '@babel/register', | ||
register: function (module) { | ||
module({ | ||
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353 | ||
// which only captures the final extension (.babel.js -> .js) | ||
extensions: '.js' | ||
}); | ||
} | ||
}, | ||
{ | ||
module: 'babel-register', | ||
@@ -61,2 +71,10 @@ register: function (module) { | ||
{ | ||
module: '@babel/register', | ||
register: function (module) { | ||
module({ | ||
extensions: '.jsx' | ||
}); | ||
} | ||
}, | ||
{ | ||
module: 'babel-register', | ||
@@ -63,0 +81,0 @@ register: function (module) { |
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
11949
139
146