daun / laravel-mix-transpile-node-modules Goto Github PK
View Code? Open in Web Editor NEWLaravel Mix extension for Babel-transpiling dependencies inside node_modules
License: Other
Laravel Mix extension for Babel-transpiling dependencies inside node_modules
License: Other
Currently im using this in my webpack.mix.js
mix.webpackConfig({
module: {
rules: [{
test: /.js?$/,
use: [{
loader: 'babel-loader',
options: mix.config.babel()
}]
}]
}
});
i changed it with
require('laravel-mix-transpile-node-modules')
mix.transpileNodeModules()
Now i'm getting errors on safari.
Isn't this suppose to transpile all node_modules?
Currently experiencing this error
TypeError: Cannot read property 'toString' of undefined
at TranspileNodeModules.ruleTransformsJs (/Users/owen.soak/Sites/projectx/node_modules/laravel-mix-transpile-node-modules/index.js:69:26)
at /Users/owen.soak/Sites/projectx/node_modules/laravel-mix-transpile-node-modules/index.js:64:22
at Array.filter (<anonymous>)
at TranspileNodeModules.findBabelRules (/Users/owen.soak/Sites/projectx/node_modules/laravel-mix-transpile-node-modules/index.js:63:18)
at TranspileNodeModules.webpackConfig (/Users/owen.soak/Sites/projectx/node_modules/laravel-mix-transpile-node-modules/index.js:51:24)
at /Users/owen.soak/Sites/projectx/node_modules/laravel-mix/src/components/ComponentRegistrar.js:124:54
at /Users/owen.soak/Sites/projectx/node_modules/laravel-mix/src/Dispatcher.js:39:62
at Array.map (<anonymous>)
at Dispatcher.fire (/Users/owen.soak/Sites/projectx/node_modules/laravel-mix/src/Dispatcher.js:39:47)
at Mix.dispatch (/Users/owen.soak/Sites/projectx/node_modules/laravel-mix/src/Mix.js:250:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
Hi,
i want to use your package but i'm running into to this Error when i start the production build.
TypeError: Cannot read property 'find' of undefined
Do you plan to support laravel-mix:^6?
I hopefully landed here from laravel-mix/laravel-mix#2742 but just saw that this plugin supports version 4 of laravel-mix and that it has no effect in version 6.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.