Skip to content

Commit eef8ef2

Browse files
committed
Fix asc bundle AMD usage
1 parent 4633fda commit eef8ef2

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

bin/asc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ try {
1919
assemblyscript = require("../src");
2020
isDev = true;
2121
} catch (e) {
22-
// last resort: browser bundle under node (relative to 'dist/')
22+
// last resort: same directory CommonJS
2323
assemblyscript = require("./assemblyscript");
2424
isDev = false;
2525
}

dist/asc.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/asc.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webpack.config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ const bin = {
4545
commonjs2: "assemblyscript",
4646
amd: "assemblyscript",
4747
root: "_"
48-
},
49-
"./assemblyscript": {
50-
commonjs: "./assemblyscript",
51-
commonjs2: "./assemblyscript"
5248
}
5349
}],
5450
node: {
@@ -83,7 +79,7 @@ const bin = {
8379
},
8480
__dirname: JSON.stringify(".")
8581
}),
86-
new webpack.IgnorePlugin(/\.\/src|package\.json|^(ts\-node|glob|source\-map\-support)$/),
82+
new webpack.IgnorePlugin(/\.\/src|package\.json|^(\.\/assemblyscript|ts\-node|glob|source\-map\-support)$/),
8783
]
8884
};
8985

0 commit comments

Comments
 (0)