Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
0.3.1: Fix svelte_ujs_ng import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nning committed Jul 10, 2020
1 parent f6ff8c3 commit cb7369d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
svelte-rails (0.3.0)
svelte-rails (0.3.1)
execjs
railties (>= 5.2)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import SvelteRailsUJS from 'svelte_ujs';
import SvelteRailsUJS from 'svelte_ujs_ng';
self.SvelteRailsUJS = SvelteRailsUJS;
SvelteRailsUJS.start();
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import SvelteRailsUJS from 'svelte_ujs';

import SvelteRailsUJS from 'svelte_ujs_ng';
self.SvelteRailsUJS = SvelteRailsUJS;
2 changes: 1 addition & 1 deletion lib/svelte/rails/templates/config/webpack/environment.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const clientLoader = require('./loaders/svelte')
const serverLoader = require('./loaders/svelte-ssr')

const getSvelteEnvironments = require('svelte_ujs/getSvelteEnvironments')
const getSvelteEnvironments = require('svelte_ujs_ng/getSvelteEnvironments')

module.exports = getSvelteEnvironments(clientLoader, serverLoader)
2 changes: 1 addition & 1 deletion lib/svelte/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Svelte
module Rails
VERSION = '0.3.0'
VERSION = '0.3.1'
end
end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte_ujs_ng",
"version": "0.1.0",
"version": "0.3.1",
"description": "Rails UJS for turbolinks and SSR of the svelte-rails gem",
"license": "MIT",
"author": "henning mueller <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion svelte_ujs/getSvelteEnvironments.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const config = require('@rails/webpacker/package/config')
const ConfigList = require('@rails/webpacker/package/config_types/config_list')
const WaitPlugin = require('svelte_ujs/WaitPlugin')
const WaitPlugin = require('./WaitPlugin')

// Use version of WebpackAssetsManifest that supports merging entrypoints in manifest.json
// https://github.com/webdeveric/webpack-assets-manifest/pull/59
Expand Down

0 comments on commit cb7369d

Please sign in to comment.