Skip to content

Commit 0a19106

Browse files
author
fengwan
committed
use lastest AssemblyScript
1 parent 96e8106 commit 0a19106

File tree

5 files changed

+834
-121
lines changed

5 files changed

+834
-121
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
a webpack loader for compiles typescript with assemblyscript and bundles it as wasm or btyes string,it as well with [Marauder](https://github.com/SinaMFE/webpack-marauder) system
21

32

4-
[unfortunately] this package need https://github.com/AssemblyScript/assemblyscript version 0.5.0 ,but it not found in npm registry,you can only install this version from github currently。
5-
6-
7-
and it depend on version 0.5.0 of assemblyscript npm package; you can install it manually from https://github.com/AssemblyScript/assemblyscript(https://github.com/AssemblyScript/assemblyscript)
3+
A webpack loader for compiles typescript with [AssemblyScript](https://github.com/AssemblyScript/assemblyscript) and bundles it as wasm or btyes string,it as well with [Marauder](https://github.com/SinaMFE/webpack-marauder) System

index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ function AssemblyScriptLoader(source) {
2727
}
2828
var me = this;
2929
var targetPath = this._compiler.outputPath;
30-
30+
var buildTempPath = path.join(this._compiler.context,"/temp/assembly/");
3131
targetPath = path.join(
32-
targetPath,
33-
"/static/" + path.parse(this.resourcePath).name + ".wasm"
32+
buildTempPath, path.parse(this.resourcePath).name + ".wasm"
3433
);
35-
mkdirsSync(path.join(this._compiler.outputPath, "/static/"));
34+
mkdirsSync(buildTempPath);
3635
asc.main(
3736
[
3837
path.relative(process.cwd(), this.resourcePath),

package-lock.json

Lines changed: 0 additions & 94 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "assemblyscript-typescript-loader",
3-
"version": "1.2.0",
3+
"version": "1.2.4",
44
"description": "a webpack loader for compiles typescript with assemblyscript and bundles it as wasm or btyes string",
55
"main": "index.js",
66
"scripts": {
@@ -22,12 +22,11 @@
2222
"url": "https://github.com/SinaMFE/assemblyscript-typescript-loader/issues"
2323
},
2424
"homepage": "https://github.com/SinaMFE/assemblyscript-typescript-loader#readme",
25-
"devDependencies": {
26-
"assemblyscript": "^0.3.0"
27-
},
2825
"dependencies": {
26+
"assemblyscript": "AssemblyScript/assemblyscript",
2927
"loader-utils": "^1.1.0",
3028
"mime": "^2.2.0",
29+
"ts-loader": "^3.5.0",
3130
"schema-utils": "^0.4.5"
3231
}
3332
}

0 commit comments

Comments
 (0)