Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start using the node protocol for imports #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions browser/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// For a more comprehensive configuration check:
// https://github.com/fable-compiler/webpack-config-template

var path = require("path");
const path = require("node:path");

module.exports = {
mode: "development",
Expand All @@ -15,4 +15,4 @@ module.exports = {
contentBase: "./public",
port: 8080,
}
}
}
2 changes: 1 addition & 1 deletion fsx-script/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const path = require("path");
const path = require("node:path");

module.exports = {
entry: './src/App.fsx',
Expand Down
4 changes: 2 additions & 2 deletions interop/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// For a more comprehensive configuration check:
// https://github.com/fable-compiler/webpack-config-template

var path = require("path");
const path = require("node:path");

module.exports = {
mode: "development",
Expand All @@ -15,4 +15,4 @@ module.exports = {
contentBase: "./public",
port: 8080,
}
}
}
4 changes: 2 additions & 2 deletions interopFableFromJS/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// For a more comprehensive configuration check:
// https://github.com/fable-compiler/webpack-config-template

var path = require("path");
const path = require("node:path");

module.exports = {
mode: "development",
Expand All @@ -15,4 +15,4 @@ module.exports = {
contentBase: "./public",
port: 8080,
}
}
}
4 changes: 2 additions & 2 deletions minimal/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// For a more comprehensive configuration check:
// https://github.com/fable-compiler/webpack-config-template

var path = require("path");
const path = require("node:path");

module.exports = {
mode: "development",
Expand All @@ -15,4 +15,4 @@ module.exports = {
contentBase: "./public",
port: 8080,
}
}
}
4 changes: 2 additions & 2 deletions nodejsbundle/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var path = require("path");
const path = require("node:path");

var babelOptions = {
presets: [
Expand Down Expand Up @@ -48,4 +48,4 @@ module.exports = {
}
]
},
};
};
4 changes: 2 additions & 2 deletions promises/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// For a more comprehensive configuration check:
// https://github.com/fable-compiler/webpack-config-template

var path = require("path");
const path = require("node:path");

module.exports = {
mode: "development",
Expand All @@ -15,4 +15,4 @@ module.exports = {
contentBase: "./public",
port: 8080,
}
}
}
9 changes: 6 additions & 3 deletions reactComponent/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
var path = require('path');
const path = require('node:path');

const babelConf = {
presets: [
["@babel/preset-env", {
"modules":false,
"corejs": 3,
"useBuiltIns": "usage"
}]
]}
]
}

module.exports = {
entry: './src/index.fs.js',
output: {
Expand All @@ -33,4 +36,4 @@ module.exports = {
externals: {
'react': 'amd react' // this line is just to use the React dependency of our parent-testing-project instead of using our own React.
}
};
};
4 changes: 2 additions & 2 deletions withpaket/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// For a more comprehensive configuration check:
// https://github.com/fable-compiler/webpack-config-template

var path = require("path");
const path = require("node:path");

module.exports = {
mode: "development",
Expand All @@ -15,4 +15,4 @@ module.exports = {
contentBase: "./public",
port: 8080,
},
}
}