-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
88 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
] | ||
}, | ||
"fable": { | ||
"version": "3.7.11", | ||
"version": "3.7.8", | ||
"commands": [ | ||
"fable" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
var path = require("path"); | ||
|
||
function resolve(filePath) { | ||
return path.join(__dirname, filePath) | ||
} | ||
|
||
var babelOptions = { | ||
presets: [ | ||
["@babel/preset-env", { | ||
"modules": false | ||
}] | ||
], | ||
plugins: ["@babel/plugin-transform-runtime"] | ||
} | ||
|
||
module.exports = function(env, argv) { | ||
var isProduction = argv.mode == "production" | ||
console.log("Bundling for " + (isProduction ? "production" : "development") + "..."); | ||
|
||
var ionideExperimental = (env && env.ionideExperimental); | ||
var outputPath = ionideExperimental ? "release-exp" : "release"; | ||
console.log("Output path: " + outputPath); | ||
|
||
return { | ||
target: 'node', | ||
mode: isProduction ? "production" : "development", | ||
devtool: "source-map", | ||
entry: './out/fsharp.js', | ||
output: { | ||
filename: 'fsharp.js', | ||
path: resolve('./' + outputPath), | ||
//library: 'IONIDEFSHARP', | ||
libraryTarget: 'commonjs2' | ||
}, | ||
resolve: { | ||
modules: [resolve("./node_modules/")] | ||
}, | ||
//externals: [nodeExternals()], | ||
externals: { | ||
// Who came first the host or the plugin ? | ||
"vscode": "commonjs vscode", | ||
|
||
// Optional dependencies of ws | ||
"utf-8-validate": "commonjs utf-8-validate", | ||
"bufferutil": "commonjs bufferutil" | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
use: { | ||
loader: 'babel-loader', | ||
options: babelOptions | ||
}, | ||
} | ||
] | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters