mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 01:43:14 +08:00
Merge branch 'master' into feat/webpack5-polyfills
This commit is contained in:
@ -48,6 +48,8 @@ exports[`angular configuration for android 1`] = `
|
||||
'.ts',
|
||||
'.android.js',
|
||||
'.js',
|
||||
'.android.mjs',
|
||||
'.mjs',
|
||||
'.android.css',
|
||||
'.css',
|
||||
'.android.scss',
|
||||
@ -89,7 +91,7 @@ exports[`angular configuration for android 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
@ -469,6 +471,8 @@ exports[`angular configuration for ios 1`] = `
|
||||
'.ts',
|
||||
'.ios.js',
|
||||
'.js',
|
||||
'.ios.mjs',
|
||||
'.mjs',
|
||||
'.ios.css',
|
||||
'.css',
|
||||
'.ios.scss',
|
||||
@ -510,7 +514,7 @@ exports[`angular configuration for ios 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
|
@ -40,6 +40,8 @@ exports[`base configuration for android 1`] = `
|
||||
'.ts',
|
||||
'.android.js',
|
||||
'.js',
|
||||
'.android.mjs',
|
||||
'.mjs',
|
||||
'.android.css',
|
||||
'.css',
|
||||
'.android.scss',
|
||||
@ -77,7 +79,7 @@ exports[`base configuration for android 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
@ -358,6 +360,8 @@ exports[`base configuration for ios 1`] = `
|
||||
'.ts',
|
||||
'.ios.js',
|
||||
'.js',
|
||||
'.ios.mjs',
|
||||
'.mjs',
|
||||
'.ios.css',
|
||||
'.css',
|
||||
'.ios.scss',
|
||||
@ -395,7 +399,7 @@ exports[`base configuration for ios 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
|
@ -40,6 +40,8 @@ exports[`javascript configuration for android 1`] = `
|
||||
'.ts',
|
||||
'.android.js',
|
||||
'.js',
|
||||
'.android.mjs',
|
||||
'.mjs',
|
||||
'.android.css',
|
||||
'.css',
|
||||
'.android.scss',
|
||||
@ -77,7 +79,7 @@ exports[`javascript configuration for android 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
@ -367,6 +369,8 @@ exports[`javascript configuration for ios 1`] = `
|
||||
'.ts',
|
||||
'.ios.js',
|
||||
'.js',
|
||||
'.ios.mjs',
|
||||
'.mjs',
|
||||
'.ios.css',
|
||||
'.css',
|
||||
'.ios.scss',
|
||||
@ -404,7 +408,7 @@ exports[`javascript configuration for ios 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
|
@ -43,6 +43,8 @@ exports[`react configuration > android > adds ReactRefreshWebpackPlugin when HMR
|
||||
'.ts',
|
||||
'.android.js',
|
||||
'.js',
|
||||
'.android.mjs',
|
||||
'.mjs',
|
||||
'.android.css',
|
||||
'.css',
|
||||
'.android.scss',
|
||||
@ -87,7 +89,7 @@ exports[`react configuration > android > adds ReactRefreshWebpackPlugin when HMR
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
@ -390,6 +392,8 @@ exports[`react configuration > android > base config 1`] = `
|
||||
'.ts',
|
||||
'.android.js',
|
||||
'.js',
|
||||
'.android.mjs',
|
||||
'.mjs',
|
||||
'.android.css',
|
||||
'.css',
|
||||
'.android.scss',
|
||||
@ -427,7 +431,7 @@ exports[`react configuration > android > base config 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
@ -708,6 +712,8 @@ exports[`react configuration > ios > adds ReactRefreshWebpackPlugin when HMR ena
|
||||
'.ts',
|
||||
'.ios.js',
|
||||
'.js',
|
||||
'.ios.mjs',
|
||||
'.mjs',
|
||||
'.ios.css',
|
||||
'.css',
|
||||
'.ios.scss',
|
||||
@ -752,7 +758,7 @@ exports[`react configuration > ios > adds ReactRefreshWebpackPlugin when HMR ena
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
@ -1056,6 +1062,8 @@ exports[`react configuration > ios > base config 1`] = `
|
||||
'.ts',
|
||||
'.ios.js',
|
||||
'.js',
|
||||
'.ios.mjs',
|
||||
'.mjs',
|
||||
'.ios.css',
|
||||
'.css',
|
||||
'.ios.scss',
|
||||
@ -1093,7 +1101,7 @@ exports[`react configuration > ios > base config 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
|
@ -44,6 +44,8 @@ exports[`svelte configuration for android 1`] = `
|
||||
'.ts',
|
||||
'.android.js',
|
||||
'.js',
|
||||
'.android.mjs',
|
||||
'.mjs',
|
||||
'.android.css',
|
||||
'.css',
|
||||
'.android.scss',
|
||||
@ -383,6 +385,8 @@ exports[`svelte configuration for ios 1`] = `
|
||||
'.ts',
|
||||
'.ios.js',
|
||||
'.js',
|
||||
'.ios.mjs',
|
||||
'.mjs',
|
||||
'.ios.css',
|
||||
'.css',
|
||||
'.ios.scss',
|
||||
|
@ -40,6 +40,8 @@ exports[`typescript configuration for android 1`] = `
|
||||
'.ts',
|
||||
'.android.js',
|
||||
'.js',
|
||||
'.android.mjs',
|
||||
'.mjs',
|
||||
'.android.css',
|
||||
'.css',
|
||||
'.android.scss',
|
||||
@ -77,7 +79,7 @@ exports[`typescript configuration for android 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
@ -367,6 +369,8 @@ exports[`typescript configuration for ios 1`] = `
|
||||
'.ts',
|
||||
'.ios.js',
|
||||
'.js',
|
||||
'.ios.mjs',
|
||||
'.mjs',
|
||||
'.ios.css',
|
||||
'.css',
|
||||
'.ios.scss',
|
||||
@ -404,7 +408,7 @@ exports[`typescript configuration for ios 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
|
@ -43,6 +43,8 @@ exports[`vue configuration for android 1`] = `
|
||||
'.ts',
|
||||
'.android.js',
|
||||
'.js',
|
||||
'.android.mjs',
|
||||
'.mjs',
|
||||
'.android.css',
|
||||
'.css',
|
||||
'.android.scss',
|
||||
@ -80,7 +82,7 @@ exports[`vue configuration for android 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
@ -395,6 +397,8 @@ exports[`vue configuration for ios 1`] = `
|
||||
'.ts',
|
||||
'.ios.js',
|
||||
'.js',
|
||||
'.ios.mjs',
|
||||
'.mjs',
|
||||
'.ios.css',
|
||||
'.css',
|
||||
'.ios.scss',
|
||||
@ -432,7 +436,7 @@ exports[`vue configuration for ios 1`] = `
|
||||
},
|
||||
/* config.module.rule('workers') */
|
||||
{
|
||||
test: /\\\\.(js|ts)$/,
|
||||
test: /\\\\.(mjs|js|ts)$/,
|
||||
use: [
|
||||
/* config.module.rule('workers').use('nativescript-worker-loader') */
|
||||
{
|
||||
|
@ -181,6 +181,8 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
||||
.add('.ts')
|
||||
.add(`.${platform}.js`)
|
||||
.add('.js')
|
||||
.add(`.${platform}.mjs`)
|
||||
.add('.mjs')
|
||||
.add(`.${platform}.css`)
|
||||
.add('.css')
|
||||
.add(`.${platform}.scss`)
|
||||
@ -224,7 +226,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
||||
// worker-loader should be declared before ts-loader
|
||||
config.module
|
||||
.rule('workers')
|
||||
.test(/\.(js|ts)$/)
|
||||
.test(/\.(mjs|js|ts)$/)
|
||||
.use('nativescript-worker-loader')
|
||||
.loader('nativescript-worker-loader');
|
||||
|
||||
|
Reference in New Issue
Block a user