Comments (6)
The plugin has no option whether babel caches or not so likely the only option would be to have a config option which dynamically generates imports.
from babel-plugin-wildcard.
@vihanb it would be great if there's a fix for this. Other similar plugins have been unable to fix the same issue:
- novemberborn/babel-plugin-import-glob#52
- https://github.com/geowarin/babel-plugin-glob-imports#development-stopped
from babel-plugin-wildcard.
I suppose we could attempt to rm -r node_modules/.cache/babel-loader
I'll look into it though, as I am not sure about the location in global vs local installs
from babel-plugin-wildcard.
now, if you install the plugin globally (or in a NPM script), you can use bpwc clear-cache
and it'll locate cache files and delete them. If you are using babel-loader for testing or something, you can add this command in your test
script
from babel-plugin-wildcard.
@vihanb is it clearing the entire babel cache or only the parts specific to wildcard imports? Ideally the latter is desirable (if possible) IMO because then it wouldn't drastically slow down the transpilation after calling clear-cache
.
from babel-plugin-wildcard.
@gaurav- If you are in the root directory of your project it will delete the cache for that project. That said, Babel seems to often keep most of the cache for all files in one file and there doesn’t seem to be docs for the format which it’s kept in, also I’m not sure if that format will be stable across Babel versions. For that reason it will sometimes clear the global Babel cache too.
from babel-plugin-wildcard.
Related Issues (20)
- Unable to get this working with Vue SFC (Single File Components, *.vue files) HOT 1
- Can add support for lazy loading? HOT 3
- Not working HOT 2
- noModifyCase not working HOT 3
- Can't make it work on React HOT 16
- Sub dirs HOT 2
- Ability to filter files HOT 1
- can't make it work with a directory of .svg file HOT 8
- Babel 7 support HOT 2
- wildcard and resolve.alias can't work at the same time HOT 1
- Eslint import resolver support HOT 2
- Cannot use wildcards in Vue Single-File-Components files HOT 1
- Will this work in a Typescript project? HOT 1
- It does not work for me with WebPack HOT 7
- Can't import multiple files with same names that have different extensions
- Adding it to plugins breaks my entire app.
- An option to exclude some files HOT 2
- Does not work with React Native HOT 2
- Doesn't appear to work with typescript
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 babel-plugin-wildcard.