Comments (3)
Could this be related to jspm/jspm-cli#778? Also, does this occur with other plugins? I think you might have to file an issue w/ JSPM about this because it seems like it cannot even locate the module.
from babel-plugin-wildcard.
Yes, You are right, jspm 0.16 does not support babel plugins. jspm@beta will. Tried that, plugin are loaded but it doesn't work (got 404 for modules_directory.js). JSPM by default load babel and es6 modules into browser and then transpile. I guess that wildcard plugin needs to access file system to determine modules, right? So only option would be server-side transpiling also in development mode.
UPDATE: Tried development bundling as described here: https://jspm.io/0.17-beta-guide/development-bundling.html with no luck.
$ jspm install --dev npm:babel-plugin-wildcard
SystemJS.config({
...
meta: {
'*.js': {
babelOptions: {
plugins: ['babel-plugin-wildcard']
}
}
}
});
command to transpile bundle:
$ jspm bundle src/main.js src/build.js -id
It never recognize, that it should use wildcard plugin for imports.
from babel-plugin-wildcard.
I think the problem is babel auto-prepends "babel-plugin-" when searching for the plugin, e.g. try simply: plugins: ['wildcard']
from babel-plugin-wildcard.
Related Issues (20)
- cacheDirectory is breaking functionality HOT 6
- 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.