Comments (3)
I don't understand the question :(
from webpack.
Mhmm maybe I got it wrong. I was looking for a possibility to write:
resolve: {
loaders: [require("./myLoader.js")]
}
But this can be accomplished if myLoader exported a test
- and a loader
-property. Sorry for this unnecessary issue :)
from webpack.
It works when myLoader.js
looks like this:
function myLoader() {
...
}
myLoader.loader = __filename;
myLoader.test = myRegExp;
module.exports = myLoader;
from webpack.
Related Issues (20)
- When libraryTarget is set to module, the externals configuration appends hardcoded arrow functions that cannot be transformed HOT 3
- module.buildInfo.fileDependencies is undefined in webpack 5 HOT 1
- PackFileCacheStrategy/FileSystemInfo warnings in console when using buildDependencies HOT 1
- ModuleFederationPlugin路径解析问题 HOT 1
- Shared Module Not Available for Eager Consumption
- Webpack 5 is tree shaking all modules required using require.resolve
- Web Workers in a project with `experiments.outputModule = true` call `importScripts` despite being loaded with `{type: "module"}` HOT 1
- TypeError: Cannot use 'in' operator to search for '../node_modules/webpack/hot/dev-server.js' in undefined
- TypeError: Cannot use 'in' operator to search for '../node_modules/webpack/hot/dev-server.js' in undefined HOT 1
- ModuleFederationPlugin can not directly get shared module default export in .mjs file
- Default SBOM Generate HOT 1
- TypeError: Cannot use 'in' operator to search for '../node_modules/webpack/hot/dev-server.js' in undefined
- TypeError: Cannot use 'in' operator to search for '../node_modules/webpack/hot/dev-server.js' in undefined HOT 3
- Source Map is inorrect when enable extractComments.banner of terser-webpack-plugin HOT 2
- watchDirectory option for watchOptions HOT 6
- Running docusaurus with `bun` reports type errors HOT 4
- Referencing node.process.versions from sentry yields unexpected token error (GLOBAL OBJECT)
- Remotes causes Host to crash when not loaded in Module Federation HOT 4
- When `require.context` is used in a module that has been discovered through an entry in `resolve.modules`, the keys are duplicated. HOT 4
- Mutiple entries which have its own hmr runtime cause hmr fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack.