mirror of
https://github.com/beijaflor-io/ghcjs-commonjs.git
synced 2024-10-03 20:57:48 +03:00
Update the codebase
This commit is contained in:
parent
65bb7c90a9
commit
4b19aa7824
@ -20,5 +20,6 @@ Haskell/JavaScript. It shows that we may wrap pure and unpure computations
|
||||
**failure** shows that any errors thrown from the Haskell world will result in
|
||||
the Promise being rejected.
|
||||
|
||||
## `webpack` Integrating Haskell code onto an existing webpack build
|
||||
**webpack**
|
||||
## `webpack` Basic Haskell webpack build system integration
|
||||
**webpack** shows off how to `require('Stuff.hs')` from JavaScript using
|
||||
webpack this integration is still primitive but easy to improve.
|
||||
|
@ -4,6 +4,9 @@
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"webpack-build": "webpack",
|
||||
"webpack-build-production": "NODE_ENV=production webpack",
|
||||
"build": "npm run webpack-build-production",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
|
@ -60,7 +60,6 @@ function patchWrapper(out) {
|
||||
|
||||
exports = module.exports = function ghcjsLoader(content) {
|
||||
const jsExePath = compileSync(this, content);
|
||||
|
||||
const cwd = process.cwd();
|
||||
const relPath = path.relative(cwd, this.resourcePath);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user