Skip to content

Commit

Permalink
Merge pull request #38 from TrySound/add-buble
Browse files Browse the repository at this point in the history
Add buble extension
  • Loading branch information
Tyler Kellen committed May 1, 2016
2 parents a62691b + b11aca3 commit 18b824e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ Map file types to modules which provide a [require.extensions] loader.
}
}
],
'.buble.js': [
{
module: 'buble/register',
register: function (module) {
module({
extensions: '.js'
});
}
}
],
'.cirru': 'cirru-script/lib/register',
'.cjsx': 'node-cjsx/register',
'.co': 'coco',
Expand Down
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ const extensions = {
}
}
],
'.buble.js': [
{
module: 'buble/register',
register: function (module) {
module({
extensions: '.js'
});
}
}
],
'.cirru': 'cirru-script/lib/register',
'.cjsx': 'node-cjsx/register',
'.co': 'coco',
Expand Down Expand Up @@ -96,6 +106,7 @@ const extensions = {
const jsVariantExtensions = [
'.js',
'.babel.js',
'.buble.js',
'.cirru',
'.cjsx',
'.co',
Expand Down

0 comments on commit 18b824e

Please sign in to comment.