Skip to content

Commit facd8b4

Browse files
committed
Exclude more modules from asc build
1 parent 08d9ba1 commit facd8b4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

webpack.config.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const path = require("path");
22
const fs = require("fs");
33
const webpack = require("webpack");
44

5-
// Build just the C-like library
5+
// Build the C-like library
66
const lib = {
77
entry: [ "./src/glue/js.js", "./src/index.ts" ],
88
module: {
@@ -47,7 +47,11 @@ const bin = {
4747
amd: "assemblyscript",
4848
root: "_"
4949
},
50-
}, "./assemblyscript", "source-map-support"],
50+
"./assemblyscript": {
51+
commonjs: "./assemblyscript",
52+
commonjs2: "./assemblyscript"
53+
}
54+
}],
5155
node: {
5256
"fs": "empty",
5357
"global": true,
@@ -76,7 +80,7 @@ const bin = {
7680
})(),
7781
__dirname: JSON.stringify(".")
7882
}),
79-
new webpack.IgnorePlugin(/\.\/src|package\.json|^(ts\-node|glob)$/),
83+
new webpack.IgnorePlugin(/\.\/src|package\.json|^(ts\-node|glob|source\-map\-support)$/),
8084
// Error: original.line and original.column are not numbers -- you probably meant to omit the
8185
// original mapping entirely and only map the generated position. If so, pass null for the
8286
// original mapping instead of an object with empty or null values.

0 commit comments

Comments
 (0)