Skip to content

Commit a5c6738

Browse files
authored
Merge pull request #317 from EmilBuszylo/master
feat: add ability to use webpack experiments
2 parents af4c2cf + b13e88b commit a5c6738

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

.idea/workspace.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ custom:
136136
- echo hello > test
137137
rawFileExtensions: # An array of file extensions to import using the Webpack raw-loader.
138138
- csv # Defaults to ['pem', 'txt']
139+
experiments: # Give the ability to activate and try out experimental features of Webpack
139140
140141
```
141142

src/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ module.exports = {
2929
externals: ["knex", "sharp"],
3030
// Set default file extensions to use the raw-loader with
3131
rawFileExtensions: ["pem", "txt"],
32+
experiments: {}
3233
},
3334
};

src/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const nodeVersion = config.nodeVersion;
3434
const externals = config.options.externals;
3535
const copyFiles = config.options.copyFiles;
3636
const concatText = config.options.concatText;
37+
const experiments = config.options.experiments;
3738
const esbuildNodeVersion = "node" + nodeVersion;
3839
const forceExclude = config.options.forceExclude;
3940
const ignorePackages = config.options.ignorePackages;
@@ -478,6 +479,7 @@ module.exports = {
478479
],
479480
},
480481
plugins: plugins(),
482+
experiments,
481483
node: {
482484
__dirname: false,
483485
},

0 commit comments

Comments
 (0)