File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const path = require("path");
2
2
const fs = require ( "fs" ) ;
3
3
const webpack = require ( "webpack" ) ;
4
4
5
- // Build just the C-like library
5
+ // Build the C-like library
6
6
const lib = {
7
7
entry : [ "./src/glue/js.js" , "./src/index.ts" ] ,
8
8
module : {
@@ -47,7 +47,11 @@ const bin = {
47
47
amd : "assemblyscript" ,
48
48
root : "_"
49
49
} ,
50
- } , "./assemblyscript" , "source-map-support" ] ,
50
+ "./assemblyscript" : {
51
+ commonjs : "./assemblyscript" ,
52
+ commonjs2 : "./assemblyscript"
53
+ }
54
+ } ] ,
51
55
node : {
52
56
"fs" : "empty" ,
53
57
"global" : true ,
@@ -76,7 +80,7 @@ const bin = {
76
80
} ) ( ) ,
77
81
__dirname : JSON . stringify ( "." )
78
82
} ) ,
79
- new webpack . IgnorePlugin ( / \. \/ s r c | p a c k a g e \. j s o n | ^ ( t s \- n o d e | g l o b ) $ / ) ,
83
+ new webpack . IgnorePlugin ( / \. \/ s r c | p a c k a g e \. j s o n | ^ ( t s \- n o d e | g l o b | s o u r c e \- m a p \- s u p p o r t ) $ / ) ,
80
84
// Error: original.line and original.column are not numbers -- you probably meant to omit the
81
85
// original mapping entirely and only map the generated position. If so, pass null for the
82
86
// original mapping instead of an object with empty or null values.
You can’t perform that action at this time.
0 commit comments