Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit da36ec6

Browse files
committed
fix cb-i18n
1 parent fd6d2cd commit da36ec6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

public/docs/_examples/cb-i18n/ts/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
dist
44
!app/tsconfig.json
55
!rollup.js
6+
!src/systemjs-text-plugin.js
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// #docregion
2+
/*
3+
SystemJS Text plugin from
4+
https://github.com/systemjs/plugin-text/blob/master/text.js
5+
*/
6+
exports.translate = function(load) {
7+
if (this.builder && this.transpiler) {
8+
load.metadata.format = 'esm';
9+
return 'exp' + 'ort var __useDefault = true; exp' + 'ort default ' + JSON.stringify(load.source) + ';';
10+
}
11+
12+
load.metadata.format = 'amd';
13+
return 'def' + 'ine(function() {\nreturn ' + JSON.stringify(load.source) + ';\n});';
14+
}

0 commit comments

Comments
 (0)