mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-05-04 19:32:15 +00:00
Exclude more modules from asc build
This commit is contained in:
parent
08d9ba12aa
commit
facd8b44b3
@ -2,7 +2,7 @@ const path = require("path");
|
|||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const webpack = require("webpack");
|
const webpack = require("webpack");
|
||||||
|
|
||||||
// Build just the C-like library
|
// Build the C-like library
|
||||||
const lib = {
|
const lib = {
|
||||||
entry: [ "./src/glue/js.js", "./src/index.ts" ],
|
entry: [ "./src/glue/js.js", "./src/index.ts" ],
|
||||||
module: {
|
module: {
|
||||||
@ -47,7 +47,11 @@ const bin = {
|
|||||||
amd: "assemblyscript",
|
amd: "assemblyscript",
|
||||||
root: "_"
|
root: "_"
|
||||||
},
|
},
|
||||||
}, "./assemblyscript", "source-map-support"],
|
"./assemblyscript": {
|
||||||
|
commonjs: "./assemblyscript",
|
||||||
|
commonjs2: "./assemblyscript"
|
||||||
|
}
|
||||||
|
}],
|
||||||
node: {
|
node: {
|
||||||
"fs": "empty",
|
"fs": "empty",
|
||||||
"global": true,
|
"global": true,
|
||||||
@ -76,7 +80,7 @@ const bin = {
|
|||||||
})(),
|
})(),
|
||||||
__dirname: JSON.stringify(".")
|
__dirname: JSON.stringify(".")
|
||||||
}),
|
}),
|
||||||
new webpack.IgnorePlugin(/\.\/src|package\.json|^(ts\-node|glob)$/),
|
new webpack.IgnorePlugin(/\.\/src|package\.json|^(ts\-node|glob|source\-map\-support)$/),
|
||||||
// Error: original.line and original.column are not numbers -- you probably meant to omit the
|
// Error: original.line and original.column are not numbers -- you probably meant to omit the
|
||||||
// original mapping entirely and only map the generated position. If so, pass null for the
|
// original mapping entirely and only map the generated position. If so, pass null for the
|
||||||
// original mapping instead of an object with empty or null values.
|
// original mapping instead of an object with empty or null values.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user