Skip to content

Commit 90a3658

Browse files
committed
feat(origin-loader): move origin setting out to loader-webpack
BREAKING CHANGE: requires changes from loader-webpack (aurelia/loader-webpack@b6a3ed0)
1 parent 4223ab2 commit 90a3658

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/origin-loader.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ module.exports = function(source, map) {
66
this.cacheable();
77

88
const newSource = source + `
9-
import {Origin as __au_o__} from 'aurelia-metadata';
10-
for (var exportName in module.exports) {
11-
__au_o__.set(module.exports[exportName], new __au_o__(${JSON.stringify(moduleId)}, exportName));
12-
}`;
9+
import {ensureOriginOnExports as __au_ensure__} from 'aurelia-loader-webpack';
10+
__au_ensure__(module.exports, ${JSON.stringify(moduleId)});`;
1311

1412
this.callback(null, newSource, map);
1513

0 commit comments

Comments
 (0)