Commit 41098480 authored by ioedeveloper's avatar ioedeveloper

Added babel loader

parent 0114a67d
...@@ -2,9 +2,20 @@ const nxWebpack = require('@nrwl/react/plugins/webpack') ...@@ -2,9 +2,20 @@ const nxWebpack = require('@nrwl/react/plugins/webpack')
module.exports = config => { module.exports = config => {
const nxWebpackConfig = nxWebpack(config) const nxWebpackConfig = nxWebpack(config)
const { module, module: { rules } } = nxWebpackConfig
return { return {
...nxWebpackConfig, ...nxWebpackConfig,
module: {
...module,
rules: [
...rules,
{
test: /\.compiler\.js$/,
use: { loader: 'worker-loader' }
}
]
},
node: { node: {
fs: 'empty', fs: 'empty',
tls: 'empty', tls: 'empty',
......
...@@ -41124,6 +41124,28 @@ ...@@ -41124,6 +41124,28 @@
"errno": "~0.1.7" "errno": "~0.1.7"
} }
}, },
"worker-loader": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/worker-loader/-/worker-loader-2.0.0.tgz",
"integrity": "sha512-tnvNp4K3KQOpfRnD20m8xltE3eWh89Ye+5oj7wXEEHKac1P4oZ6p9oTj8/8ExqoSBnk9nu5Pr4nKfQ1hn2APJw==",
"dev": true,
"requires": {
"loader-utils": "^1.0.0",
"schema-utils": "^0.4.0"
},
"dependencies": {
"schema-utils": {
"version": "0.4.7",
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.7.tgz",
"integrity": "sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ==",
"dev": true,
"requires": {
"ajv": "^6.1.0",
"ajv-keywords": "^3.1.0"
}
}
}
},
"worker-plugin": { "worker-plugin": {
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/worker-plugin/-/worker-plugin-3.2.0.tgz", "resolved": "https://registry.npmjs.org/worker-plugin/-/worker-plugin-3.2.0.tgz",
...@@ -253,6 +253,7 @@ ...@@ -253,6 +253,7 @@
"watchify": "^3.9.0", "watchify": "^3.9.0",
"web3": "1.2.4", "web3": "1.2.4",
"webworkify": "^1.2.1", "webworkify": "^1.2.1",
"worker-loader": "^2.0.0",
"yo-yo": "github:ioedeveloper/yo-yo", "yo-yo": "github:ioedeveloper/yo-yo",
"yo-yoify": "^3.7.3" "yo-yoify": "^3.7.3"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment