Skip to content

Commit 5391244

Browse files
committed
fix: asc is not a function
1 parent 2b45917 commit 5391244

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export function createPlugins(
179179
// as
180180
const ascIndex = includesAny(inputPluginsNames, ["as", "asc", "assemblyscript", "AssemblyScript"])
181181
if (ascIndex !== null) {
182-
const asc = require("rollup-plugin-assemblyscript")
182+
const { asc } = require("rollup-plugin-assemblyscript")
183183
if (typeof inputPluginsNames[ascIndex] === "string") {
184184
// plugin name only
185185
plugins.push(asc())

src/tsconfig.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"compilerOptions": {
3-
//// Linting Options - Uncomment options to get more features (usually more restrictive)
43
"strict": true,
54
"strictNullChecks": true,
65
"noUnusedLocals": true,
@@ -9,32 +8,23 @@
98
"noImplicitAny": true,
109
"noImplicitThis": true,
1110
"noFallthroughCasesInSwitch": true,
12-
//// Compilation options
1311
"declaration": true,
1412
"emitDecoratorMetadata": true,
1513
"experimentalDecorators": true,
1614
"incremental": true,
17-
// "preserveConstEnums": true,
18-
"sourceMap": true,
19-
"inlineSourceMap": false,
20-
"inlineSources": false,
15+
"inlineSourceMap": true,
16+
"inlineSources": true,
2117
"preserveSymlinks": true,
2218
"removeComments": true,
23-
//
2419
"jsx": "react",
2520
"jsxFactory": "etch.dom",
26-
//
2721
"lib": ["ES2018", "dom"],
2822
"target": "ES2018",
29-
//
3023
"allowJs": true,
3124
"esModuleInterop": true,
3225
"module": "commonjs",
3326
"moduleResolution": "node",
34-
// "noLib": false,
3527
"importHelpers": false,
36-
// if true you should add tslib to deps
37-
// "skipLibCheck": false,
3828
"outDir": "../dist"
3929
},
4030
"compileOnSave": false

0 commit comments

Comments
 (0)