Comments (5)
yes it's ignoring the node_modules and I think it's a good default, it's pretty rare to parse the entire node_modules, super slow.
But happy to accept an option to enable it. The interesting line is here: https://github.com/skpm/skpm/blob/master/lib/utils/webpackConfig.js#L46
from skpm.
Ok, thank you for the quick response @mathieudutour. If I were to use a webpack.config.js
file instead of a .babelrc
file, would I be able to resolve this without a PR?
Something like include: /(node_modules\/react-native-calendars)/
?
from skpm.
you can pass your own webpack.config.js yes. I think putting
module.exports = {module: {
rules: [
BABEL_CONFIG_HERE
]
}}
should work
from skpm.
Ok cool, I am trying this but it doesn't seem to recognize jsx in my /src
directory anymore:
module.exports = {
module: {
rules: [
{
test: /\.jsx$/,
exclude: /(node_modules)/,
include: /(node_modules\/react-native-calendars)/,
use: {
loader: 'babel-loader',
options: {
presets: ['react', 'es2015', 'stage-0'],
plugins: ['transform-runtime', 'transform-class-properties']
}
}
}
]
}
};
( I know this is way outside of the scope of the project, but I am very grateful for the help ! )
from skpm.
I think include
makes it look only there. Instead, you should adjust your exclude
regex: /node_modules\/(?!(react-native-calendars))/
or something like this
from skpm.
Related Issues (20)
- skpm publish does not add or update lastUpdated flag in plugin directory HOT 5
- skpm-build --output: absolute paths are not supported
- Typescript bug: if I try use typescript file with .ts extension as a manifest script, build incorrectly replace the script name HOT 1
- Confused about skpm versions HOT 1
- Publishing on OSX Big Sur HOT 7
- Webpack 5
- skpm-build --watch doesn't update Sketch plugin folder HOT 2
- ssri vulnerability HOT 5
- Sass-loader not compatible with webpack version
- glob-parent vulnerability HOT 1
- Sketch crushes after trying to load a plugin HOT 1
- TextAlignment mistake on apple silicon HOT 1
- Cannot build project: TypeError: console.log.bind is not a function
- skpm breaking my plugin HOT 2
- null is not an object (evaluating 'NSApplication.sharedApplication().orderedDocuments().firstObject().showMessage') HOT 1
- How to notify in sketch after publishing?
- Builder is crashing because dependencies are old HOT 6
- [CVE-2023-0842] `xml2js` has vulnerability, needs updated
- Adding webbrowser api libraries to skpm puging
- one error with `babel-loader`
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 skpm.