Skip to content

Commit

Permalink
fix(webpack) no longer need to remove 'fs' import at compile-time (#168)
Browse files Browse the repository at this point in the history
* remove(webpack) no longer need to remove 'fs' import at compile-time

* chore(dep) upgrade webm-writer to 1.0.0
  • Loading branch information
chrisgervang authored Oct 19, 2021
1 parent e9c9b3c commit 046327a
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 41 deletions.
4 changes: 0 additions & 4 deletions examples/camera/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ const CONFIG = {
]
},

node: {
fs: 'empty'
},

plugins: [
new HtmlWebpackPlugin({title: 'hubble.gl deck camera example'}),
// Optional: Enables reading mapbox token from environment variable
Expand Down
4 changes: 0 additions & 4 deletions examples/kepler-integration/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ const CONFIG = {
]
},

node: {
fs: 'empty'
},

plugins: [
new HtmlWebpackPlugin({title: 'hubble.gl kepler export example'}),
// Optional: Enables reading mapbox token from environment variable
Expand Down
4 changes: 0 additions & 4 deletions examples/pure-js/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ const CONFIG = {

entry: {
app: './app.js'
},

node: {
fs: 'empty'
}
};

Expand Down
4 changes: 0 additions & 4 deletions examples/quick-start/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ const CONFIG = {
]
},

node: {
fs: 'empty'
},

plugins: [
new HtmlWebpackPlugin({title: 'hubble.gl deck quick-start example'}),
// Optional: Enables reading mapbox token from environment variable
Expand Down
4 changes: 0 additions & 4 deletions examples/standalone/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ const CONFIG = {

mode: 'development',

node: {
fs: 'empty'
},

plugins: [
new webpack.DefinePlugin({
__MAPBOX_TOKEN__: JSON.stringify(process.env.MapboxAccessToken) // eslint-disable-line
Expand Down
4 changes: 0 additions & 4 deletions examples/terrain/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ const CONFIG = {
]
},

node: {
fs: 'empty'
},

plugins: [
new HtmlWebpackPlugin({title: 'hubble.gl terrain example'}),
// Optional: Enables reading mapbox token from environment variable
Expand Down
4 changes: 0 additions & 4 deletions examples/trips/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ const CONFIG = {
]
},

node: {
fs: 'empty'
},

plugins: [
new HtmlWebpackPlugin({title: 'hubble.gl deck trips example'}),
// Optional: Enables reading mapbox token from environment variable
Expand Down
4 changes: 0 additions & 4 deletions examples/worldview/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ const CONFIG = {
]
},

node: {
fs: 'empty'
},

plugins: [
new HtmlWebpackPlugin({title: 'hubble.gl kepler export example'}),
// Optional: Enables reading mapbox token from environment variable
Expand Down
2 changes: 1 addition & 1 deletion modules/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@math.gl/web-mercator": "^3.4.2",
"downloadjs": "^1.4.7",
"popmotion": "^8.6.10",
"webm-writer": "^0.2.2",
"webm-writer": "^1.0.0",
"probe.gl": "^3.4.0"
}
}
5 changes: 1 addition & 4 deletions scripts/bundle.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ const config = {
// ,new (require('webpack-bundle-analyzer').BundleAnalyzerPlugin)()
],

node: {
fs: 'empty'
},

node: false,
devtool: false
};

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13586,10 +13586,10 @@ webidl-conversions@^4.0.2:
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"
integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==

webm-writer@^0.2.2:
version "0.2.4"
resolved "https://registry.yarnpkg.com/webm-writer/-/webm-writer-0.2.4.tgz#82478e9e0e1afd0d362dcdba2d9af46c36c39e7b"
integrity sha512-3qKVGTcbpKibczZpK/t24ULi3f+gSUjHhVPILF3yURy/j0TBiECsTLa3ar/HB6WT3seX2TKnI7HpZGUNs4013g==
webm-writer@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/webm-writer/-/webm-writer-1.0.0.tgz#78367e435dddf9bed633dd98c7ca9b36438d9943"
integrity sha512-xafP4mzUqht03HBXP0Ov2YGsxfD08uncad9fQeshYwQXrcP6Z/4uxd1IUaGKqKigFPAgaD9xb6JEKA8SXLQMLA==

webpack-bundle-analyzer@^3.0.3:
version "3.7.0"
Expand Down

0 comments on commit 046327a

Please sign in to comment.